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

Contents of /dev-java/jdom/jdom-1.0_beta10-r6.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_beta10-r6.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="b10"
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 COMMON_DEP="dev-java/saxpath
20 >=dev-java/xerces-2.7"
21 RDEPEND=">=virtual/jre-1.4
22 ${COMMON_DEP}"
23 DEPEND=">=virtual/jdk-1.4
24 ${COMMON_DEP}"
25 PDEPEND="~dev-java/jdom-jaxen-${PV}"
26 IUSE=""
27
28 S="${WORKDIR}/${MY_P}"
29
30 src_unpack() {
31 unpack ${A}
32 cd "${S}"
33
34 rm -v build/*.jar lib/*.jar || die
35 rm -rf build/{apidocs,samples} || die
36
37 rm -v src/java/org/jdom/xpath/JaxenXPath.java \
38 || die "Unable to remove Jaxen Binding class."
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 }
60
61 pkg_postinst() {
62 if ! has_version '=dev-java/jaxen-1.1*'; then
63 elog ""
64 elog "If you want jaxen support for jdom then"
65 elog "please emerge =dev-java/jaxen-1.1* first and"
66 elog "re-emerge jdom. Sorry for the"
67 elog "inconvenience, this is to break out of the"
68 elog "circular dependencies."
69 elog ""
70 fi
71 }

  ViewVC Help
Powered by ViewVC 1.1.20