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

Contents of /dev-java/jdom/jdom-1.0-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Sat Jul 11 09:22:02 2015 UTC (4 years, 6 months ago) by chewi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +3 -3 lines
Drop java on ia64.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 9C6D7DE4)

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.0-r4.ebuild,v 1.14 2013/07/28 09:43:06 grobian Exp $
4
5 JAVA_PKG_IUSE="doc examples source"
6
7 inherit java-pkg-2 java-ant-2
8
9 DESCRIPTION="Java API to manipulate XML data"
10 SRC_URI="http://www.jdom.org/dist/source/archive/${P}.tar.gz"
11 HOMEPAGE="http://www.jdom.org"
12 LICENSE="JDOM"
13 SLOT="${PV}"
14 KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
15 COMMON_DEP="dev-java/saxpath
16 >=dev-java/xerces-2.7"
17 RDEPEND=">=virtual/jre-1.4
18 ${COMMON_DEP}"
19 DEPEND=">=virtual/jdk-1.4
20 ${COMMON_DEP}"
21 PDEPEND="~dev-java/jdom-jaxen-${PV}"
22 IUSE=""
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}"
27
28 rm -v build/*.jar lib/*.jar || die
29 rm -rf build/{apidocs,samples} || die
30
31 rm -v src/java/org/jdom/xpath/JaxenXPath.java \
32 || die "Unable to remove Jaxen Binding class."
33
34 cd "${S}"/lib
35 java-pkg_jar-from saxpath,xerces-2
36 }
37
38 src_compile() {
39 # to prevent a newer jdom from going into cp
40 # (EANT_ANT_TASKS doesn't work with none)
41 ANT_TASKS="none" eant package $(use_doc)
42 }
43
44 src_install() {
45 java-pkg_dojar build/*.jar
46
47 java-pkg_register-dependency "jdom-jaxen-${SLOT}"
48
49 dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die
50 use doc && java-pkg_dojavadoc build/apidocs
51 use examples && java-pkg_doexamples samples
52 use source && java-pkg_dosrc src/java/org
53 }

  ViewVC Help
Powered by ViewVC 1.1.20