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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Aug 19 08:27:24 2009 UTC (10 years, 5 months ago) by elvanor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +3 -3 lines
Quick fix for #281992.
(Portage version: 2.1.6.13/cvs/Linux i686)

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

  ViewVC Help
Powered by ViewVC 1.1.20