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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Jan 1 15:32:54 2012 UTC (8 years ago) by sera
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +3 -3 lines
Drop ia64 support #345433

(Portage version: 2.1.10.43/cvs/Linux x86_64)

1 # Copyright 1999-2012 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-r2.ebuild,v 1.8 2009/08/19 08:27:24 elvanor Exp $
4
5 JAVA_PKG_IUSE="doc examples source"
6
7 inherit java-pkg-2 java-ant-2
8
9 DESCRIPTION="Java API to manipulate XML data"
10 SRC_URI="http://www.jdom.org/dist/source/${P}.tar.gz"
11 HOMEPAGE="http://www.jdom.org"
12 LICENSE="JDOM"
13 SLOT="${PV}"
14 KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
15 COMMON_DEP="dev-java/saxpath
16 >=dev-java/xerces-2.7"
17 RDEPEND=">=virtual/jre-1.4
18 ${COMMON_DEP}"
19 DEPEND=">=virtual/jdk-1.4
20 ${COMMON_DEP}"
21 IUSE=""
22
23 src_unpack() {
24 unpack ${A}
25 cd "${S}"
26
27 rm -v build/*.jar lib/*.jar || die
28 rm -rf build/{apidocs,samples} || die
29
30 cd "${S}/lib"
31 java-pkg_jar-from saxpath,xerces-2
32
33 if has_version '=dev-java/jaxen-1.1*'; then
34 elog "jaxen detected - building jaxen support."
35 elog "you can ignore the warnings below"
36 elog "one day there will be better solution"
37 JAVA_PKG_STRICT="" java-pkg_jar-from jaxen-1.1
38 fi
39 }
40
41 src_compile() {
42 # to prevent a newer jdom from going into cp
43 # (EANT_ANT_TASKS doesn't work with none)
44 ANT_TASKS="none" eant package $(use_doc)
45 }
46
47 src_install() {
48 java-pkg_dojar build/*.jar
49
50 dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die
51 use doc && java-pkg_dojavadoc build/apidocs
52 use examples && java-pkg_doexamples samples
53 use source && java-pkg_dosrc src/java/org
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