/[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.5 Revision 1.6
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.5 2007/01/05 23:31:51 caster Exp $ 3# $Header: /var/cvsroot/gentoo-x86/dev-java/jdom/jdom-1.0_beta10-r4.ebuild,v 1.6 2007/06/01 19:40:06 caster 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"
12SRC_URI="http://www.jdom.org/dist/source/${MY_P}.tar.gz" 14SRC_URI="http://www.jdom.org/dist/source/${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 ~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.7"
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}"
32
31 rm -f build/*.jar lib/*.jar 33 rm -v build/*.jar lib/*.jar || die
34 rm -rf build/{apidocs,samples} || die
32 35
33 cd ${S}/lib 36 cd ${S}/lib
34 java-pkg_jar-from saxpath
35 java-pkg_jar-from xerces-2 37 java-pkg_jar-from saxpath,xerces-2
36 38
37 if has_version '=dev-java/jaxen-1.1*'; 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-1.1*'; then 63 if ! has_version '=dev-java/jaxen-1.1*'; then
58 elog "" 64 elog ""

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20