diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2002-08-26 17:27:19 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2002-08-26 17:27:19 +0000 |
commit | 8b9c11500954a11cfa099e14080f91480eb5a621 (patch) | |
tree | 5f880480f6e5907c6934be3b25e60df635809737 /dev-java | |
parent | version bump for bugfix release (diff) | |
download | historical-8b9c11500954a11cfa099e14080f91480eb5a621.tar.gz historical-8b9c11500954a11cfa099e14080f91480eb5a621.tar.bz2 historical-8b9c11500954a11cfa099e14080f91480eb5a621.zip |
Added system VM test to pkg_setup()
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/ant/ChangeLog | 7 | ||||
-rw-r--r-- | dev-java/ant/ant-1.4.1-r3.ebuild | 10 |
2 files changed, 15 insertions, 2 deletions
diff --git a/dev-java/ant/ChangeLog b/dev-java/ant/ChangeLog index 8a4e559d0711..54b8b375dd9f 100644 --- a/dev-java/ant/ChangeLog +++ b/dev-java/ant/ChangeLog @@ -1,9 +1,14 @@ # ChangeLog for dev-java/ant # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/dev-java/ant/ChangeLog,v 1.6 2002/08/24 13:21:28 karltk Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant/ChangeLog,v 1.7 2002/08/26 17:27:19 karltk Exp $ *ant-1.4.1-r3 (03 May 2002) + 26 Aug 2002; Karl Trygve Kalleberg <karltk@gentoo.org> ant-1.4.1-r3.ebuild : + Added test in pkg_setup() to ensure that a proper system VM is installed. + This is a special-case, we should not bother about adding similar tests to + all other java packages. + 24 Aug 2002; Karl Trygve Kalleberg <karltk@gentoo.org> ant-1.4.1-r3.ebuild : Added extra install-time test to verify that all files install properly. Some users manage to install a faulty ant, for some reason. diff --git a/dev-java/ant/ant-1.4.1-r3.ebuild b/dev-java/ant/ant-1.4.1-r3.ebuild index f2e797d834c5..0d299bcc4c88 100644 --- a/dev-java/ant/ant-1.4.1-r3.ebuild +++ b/dev-java/ant/ant-1.4.1-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/dev-java/ant/ant-1.4.1-r3.ebuild,v 1.5 2002/08/24 13:21:28 karltk Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant/ant-1.4.1-r3.ebuild,v 1.6 2002/08/26 17:27:19 karltk Exp $ S=${WORKDIR}/jakarta-ant-${PV} DESCRIPTION="Build system for Java" @@ -12,6 +12,14 @@ KEYWORDS="x86 ppc" DEPEND="virtual/glibc >=virtual/jdk-1.3" +pkg_setup() { + if [ -z `java-config --java 2> /dev/null` ] ; then + eerror "You don't have a default system VM." + eerror "Use java-config to set one." + die + fi +} + src_compile() { export JAVA_HOME=${JDK_HOME} ./build.sh -Ddist.dir=${D}/usr/share/ant || die |