1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 JAVA_PKG_IUSE="doc examples source test"
8 inherit java-pkg-2 java-ant-2
10 DESCRIPTION="High-performance, full-featured Java text search engine"
11 HOMEPAGE="https://lucene.apache.org"
12 SRC_URI="mirror://apache/lucene/java/archive/${P}-src.tar.gz"
20 test? ( dev-java/ant-junit:0 )"
31 eant jar-core $(use_doc javadocs)
35 java-ant_rewrite-classpath build.xml
36 EANT_GENTOO_CLASSPATH="junit ant-core" \
37 ANT_TASKS="ant-junit" \
43 java-pkg_newjar build/lucene-1.5-rc1-dev.jar
47 java-pkg_dojavadoc build/docs/api
50 use examples && java-pkg_doexamples src/demo
51 use source && java-pkg_dosrc src/java/org