From ec1c6909bd1b08ef3f86f8dd0ca9b2b6e0f52523 Mon Sep 17 00:00:00 2001 From: Patrice Clement Date: Tue, 2 Jan 2018 21:17:51 +0100 Subject: dev-java/lucene: EAPI 6 bump. Commit straight to stable as discussed with zlogne on IRC. Bug: https://bugs.gentoo.org/642302 Package-Manager: Portage-2.3.13, Repoman-2.3.3 RepoMan-Options: --force --- dev-java/lucene/lucene-1.4.3-r4.ebuild | 52 ++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 dev-java/lucene/lucene-1.4.3-r4.ebuild (limited to 'dev-java/lucene') diff --git a/dev-java/lucene/lucene-1.4.3-r4.ebuild b/dev-java/lucene/lucene-1.4.3-r4.ebuild new file mode 100644 index 000000000000..327f41c136f7 --- /dev/null +++ b/dev-java/lucene/lucene-1.4.3-r4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +JAVA_PKG_IUSE="doc examples source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="High-performance, full-featured Java text search engine" +HOMEPAGE="https://lucene.apache.org" +SRC_URI="mirror://apache/lucene/java/archive/${P}-src.tar.gz" + +KEYWORDS="amd64 x86 ~x86-fbsd" +LICENSE="Apache-1.1" +SLOT="1" + +DEPEND=" + >=virtual/jdk-1.6 + test? ( dev-java/ant-junit:0 )" + +RDEPEND=" + >=virtual/jre-1.6" + +src_prepare() { + default + java-pkg_clean +} + +src_compile() { + eant jar-core $(use_doc javadocs) +} + +src_test() { + java-ant_rewrite-classpath build.xml + EANT_GENTOO_CLASSPATH="junit ant-core" \ + ANT_TASKS="ant-junit" \ + eant test +} + +src_install() { + einstalldocs + java-pkg_newjar build/lucene-1.5-rc1-dev.jar + + if use doc; then + dodoc -r docs/* + java-pkg_dojavadoc build/docs/api + fi + + use examples && java-pkg_doexamples src/demo + use source && java-pkg_dosrc src/java/org +} -- cgit v1.2.3-65-gdbad