/[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.2 - (hide annotations) (download)
Mon Sep 11 22:11:06 2006 UTC (7 years, 7 months ago) by nelchael
Branch: MAIN
Changes since 1.1: +3 -3 lines
Fix bug #147230 - fixed has_version function call.
(Portage version: 2.1.1)

1 nelchael 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 nelchael 1.2 # $Header: /var/cvsroot/gentoo-x86/dev-java/jdom/jdom-1.0_beta10-r4.ebuild,v 1.1 2006/09/11 12:13:07 nelchael Exp $
4 nelchael 1.1
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 ~sparc ~x86"
17     IUSE="doc source"
18     RDEPEND=">=virtual/jre-1.4
19     dev-java/saxpath
20     dev-java/xalan
21     >=dev-java/xerces-2.6.2-r1"
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 nelchael 1.2 if has_version '=dev-java/jaxen-1.1*'; then
38 nelchael 1.1 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 nelchael 1.2 if ! has_version '=dev-java/jaxen-1.1*'; then
58 nelchael 1.1 einfo ""
59     einfo "If you want jaxen support for jdom then"
60     einfo "please emerge =dev-java/jaxen-1.1* first and"
61     einfo "re-emerge jdom. Sorry for the"
62     einfo "inconvenience, this is to break out of the"
63     einfo "circular dependencies."
64     einfo ""
65     fi
66     }

  ViewVC Help
Powered by ViewVC 1.1.20