/[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.5 - (show annotations) (download)
Fri Jan 5 23:31:51 2007 UTC (13 years, 1 month ago) by caster
Branch: MAIN
Changes since 1.4: +9 -9 lines
Convert einfo to elog.
(Portage version: 2.1.2_rc4-r6)

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.4 2006/11/30 15:50:24 caster Exp $
4
5 inherit java-pkg-2 java-ant-2
6
7 MY_PN="jdom"
8 MY_PV="b10"
9 MY_P="${MY_PN}-${MY_PV}"
10
11 DESCRIPTION="Java API to manipulate XML data"
12 SRC_URI="http://www.jdom.org/dist/source/${MY_P}.tar.gz"
13 HOMEPAGE="http://www.jdom.org"
14 LICENSE="JDOM"
15 SLOT="${PV}"
16 KEYWORDS="~amd64 ~ppc ~x86"
17 IUSE="doc source"
18 RDEPEND=">=virtual/jre-1.4
19 dev-java/saxpath
20 dev-java/xalan
21 >=dev-java/xerces-2.7"
22 DEPEND=">=virtual/jdk-1.4
23 dev-java/ant-core
24 ${RDEPEND}"
25
26 S="${WORKDIR}/${MY_P}"
27
28 src_unpack() {
29 unpack ${A}
30 cd ${S}
31 rm -f build/*.jar lib/*.jar
32
33 cd ${S}/lib
34 java-pkg_jar-from saxpath
35 java-pkg_jar-from xerces-2
36
37 if has_version '=dev-java/jaxen-1.1*'; then
38 java-pkg_jar-from jaxen-1.1
39 fi
40 }
41
42 src_compile() {
43
44 eant package || die "compile problem"
45
46 }
47
48 src_install() {
49 java-pkg_dojar build/*.jar
50
51 dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt
52 use doc && java-pkg_dohtml -r build/apidocs/*
53 use source && java-pkg_dosrc src/java/*
54 }
55
56 pkg_postinst() {
57 if ! has_version '=dev-java/jaxen-1.1*'; then
58 elog ""
59 elog "If you want jaxen support for jdom then"
60 elog "please emerge =dev-java/jaxen-1.1* first and"
61 elog "re-emerge jdom. Sorry for the"
62 elog "inconvenience, this is to break out of the"
63 elog "circular dependencies."
64 elog ""
65 fi
66 }

  ViewVC Help
Powered by ViewVC 1.1.20