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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (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.13: +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-r2.ebuild,v 1.13 2007/07/22 09:22:07 betelgeuse 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 ~x86-fbsd"
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 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 || die
36
37 cd "${S}/lib"
38 java-pkg_jar-from saxpath,xerces-2
39
40 if has_version '=dev-java/jaxen-1.1*'; then
41 elog "jaxen detected - building jaxen support."
42 elog "you can ignore the warnings below"
43 elog "one day there will be better solution"
44 JAVA_PKG_STRICT="" java-pkg_jar-from jaxen-1.1
45 fi
46 }
47
48 src_compile() {
49 # to prevent a newer jdom from going into cp
50 # (EANT_ANT_TASKS doesn't work with none)
51 ANT_TASKS="none" eant package $(use_doc)
52 }
53
54 src_install() {
55 java-pkg_dojar build/*.jar
56
57 dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die
58 use doc && java-pkg_dojavadoc build/apidocs
59 use examples && java-pkg_doexamples samples
60 use source && java-pkg_dosrc src/java/org
61 }
62
63 pkg_postinst() {
64 if ! has_version '=dev-java/jaxen-1.1*'; then
65 elog ""
66 elog "If you want jaxen support for jdom then"
67 elog "please emerge =dev-java/jaxen-1.1* first and"
68 elog "re-emerge jdom. Sorry for the"
69 elog "inconvenience, this is to break out of the"
70 elog "circular dependencies."
71 elog ""
72 fi
73 }

  ViewVC Help
Powered by ViewVC 1.1.20