diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2004-10-26 12:35:56 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2004-10-26 12:35:56 +0000 |
commit | 9ebbc0a82e5bc479a9efb0bd98875d98771b2298 (patch) | |
tree | f72c0f8db56eefd6271fe925ec507adf969da926 /dev-java/lucene/lucene-1.4.1.ebuild | |
parent | Added ~sparc keyword. (diff) | |
download | historical-9ebbc0a82e5bc479a9efb0bd98875d98771b2298.tar.gz historical-9ebbc0a82e5bc479a9efb0bd98875d98771b2298.tar.bz2 historical-9ebbc0a82e5bc479a9efb0bd98875d98771b2298.zip |
no longer use packed jars, #63281. Thanks too Jan Brinkmann <lucky@the-luckyduck.de>
Diffstat (limited to 'dev-java/lucene/lucene-1.4.1.ebuild')
-rw-r--r-- | dev-java/lucene/lucene-1.4.1.ebuild | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/dev-java/lucene/lucene-1.4.1.ebuild b/dev-java/lucene/lucene-1.4.1.ebuild index 3a8cd06fc0ad..f4260277f05c 100644 --- a/dev-java/lucene/lucene-1.4.1.ebuild +++ b/dev-java/lucene/lucene-1.4.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/lucene/lucene-1.4.1.ebuild,v 1.3 2004/10/22 11:28:24 absinthe Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/lucene/lucene-1.4.1.ebuild,v 1.4 2004/10/26 12:35:56 axxo Exp $ inherit java-pkg @@ -10,23 +10,36 @@ SRC_URI="http://cvs.apache.org/dist/jakarta/lucene/v1.4.1/${P}-src.tar.gz" LICENSE="Apache-1.1" SLOT="1" KEYWORDS="~x86 ~ppc ~amd64" -IUSE="jikes doc" +IUSE="jikes doc junit" DEPEND=">=virtual/jdk-1.2 >=dev-java/ant-1.5 - jikes? ( dev-java/jikes )" + jikes? ( dev-java/jikes ) + junit? ( dev-java/junit )" RDEPEND=">=virtual/jdk-1.2" +src_unpack() { + unpack ${A} + cd ${S}/lib + rm -f *.jar + java-pkg_jar-from junit +} + + src_compile() { local antflags="jar-core" use jikes && antflags="${antflags} -Dbuild.compiler=jikes" use doc && antflags="${antflags} javadocs" ant ${antflags} || die "compilation failed" + + if use junit; then + ant test || die "Junit test failed" + fi } src_install() { dodoc CHANGES.txt README.txt cd build mv lucene-1.5-rc1-dev.jar ${PN}.jar || die "mv failed" - java-pkg_dojar ${PN}.jar || die "dojar failed" + java-pkg_dojar ${PN}.jar use doc && java-pkg_dohtml -r docs/* } |