/[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.10 - (hide annotations) (download)
Sun Jul 22 09:22:07 2007 UTC (12 years, 7 months ago) by betelgeuse
Branch: MAIN
Changes since 1.9: +2 -2 lines
Update SRC_URI as the files have been move to the archive. Fixes bug #186181.
(Portage version: 2.1.3_rc8)

1 caster 1.5 # Copyright 1999-2007 Gentoo Foundation
2 nelchael 1.1 # Distributed under the terms of the GNU General Public License v2
3 betelgeuse 1.10 # $Header: /var/cvsroot/gentoo-x86/dev-java/jdom/jdom-1.0_beta10-r4.ebuild,v 1.9 2007/06/08 15:30:46 betelgeuse Exp $
4 caster 1.6
5     JAVA_PKG_IUSE="doc examples source"
6 nelchael 1.1
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 betelgeuse 1.10 SRC_URI="http://www.jdom.org/dist/source/archive/${MY_P}.tar.gz"
15 nelchael 1.1 HOMEPAGE="http://www.jdom.org"
16     LICENSE="JDOM"
17     SLOT="${PV}"
18 betelgeuse 1.9 KEYWORDS="amd64 ppc x86"
19 caster 1.6 COMMON_DEP="dev-java/saxpath
20     >=dev-java/xerces-2.7"
21 nelchael 1.1 RDEPEND=">=virtual/jre-1.4
22 caster 1.6 ${COMMON_DEP}"
23 nelchael 1.1 DEPEND=">=virtual/jdk-1.4
24 caster 1.6 ${COMMON_DEP}"
25     IUSE=""
26 nelchael 1.1
27     S="${WORKDIR}/${MY_P}"
28    
29     src_unpack() {
30     unpack ${A}
31 caster 1.6 cd "${S}"
32    
33     rm -v build/*.jar lib/*.jar || die
34     rm -rf build/{apidocs,samples} || die
35 nelchael 1.1
36     cd ${S}/lib
37 caster 1.6 java-pkg_jar-from saxpath,xerces-2
38 nelchael 1.1
39 nelchael 1.2 if has_version '=dev-java/jaxen-1.1*'; then
40 caster 1.6 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 nelchael 1.1 fi
45     }
46    
47     src_compile() {
48 caster 1.6 # 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 nelchael 1.1 }
52    
53     src_install() {
54     java-pkg_dojar build/*.jar
55    
56 caster 1.6 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 nelchael 1.1 }
61    
62     pkg_postinst() {
63 nelchael 1.2 if ! has_version '=dev-java/jaxen-1.1*'; then
64 caster 1.5 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 nelchael 1.1 fi
72     }

  ViewVC Help
Powered by ViewVC 1.1.20