From fd9dbf197719e782a914856f02ee233e9bc5e5d3 Mon Sep 17 00:00:00 2001 From: Joshua Nichols Date: Mon, 16 Jan 2006 03:38:10 +0000 Subject: Added java_remove-libjsoundalsa for dealing with bug #115734. --- eclass/java.eclass | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'eclass') diff --git a/eclass/java.eclass b/eclass/java.eclass index ee5057613a36..022a68f09479 100644 --- a/eclass/java.eclass +++ b/eclass/java.eclass @@ -1,13 +1,14 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/java.eclass,v 1.24 2006/01/14 21:31:31 nichoj Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java.eclass,v 1.25 2006/01/16 03:38:10 nichoj Exp $ # # Author: Karl Trygve Kalleberg inherit eutils DESCRIPTION="Based on the $ECLASS eclass" -DEPEND=">=dev-java/java-config-1.2.11" +DEPEND=">=dev-java/java-config-1.2.11 + sys-apps/findutils" RDEPEND=">=dev-java/java-config-1.2.11" VMHANDLE=${PN}-${PV} @@ -102,3 +103,15 @@ java_mozilla_clean_() { rm -f ${file} done } + +# Use this to remove libjsoundalsa.so from ${D}. +# You generally would want to use this like: +# use !alsa && java_remove-libjoundalsa /opt/${P} +java_remove-libjsoundalsa() { + [[ ${#} -ne 1 ]] && die "Expected one argument" + local search_path="$@" + local libs=$(find ${D}/${search_path} -name libjsoundalsa.so) + if [[ -n ${libs} ]]; then + rm ${libs} || die "Failed to delete ${libs}" + fi +} -- cgit v1.2.3-65-gdbad