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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Jun 20 07:29:38 2012 UTC (7 years, 7 months ago) by sera
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +6 -5 lines
Use eclass src_test instead of custom one. Fixes test failures due to missing xerces deps in test classpath. #422457

(Portage version: 2.1.10.65/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/commons-betwixt/commons-betwixt-0.8.ebuild,v 1.7 2010/02/09 11:30:04 pacho Exp $
4
5 EAPI=2
6 JAVA_PKG_IUSE="doc test source"
7
8 inherit java-pkg-2 eutils java-ant-2
9
10 DESCRIPTION="Introspective Bean to XML mapper"
11
12 LICENSE="Apache-2.0"
13 SLOT="0.7"
14 KEYWORDS="amd64 ppc x86"
15 IUSE=""
16
17 COMMON_DEP="
18 dev-java/commons-collections:0
19 >=dev-java/commons-logging-1.0.2:0
20 dev-java/commons-beanutils:1.7
21 >=dev-java/commons-digester-1.6:0"
22 RDEPEND=">=virtual/jre-1.4
23 ${COMMON_DEP}"
24 DEPEND=">=virtual/jdk-1.4
25 ${COMMON_DEP}
26 test? (
27 dev-java/ant-junit:0
28 >=dev-java/xerces-2.7:2
29 )"
30
31 S="${WORKDIR}/${P}-src/"
32
33 JAVA_ANT_ENCODING="ISO-8859-1"
34 JAVA_ANT_REWRITE_CLASSPATH="true"
35 JAVA_ANT_IGNORE_SYSTEM_CLASSES="true"
36 EANT_GENTOO_CLASSPATH="commons-beanutils-1.7,commons-collections,commons-digester,commons-logging"
37 EANT_BUILD_TARGET="init jar"
38
39 java_prepare() {
40 epatch "${FILESDIR}/${PN}-0.8-test-dtd.patch"
41 }
42
43 EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},xerces-2"
44
45 src_test() {
46 java-pkg-2_src_test
47 }
48
49 src_install() {
50 java-pkg_newjar target/${PN}*.jar ${PN}.jar
51
52 dodoc RELEASE-NOTES.txt README.txt || die
53 use doc && java-pkg_dojavadoc dist/docs/api
54 use source && java-pkg_dosrc src/java/*
55 }

  ViewVC Help
Powered by ViewVC 1.1.20