/[gentoo-x86]/dev-java/jdom/jdom-2.0.6.ebuild
Gentoo

Contents of /dev-java/jdom/jdom-2.0.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Jun 16 09:11:27 2015 UTC (4 years, 7 months ago) by monsieurp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Stable for ppc+ppc64 via ALLARCHES. Fix bug 548062 and bug 548062.

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 93491BB8)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/jdom/jdom-2.0.6.ebuild,v 1.3 2015/05/27 11:17:28 ago Exp $
4
5 EAPI=5
6 JAVA_PKG_IUSE="source test"
7
8 #JAVA_PKG_IUSE="doc source test"
9
10 inherit java-pkg-2
11
12 DESCRIPTION="Java API to manipulate XML data"
13 SRC_URI="http://www.jdom.org/dist/binary/${P}.zip"
14 HOMEPAGE="http://www.jdom.org"
15 LICENSE="JDOM"
16 SLOT="2"
17 KEYWORDS="amd64 ppc ppc64 x86"
18
19 COMMON_DEP="dev-java/iso-relax
20 dev-java/jaxen:1.1
21 dev-java/xalan
22 dev-java/xml-commons-external:1.4"
23 RDEPEND="${COMMON_DEP}
24 >=virtual/jre-1.6"
25 DEPEND="${COMMON_DEP}
26 app-arch/unzip
27 test? ( dev-java/junit:0 )
28 >=virtual/jdk-1.6"
29 IUSE=""
30
31 S="${WORKDIR}"
32
33 src_unpack() {
34 unpack ${A}
35 unpack ./${P}-sources.jar
36 }
37
38 java_prepare() {
39 find "${S}" -name '*.jar' -delete || die
40 mkdir "${S}"/classes "${S}"/docs
41 }
42
43 src_compile() {
44 find org -name "*.java" > "${T}"/src.list
45
46 local cp="$(java-pkg_getjars iso-relax,jaxen-1.1,xalan,xml-commons-external-1.4)"
47 if use test ; then
48 cp="${cp}:junit.jar"
49 else
50 sed -i 's/PerfTest/PerfTemp/' "${T}"/src.list || die "Failed to rename PerfTest"
51 sed -i '/test/Id' "${T}"/src.list || die "Failed to remove test classes"
52 sed -i 's/PerfTemp/PerfTest/' "${T}"/src.list || die "Failed to rename PerfTest"
53 fi
54
55 ejavac -d "${S}"/classes -cp ${cp} "@${T}"/src.list
56
57 # Disabled for the time being.
58 # if use doc; then
59 # ejavadoc -d "${S}"/docs -classpath ${cp} "@${T}"/src.list -quiet || die "javadoc failed"
60 # fi
61
62 cd "${S}"/classes
63 jar -cf "${S}"/${PN}.jar * || die "failed to create jar"
64 }
65
66 src_install() {
67 java-pkg_dojar ${PN}.jar
68
69 # Disabled for the time being.
70 # if use doc; then
71 # java-pkg_dojavadoc docs
72 # fi
73
74 dodoc README.txt LICENSE.txt || die
75 use source && java-pkg_dosrc org
76 }

  ViewVC Help
Powered by ViewVC 1.1.20