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

Contents of /dev-java/jdom/jdom-1.1.3.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-1.1.3.ebuild,v 1.3 2015/05/27 11:17:07 ago Exp $
4
5 EAPI=5
6 JAVA_PKG_IUSE="doc examples source"
7
8 inherit java-pkg-2 java-ant-2
9
10 DESCRIPTION="Java API to manipulate XML data"
11 SRC_URI="http://www.jdom.org/dist/binary/archive/${P}.tar.gz"
12 HOMEPAGE="http://www.jdom.org"
13 LICENSE="JDOM"
14 SLOT="0"
15 KEYWORDS="amd64 ppc ppc64 x86"
16 COMMON_DEP="dev-java/saxpath
17 >=dev-java/xerces-2.7"
18 RDEPEND=">=virtual/jre-1.6"
19 # ${COMMON_DEP}"
20 DEPEND=">=virtual/jdk-1.6"
21 # ${COMMON_DEP}"
22 IUSE=""
23
24 S="${WORKDIR}/${PN}"
25
26 java_prepare() {
27 find "${S}" -name '*.jar' -delete || die
28
29 rm -r build/apidocs || die
30
31 rm -v src/java/org/jdom/xpath/JaxenXPath.java \
32 || die "Unable to remove Jaxen Binding class."
33
34 sed -i -e 's|${name}-${version.impl}|${name}|g' \
35 -e 's|<jar jarfile="${build.dir}/${name}-sources|<!-- <jar jarfile="${build.dir}/${name}-sources|' \
36 -e 's|build.javadocs}" />|build.javadocs}" /> -->|' \
37 "${S}"/build.xml || die
38
39 if ! use doc; then
40 sed -i -e 's|depends="compile,javadoc"|depends="compile"|' \
41 "${S}"/build.xml || die
42 fi
43 }
44
45 EANT_BUILD_TARGET="package"
46 #EANT_GENTOO_CLASSPATH="saxpath,xerces-2"
47
48 src_install() {
49 java-pkg_dojar build/*.jar
50
51 #java-pkg_register-dependency "jdom-jaxen-${SLOT}"
52 dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die
53 use doc && java-pkg_dojavadoc build/apidocs
54 use examples && java-pkg_doexamples samples
55 use source && java-pkg_dosrc src/java/org
56 }

  ViewVC Help
Powered by ViewVC 1.1.20