/[gentoo-x86]/dev-java/lucene/lucene-2.1.0.ebuild
Gentoo

Contents of /dev-java/lucene/lucene-2.1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu Sep 27 16:01:26 2012 UTC (7 years, 3 months ago) by sera
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Require >=jdk-1.5 for javacc-5.0 and drop SLOT 2. #315557

(Portage version: 2.1.11.13/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/lucene/lucene-2.1.0.ebuild,v 1.9 2011/12/19 11:35:15 sera Exp $
4
5 JAVA_PKG_IUSE="doc source test"
6 JAVA_PKG_BSFIX_ALL="no"
7 JAVA_PKG_BSFIX_NAME="build.xml common-build.xml"
8
9 inherit java-pkg-2 java-ant-2
10
11 DESCRIPTION="High-performance, full-featured text search engine written entirely in Java"
12 HOMEPAGE="http://lucene.apache.org"
13 SRC_URI="mirror://apache/lucene/java/archive/${P}-src.tar.gz"
14 LICENSE="Apache-2.0"
15 SLOT="2"
16 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
17 IUSE=""
18 DEPEND=">=virtual/jdk-1.4
19 dev-java/ant-nodeps
20 dev-java/javacc
21 test? ( dev-java/ant-junit =dev-java/junit-3* )"
22 RDEPEND=">=virtual/jdk-1.4"
23
24 src_compile() {
25 # regenerate javacc files just because we can
26 # put javacc.jar on ant's classpath here even when <javacc> task
27 # doesn't use it - it's to fool the <available> test, first time
28 # it's useful not to have ignoresystemclasses=true...
29 ANT_TASKS="ant-nodeps javacc" eant \
30 -Djavacc.home=/usr/share/javacc/lib javacc
31 ANT_TASKS="none" eant -Dversion=${PV} jar-core jar-demo $(use_doc javadocs)
32 }
33
34 src_test() {
35 java-ant_rewrite-classpath common-build.xml
36 EANT_GENTOO_CLASSPATH="junit ant-core" ANT_TASKS="ant-junit" eant test
37 }
38
39 src_install() {
40 dodoc CHANGES.txt README.txt
41 java-pkg_newjar build/${PN}-core-${PV}.jar ${PN}-core.jar
42 java-pkg_newjar build/${PN}-demos-${PV}.jar ${PN}-demos.jar
43
44 if use doc; then
45 dohtml -r docs/*
46 java-pkg_dojavadoc build/docs/api
47 fi
48 use source && java-pkg_dosrc src/java/org
49 }

  ViewVC Help
Powered by ViewVC 1.1.20