/[gentoo-x86]/dev-java/commons-betwixt/commons-betwixt-0.6-r1.ebuild
Gentoo

Diff of /dev-java/commons-betwixt/commons-betwixt-0.6-r1.ebuild

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

Revision 1.1 Revision 1.2
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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/commons-betwixt/Attic/commons-betwixt-0.6-r1.ebuild,v 1.1 2005/05/14 16:10:36 luckyduck Exp $ 3# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-betwixt/Attic/commons-betwixt-0.6-r1.ebuild,v 1.2 2005/06/12 19:24:39 luckyduck Exp $
4 4
5inherit java-pkg eutils 5inherit java-pkg eutils
6 6
7DESCRIPTION="Introspective Bean to XML mapper" 7DESCRIPTION="Introspective Bean to XML mapper"
8HOMEPAGE="http://jakarta.apache.org/commons/betwixt/" 8HOMEPAGE="http://jakarta.apache.org/commons/betwixt/"
11LICENSE="Apache-2.0" 11LICENSE="Apache-2.0"
12SLOT="0" 12SLOT="0"
13KEYWORDS="amd64 x86 ~ppc" 13KEYWORDS="amd64 x86 ~ppc"
14IUSE="doc jikes source" 14IUSE="doc jikes source"
15 15
16DEPEND=">=dev-java/commons-logging-1.0.2 16DEPEND=">=virtual/jdk-1.3
17 =dev-java/commons-beanutils-1.7*
18 >=dev-java/commons-digester-1.6
19 >=dev-java/ant-core-1.4 17 dev-java/ant-core
20 jikes? ( >=dev-java/jikes-1.21 ) 18 jikes? ( >=dev-java/jikes-1.21 )
21 source? ( app-arch/zip )" 19 source? ( app-arch/zip )"
22RDEPEND=">=virtual/jdk-1.3" 20RDEPEND=">=virtual/jre-1.3
21 >=dev-java/commons-logging-1.0.2
22 =dev-java/commons-beanutils-1.7*
23 >=dev-java/commons-digester-1.6"
23 24
24S="${WORKDIR}/${P}-src/" 25S="${WORKDIR}/${P}-src/"
25 26
26src_unpack() { 27src_unpack() {
27 unpack ${A} && cd $S 28 unpack ${A}
28 echo "commons-logging.jar=`java-config -p commons-logging`" \
29 > build.properties
30 echo "commons-beanutils.jar=`java-config -p commons-beanutils-1.7`" \
31 >> build.properties
32 echo "commons-digester.jar=`java-config -p commons-digester`" \
33 >> build.properties
34 29
30 cd ${S}
35 epatch ${FILESDIR}/${P}-noget.patch 31 epatch ${FILESDIR}/${P}-noget.patch
32
33 mkdir -p ${S}/target/lib && cd ${S}/target/lib
34 java-pkg_jar-from commons-beanutils-1.7
35 java-pkg_jar-from commons-digester
36 java-pkg_jar-from commons-logging
36} 37}
37 38
38src_compile() { 39src_compile() {
39 local antflags="jar" 40 local antflags="init jar"
40 use doc && antflags="${antflags} javadoc" 41 use doc && antflags="${antflags} javadoc"
41 use jikes && antflags="${antflags} -Dbuild.compiler=jikes" 42 use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
42 ant ${antflags} || die "compile failed" 43 ant ${antflags} || die "compile failed"
43} 44}
44 45
45src_install() { 46src_install() {
46 java-pkg_dojar target/${PN}.jar 47 java-pkg_newjar target/${PN}*.jar ${PN}.jar
47 48
49 dodoc RELEASE-NOTES.txt
48 if use doc; then 50 if use doc; then
49 dodoc RELEASE-NOTES.txt
50 java-pkg_dohtml PROPOSAL.html STATUS.html userguide.html 51 java-pkg_dohtml PROPOSAL.html STATUS.html userguide.html
51 java-pkg_dohtml -r dist/docs/ 52 java-pkg_dohtml -r dist/docs/
52 fi 53 fi
53 use source && java-pkg_dosrc src/java/* 54 use source && java-pkg_dosrc src/java/*
54} 55}

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

  ViewVC Help
Powered by ViewVC 1.1.20