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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Dec 28 19:09:57 2013 UTC (6 years, 1 month ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
With the archive mirror added to the mirror://apache/ target, we also need to check multiple locations on some distfiles, when upstream had them in one of two locations.

(Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)

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

  ViewVC Help
Powered by ViewVC 1.1.20