diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-06-03 17:07:58 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-06-03 17:07:58 +0000 |
commit | d702162278af5f78878e9fd7153e3e4c3823458e (patch) | |
tree | 541023ecc0eca1b6118c095d5a32f20fbcc68013 | |
parent | Fix use invocation (diff) | |
download | gentoo-2-d702162278af5f78878e9fd7153e3e4c3823458e.tar.gz gentoo-2-d702162278af5f78878e9fd7153e3e4c3823458e.tar.bz2 gentoo-2-d702162278af5f78878e9fd7153e3e4c3823458e.zip |
Partial fix for #9289.
-rw-r--r-- | dev-java/ibm-jre-bin/ChangeLog | 7 | ||||
-rw-r--r-- | dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1-r1.ebuild | 18 | ||||
-rw-r--r-- | dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1.ebuild | 19 |
3 files changed, 31 insertions, 13 deletions
diff --git a/dev-java/ibm-jre-bin/ChangeLog b/dev-java/ibm-jre-bin/ChangeLog index f8b701c22ab3..a482e3413566 100644 --- a/dev-java/ibm-jre-bin/ChangeLog +++ b/dev-java/ibm-jre-bin/ChangeLog @@ -1,7 +1,12 @@ # ChangeLog for dev-java/ibm-jre-bin # Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/ibm-jre-bin/ChangeLog,v 1.4 2004/06/02 22:51:43 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/ibm-jre-bin/ChangeLog,v 1.5 2004/06/03 17:07:58 karltk Exp $ + 03 Jun 2004; Karl Trygve Kalleberg <karltk@gentoo.org> + ibm-jre-bin-1.4.1.ebuild, ibm-jre-bin-1.4.1-r1.ebuild: + Added check to pkg_postrm to warn if the user is uninstalling his + default system VM, partial fix for #9289. + 02 Jun 2004; Aron Griffis <agriffis@gentoo.org> ibm-jre-bin-1.4.1-r1.ebuild, ibm-jre-bin-1.4.1.ebuild: Fix use invocation diff --git a/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1-r1.ebuild b/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1-r1.ebuild index 7fa5bad55f26..7e9de155a50a 100644 --- a/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1-r1.ebuild +++ b/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1-r1.ebuild @@ -1,7 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1-r1.ebuild,v 1.2 2004/06/02 22:51:43 agriffis Exp $ -IUSE="doc" +# $Header: /var/cvsroot/gentoo-x86/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1-r1.ebuild,v 1.3 2004/06/03 17:07:58 karltk Exp $ inherit java nsplugins @@ -11,11 +10,10 @@ SRC_URI="ppc?(mirror://IBMJava2-JRE-141.ppc.tgz) x86?(mirror://IBMJava2-JRE-141.tgz)" PROVIDE="virtual/jre-1.4.1 virtual/java-scheme-2" +IUSE="doc" SLOT="1.4" LICENSE="IBM-J1.4" KEYWORDS="ppc ~x86" - - DEPEND="virtual/glibc >=dev-java/java-config-0.2.5" RDEPEND="${DEPEND}" @@ -27,8 +25,9 @@ else S=${WORKDIR}/IBMJava2-141 fi; -# No compilation needed! -src_compile() { :; } +src_compile() { + einfo "${PF} is a binary package, no compilation required" +} src_install() { # Copy all the files to the designated directory @@ -51,3 +50,10 @@ src_postinst(){ inst_plugin /opt/${P}/bin/javaplugin.so true } + +pkg_postrm() { + if [ ! -z "$(java-config -J) | grep ${PV}" ] ; then + ewarn "It appears you are removing your default system VM!" + ewarn "Please run java-config -L then java-config-S to set a new system VM!" + fi +}
\ No newline at end of file diff --git a/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1.ebuild b/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1.ebuild index 3eef5ca9429f..13a7a2b57ac5 100644 --- a/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1.ebuild +++ b/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1.ebuild @@ -1,7 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1.ebuild,v 1.5 2004/06/02 22:51:43 agriffis Exp $ -IUSE="doc" +# $Header: /var/cvsroot/gentoo-x86/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1.ebuild,v 1.6 2004/06/03 17:07:58 karltk Exp $ inherit java nsplugins @@ -11,11 +10,10 @@ SRC_URI="ppc?(mirror://IBMJava2-JRE-141.ppc.tgz) x86?(mirror://IBMJava2-JRE-141.tgz)" PROVIDE="virtual/jre-1.4.1 virtual/java-scheme-2" +IUSE="doc" SLOT="1.4" LICENSE="IBM-J1.4" KEYWORDS="ppc ~x86" - - DEPEND="virtual/glibc >=dev-java/java-config-0.2.5" RDEPEND="${DEPEND}" @@ -27,8 +25,9 @@ else S=${WORKDIR}/IBMJava2-141 fi; -# No compilation needed! -src_compile() { :; } +src_compile() { + einfo "${PF} is a binary package, no compilation required" +} src_install() { # Copy all the files to the designated directory @@ -46,7 +45,15 @@ src_install() { < ${FILESDIR}/ibm-jre-${PV} \ > ${D}/etc/env.d/java/20ibm-jre-${PV} } + src_postinst(){ inst_plugin /opt/${P}/bin/javaplugin.so true } + +pkg_postrm() { + if [ ! -z "$(java-config -J) | grep ${PV}" ] ; then + ewarn "It appears you are removing your default system VM!" + ewarn "Please run java-config -L then java-config-S to set a new system VM!" + fi +}
\ No newline at end of file |