diff options
author | Joshua Nichols <nichoj@gentoo.org> | 2006-01-16 03:38:10 +0000 |
---|---|---|
committer | Joshua Nichols <nichoj@gentoo.org> | 2006-01-16 03:38:10 +0000 |
commit | 707a4a6847871fe1f1f8401dc44ad73bed08b099 (patch) | |
tree | 91e9ce5de3da1220e1345c35e25a4c6aac5077b7 /eclass | |
parent | Stable on SPARC. (diff) | |
download | gentoo-2-707a4a6847871fe1f1f8401dc44ad73bed08b099.tar.gz gentoo-2-707a4a6847871fe1f1f8401dc44ad73bed08b099.tar.bz2 gentoo-2-707a4a6847871fe1f1f8401dc44ad73bed08b099.zip |
Added java_remove-libjsoundalsa for dealing with bug #115734.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/java.eclass | 17 |
1 files changed, 15 insertions, 2 deletions
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 <karltk@gentoo.org> 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 +} |