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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Fri Jun 8 15:30:46 2007 UTC (12 years, 8 months ago) by betelgeuse
Branch: MAIN
Changes since 1.8: +2 -2 lines
Marked stable on amd64 for bug #180583.
(Portage version: 2.1.2.7)

1 # Copyright 1999-2007 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-r4.ebuild,v 1.8 2007/06/04 13:51:35 opfer 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/${MY_P}.tar.gz"
15 HOMEPAGE="http://www.jdom.org"
16 LICENSE="JDOM"
17 SLOT="${PV}"
18 KEYWORDS="amd64 ppc 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 IUSE=""
26
27 S="${WORKDIR}/${MY_P}"
28
29 src_unpack() {
30 unpack ${A}
31 cd "${S}"
32
33 rm -v build/*.jar lib/*.jar || die
34 rm -rf build/{apidocs,samples} || die
35
36 cd ${S}/lib
37 java-pkg_jar-from saxpath,xerces-2
38
39 if has_version '=dev-java/jaxen-1.1*'; then
40 elog "jaxen detected - building jaxen support."
41 elog "you can ignore the warnings below"
42 elog "one day there will be better solution"
43 JAVA_PKG_STRICT="" java-pkg_jar-from jaxen-1.1
44 fi
45 }
46
47 src_compile() {
48 # to prevent a newer jdom from going into cp
49 # (EANT_ANT_TASKS doesn't work with none)
50 ANT_TASKS="none" eant package $(use_doc)
51 }
52
53 src_install() {
54 java-pkg_dojar build/*.jar
55
56 dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die
57 use doc && java-pkg_dojavadoc build/apidocs
58 use examples && java-pkg_doexamples samples
59 use source && java-pkg_dosrc src/java/org
60 }
61
62 pkg_postinst() {
63 if ! has_version '=dev-java/jaxen-1.1*'; then
64 elog ""
65 elog "If you want jaxen support for jdom then"
66 elog "please emerge =dev-java/jaxen-1.1* first and"
67 elog "re-emerge jdom. Sorry for the"
68 elog "inconvenience, this is to break out of the"
69 elog "circular dependencies."
70 elog ""
71 fi
72 }

  ViewVC Help
Powered by ViewVC 1.1.20