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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.11
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 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.1 2006/09/11 12:13:07 nelchael Exp $ 3# $Header: /var/cvsroot/gentoo-x86/dev-java/jdom/jdom-1.0_beta10-r4.ebuild,v 1.11 2009/08/19 08:27:24 elvanor Exp $
4
5JAVA_PKG_IUSE="doc examples source"
4 6
5inherit java-pkg-2 java-ant-2 7inherit java-pkg-2 java-ant-2
6 8
7MY_PN="jdom" 9MY_PN="jdom"
8MY_PV="b10" 10MY_PV="b10"
9MY_P="${MY_PN}-${MY_PV}" 11MY_P="${MY_PN}-${MY_PV}"
10 12
11DESCRIPTION="Java API to manipulate XML data" 13DESCRIPTION="Java API to manipulate XML data"
12SRC_URI="http://www.jdom.org/dist/source/${MY_P}.tar.gz" 14SRC_URI="http://www.jdom.org/dist/source/archive/${MY_P}.tar.gz"
13HOMEPAGE="http://www.jdom.org" 15HOMEPAGE="http://www.jdom.org"
14LICENSE="JDOM" 16LICENSE="JDOM"
15SLOT="${PV}" 17SLOT="${PV}"
16KEYWORDS="~amd64 ~ppc ~sparc ~x86" 18KEYWORDS="amd64 ppc x86"
17IUSE="doc source" 19COMMON_DEP="dev-java/saxpath
20 >=dev-java/xerces-2.7"
18RDEPEND=">=virtual/jre-1.4 21RDEPEND=">=virtual/jre-1.4
19 dev-java/saxpath 22 ${COMMON_DEP}"
20 dev-java/xalan
21 >=dev-java/xerces-2.6.2-r1"
22DEPEND=">=virtual/jdk-1.4 23DEPEND=">=virtual/jdk-1.4
23 dev-java/ant-core 24 ${COMMON_DEP}"
24 ${RDEPEND}" 25IUSE=""
25 26
26S="${WORKDIR}/${MY_P}" 27S="${WORKDIR}/${MY_P}"
27 28
28src_unpack() { 29src_unpack() {
29 unpack ${A} 30 unpack ${A}
30 cd ${S} 31 cd "${S}"
31 rm -f build/*.jar lib/*.jar
32 32
33 cd ${S}/lib 33 rm -v build/*.jar lib/*.jar || die
34 java-pkg_jar-from saxpath 34 rm -rf build/{apidocs,samples} || die
35 java-pkg_jar-from xerces-2
36 35
36 cd "${S}/lib"
37 java-pkg_jar-from saxpath,xerces-2
38
37 if has_version dev-java/jaxen; then 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"
38 java-pkg_jar-from jaxen-1.1 43 JAVA_PKG_STRICT="" java-pkg_jar-from jaxen-1.1
39 fi 44 fi
40} 45}
41 46
42src_compile() { 47src_compile() {
43 48 # to prevent a newer jdom from going into cp
44 eant package || die "compile problem" 49 # (EANT_ANT_TASKS doesn't work with none)
45 50 ANT_TASKS="none" eant package $(use_doc)
46} 51}
47 52
48src_install() { 53src_install() {
49 java-pkg_dojar build/*.jar 54 java-pkg_dojar build/*.jar
50 55
51 dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt 56 dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die
52 use doc && java-pkg_dohtml -r build/apidocs/* 57 use doc && java-pkg_dojavadoc build/apidocs
58 use examples && java-pkg_doexamples samples
53 use source && java-pkg_dosrc src/java/* 59 use source && java-pkg_dosrc src/java/org
54} 60}
55 61
56pkg_postinst() { 62pkg_postinst() {
57 if ! has_version dev-java/jaxen; then 63 if ! has_version '=dev-java/jaxen-1.1*'; then
58 einfo "" 64 elog ""
59 einfo "If you want jaxen support for jdom then" 65 elog "If you want jaxen support for jdom then"
60 einfo "please emerge =dev-java/jaxen-1.1* first and" 66 elog "please emerge =dev-java/jaxen-1.1* first and"
61 einfo "re-emerge jdom. Sorry for the" 67 elog "re-emerge jdom. Sorry for the"
62 einfo "inconvenience, this is to break out of the" 68 elog "inconvenience, this is to break out of the"
63 einfo "circular dependencies." 69 elog "circular dependencies."
64 einfo "" 70 elog ""
65 fi 71 fi
66} 72}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20