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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Dec 28 19:09:57 2013 UTC (6 years ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +4 -3 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.3.ebuild,v 1.7 2012/10/06 12:22:27 ago 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 mirror://apache/lucene/java/${PV}/${P}-src.tar.gz"
18 LICENSE="Apache-2.0"
19 SLOT="3.0"
20 KEYWORDS="amd64 ppc x86 ~amd64-fbsd ~x86-fbsd"
21 IUSE=""
22 DEPEND=">=virtual/jdk-1.5
23 dev-java/ant-nodeps:0
24 dev-java/javacc:0
25 dev-java/junit:0
26 test? ( dev-java/ant-junit )"
27 # junit is needed for compilation because tests are compiled for javacc target even when not requested
28 RDEPEND=">=virtual/jdk-1.5"
29
30 java_prepare() {
31 find -name "*.jar" -type f | xargs rm -v
32 sed -i -e '/-Xmax/ d' common-build.xml
33 java-pkg_jar-from --build-only --into lib junit junit.jar junit-3.8.2.jar
34 }
35
36 src_compile() {
37 # regenerate javacc files just because we can
38 # put javacc.jar on ant's classpath here even when <javacc> task
39 # doesn't use it - it's to fool the <available> test, first time
40 # it's useful not to have ignoresystemclasses=true...
41 ANT_TASKS="ant-nodeps javacc" eant \
42 -Djavacc.home="${EPREFIX}"/usr/share/javacc/lib javacc
43 ANT_TASKS="none" eant -Dversion=${PV} jar-core jar-demo $(use_doc javadocs-core javadocs-demo)
44 }
45
46 src_test() {
47 java-ant_rewrite-classpath common-build.xml
48 EANT_GENTOO_CLASSPATH="junit ant-core" ANT_TASKS="ant-junit" eant test-core
49 }
50
51 src_install() {
52 dodoc CHANGES.txt README.txt || die
53 java-pkg_newjar build/${PN}-core-${PV}.jar ${PN}-core.jar
54 java-pkg_newjar build/${PN}-demos-${PV}.jar ${PN}-demos.jar
55
56 if use doc; then
57 dohtml -r docs/* || die
58 # for the core and demo subdirs
59 java-pkg_dohtml -r build/docs/api
60 fi
61 use source && java-pkg_dosrc src/java/org
62 }

  ViewVC Help
Powered by ViewVC 1.1.20