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

Contents of /dev-java/commons-betwixt/commons-betwixt-0.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Nov 30 15:29:39 2006 UTC (13 years, 2 months ago) by caster
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Update xerces dep for upcoming 2.6 slotmove.
(Portage version: 2.1.2_rc2-r3)
 (Unsigned Manifest commit)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/commons-betwixt/commons-betwixt-0.7.ebuild,v 1.1 2005/12/15 05:20:14 nichoj Exp $
4
5 inherit java-pkg eutils
6
7 DESCRIPTION="Introspective Bean to XML mapper"
8 HOMEPAGE="http://jakarta.apache.org/commons/betwixt/"
9 SRC_URI="mirror://apache/jakarta/commons/betwixt/source/${P}-src.tar.gz"
10
11 LICENSE="Apache-2.0"
12 SLOT="0.7"
13 KEYWORDS="~amd64 ~x86 ~ppc"
14 IUSE="doc jikes test source"
15
16 RDEPEND=">=virtual/jre-1.3
17 >=dev-java/commons-logging-1.0.2
18 =dev-java/commons-beanutils-1.7*
19 >=dev-java/commons-digester-1.6"
20 DEPEND=">=virtual/jdk-1.3
21 ${RDEPEND}
22 dev-java/ant-core
23 jikes? ( >=dev-java/jikes-1.21 )
24 test? ( dev-java/ant-tasks >=dev-java/xerces-2.6 )
25 source? ( app-arch/zip )"
26
27 S="${WORKDIR}/${P}-src/"
28
29 src_unpack() {
30 unpack ${A}
31
32 epatch ${FILESDIR}/${P}-notests.patch
33
34 cd ${S}
35 mkdir -p ${S}/target/lib && cd ${S}/target/lib
36 java-pkg_jar-from commons-beanutils-1.7
37 java-pkg_jar-from commons-digester
38 java-pkg_jar-from commons-logging
39 use test && java-pkg_jar-from xerces-2
40 }
41
42 src_compile() {
43 local antflags="init jar -Dnoget=true -Dnotest=true"
44 use doc && antflags="${antflags} javadoc"
45 use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
46 ant ${antflags} || die "compile failed"
47 }
48
49 src_install() {
50 java-pkg_newjar target/${PN}*.jar ${PN}.jar
51
52 dodoc RELEASE-NOTES.txt README.txt
53 if use doc; then
54 java-pkg_dohtml PROPOSAL.html STATUS.html userguide.html
55 java-pkg_dohtml -r dist/docs/
56 fi
57 use source && java-pkg_dosrc src/java/*
58 }
59
60 src_test() {
61 if ! use test; then
62 ewarn "You must USE=test in order to get the dependencies needed"
63 ewarn "to run tests"
64 ewarn "Skipping the tests"
65 else
66 ant test -Dnoget=true || die "tests failed"
67 fi
68 }

  ViewVC Help
Powered by ViewVC 1.1.20