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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Dec 28 19:09:57 2013 UTC (6 years ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +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.4.0.ebuild,v 1.1 2012/05/28 23:21:36 robbat2 Exp $
4
5 EAPI="3"
6 JAVA_PKG_IUSE="doc source test contrib"
7 JAVA_PKG_BSFIX_ALL="no"
8 JAVA_PKG_BSFIX_NAME="build.xml common-build.xml contrib-build.xml"
9 #JAVA_PKG_DEBUG=1
10
11 inherit java-pkg-2 java-ant-2
12
13 DESCRIPTION="High-performance, full-featured text search engine library
14 written entirely in Java"
15 HOMEPAGE="http://lucene.apache.org"
16 SRC_URI="mirror://apache/lucene/java/${PV}/${P}-src.tgz"
17 LICENSE="Apache-2.0"
18 SLOT="3.4"
19 KEYWORDS="~amd64 ~x86"
20 IUSE=""
21 DEPEND=">=virtual/jdk-1.5
22 dev-java/ant-nodeps:0
23 dev-java/junit:4
24 dev-java/ant-junit:0
25 contrib? (
26 dev-java/jakarta-regexp:1.4
27 dev-java/commons-compress:0
28 dev-java/commons-collections:0
29 dev-java/commons-digester:0
30 dev-java/commons-logging:0
31 dev-java/commons-beanutils:1.7
32 )"
33 RDEPEND=">=virtual/jdk-1.5"
34
35 #dev-java/javacc:0 - no longer needed, files are prebuilt
36
37 java_prepare() {
38 #find -name "*.jar" -type f | xargs rm -v
39 sed -i \
40 -e '/-Xmax/ d' \
41 common-build.xml
42 # FIXME: contrib builds do not work if junit not included
43 #java-pkg_jar-from --build-only --into lib \
44 # junit-4 junit.jar junit-4.7.jar
45 java-pkg_jar-from --build-only --into lib \
46 ant-core ant.jar ant-1.7.1.jar
47 java-pkg_jar-from --build-only --into lib \
48 ant-junit ant-junit.jar ant-junit-1.7.1.jar
49
50 if use contrib ; then
51 cd contrib/
52 java-pkg_jar-from --build-only --into queries/lib \
53 jakarta-regexp:1.4 jakarta-regexp.jar jakarta-regexpt-1.4.jar
54 java-pkg_jar-from --build-only --into benchmark/lib \
55 commons-compress commons-compress.jar commons-compress-1.1.jar
56 java-pkg_jar-from --build-only --into benchmark/lib \
57 commons-collections commons-collections.jar commons-collections-3.1.jar
58 java-pkg_jar-from --build-only --into benchmark/lib \
59 commons-digester commons-digester.jar commons-digester-1.7.jar
60 java-pkg_jar-from --build-only --into benchmark/lib \
61 commons-logging commons-logging.jar commons-logging-1.0.4.jar
62 java-pkg_jar-from --build-only --into benchmark/lib \
63 commons-beanutils:1.7 commons-beanutils.jar commons-beanutils-1.7.0.jar
64 fi
65 }
66
67 src_compile() {
68 # FIXME: docs do not build if behind a proxy, -autoproxy does not work
69 ANT_TASKS="none" eant -Dversion=${PV} \
70 -Dfailonjavadocwarning=false \
71 jar-core $(use_doc javadocs-core )
72 if use contrib ; then
73 ANT_TASKS="none" eant -Dversion=${PV} \
74 -Dfailonjavadocwarning=false \
75 build-contrib $(use_doc javadocs-all )
76 fi
77 }
78
79 src_test() {
80 # FIXME: test does not get run, even when selected
81 java-ant_rewrite-classpath common-build.xml
82 EANT_GENTOO_CLASSPATH="junit ant-core ant-junit" ANT_TASKS="ant-junit" eant test-core
83 }
84
85 src_install() {
86 dodoc CHANGES.txt README.txt NOTICE.txt CHANGES.txt \
87 JRE_VERSION_MIGRATION.txt|| die
88 java-pkg_newjar build/${PN}-core-${PV}.jar ${PN}-core.jar
89 if use contrib; then
90 for i in `find build/contrib -name \*-${PV}.jar`
91 do
92 j=${i##*/}
93 java-pkg_newjar $i ${j%%-${PV}.jar}.jar
94 done
95 fi
96 if use doc; then
97 dohtml -r docs/* || die
98 java-pkg_dohtml -r build/docs/api
99 fi
100 if use source; then
101 java-pkg_dosrc src/java/org || die
102 if use contrib; then
103 java-pkg_dosrc contrib || die
104 fi
105 fi
106 }

  ViewVC Help
Powered by ViewVC 1.1.20