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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Dec 28 19:09:57 2013 UTC (6 years ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +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-3.0.0.ebuild,v 1.6 2011/12/19 11:35:15 sera Exp $
4
5 EAPI="3"
6 JAVA_PKG_IUSE="doc source test"
7 JAVA_PKG_BSFIX_ALL="no"
8 JAVA_PKG_BSFIX_NAME="build.xml common-build.xml"
9
10 inherit java-pkg-2 java-ant-2
11
12 DESCRIPTION="High-performance, full-featured text search engine written entirely in Java"
13 HOMEPAGE="http://lucene.apache.org"
14 # when doing version bump, SRC_URI of the previous version should most probably
15 # be changed to java/archive/ !
16 SRC_URI="mirror://apache/lucene/java/${P}-src.tar.gz"
17 LICENSE="Apache-2.0"
18 SLOT="3.0"
19 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
20 IUSE=""
21 DEPEND=">=virtual/jdk-1.5
22 dev-java/ant-nodeps:0
23 dev-java/javacc:0
24 test? ( dev-java/ant-junit =dev-java/junit-3* )"
25 RDEPEND=">=virtual/jdk-1.5"
26
27 java_prepare() {
28 sed -i -e '/-Xmax/ d' common-build.xml
29 }
30
31 src_compile() {
32 # regenerate javacc files just because we can
33 # put javacc.jar on ant's classpath here even when <javacc> task
34 # doesn't use it - it's to fool the <available> test, first time
35 # it's useful not to have ignoresystemclasses=true...
36 ANT_TASKS="ant-nodeps javacc" eant \
37 -Djavacc.home="${EPREFIX}"/usr/share/javacc/lib javacc
38 ANT_TASKS="none" eant -Dversion=${PV} jar-core jar-demo $(use_doc javadocs-core javadocs-demo)
39 }
40
41 src_test() {
42 java-ant_rewrite-classpath common-build.xml
43 EANT_GENTOO_CLASSPATH="junit ant-core" ANT_TASKS="ant-junit" eant test-core
44 }
45
46 src_install() {
47 dodoc CHANGES.txt README.txt || die
48 java-pkg_newjar build/${PN}-core-${PV}.jar ${PN}-core.jar
49 java-pkg_newjar build/${PN}-demos-${PV}.jar ${PN}-demos.jar
50
51 if use doc; then
52 dohtml -r docs/* || die
53 # for the core and demo subdirs
54 java-pkg_dohtml -r build/docs/api
55 fi
56 use source && java-pkg_dosrc src/java/org
57 }

  ViewVC Help
Powered by ViewVC 1.1.20