/[gentoo-x86]/dev-java/xdoclet/xdoclet-1.2.3.ebuild
Gentoo

Contents of /dev-java/xdoclet/xdoclet-1.2.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Thu Jan 10 23:13:22 2008 UTC (6 years, 7 months ago) by caster
Branch: MAIN
Changes since 1.12: +3 -3 lines
Restrict junit dependency.
(Portage version: 2.1.4_rc14)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/xdoclet/xdoclet-1.2.3.ebuild,v 1.12 2007/11/01 23:46:20 wltjr Exp $
4
5 JAVA_PKG_IUSE="source"
6 WANT_ANT_TASKS="ant-nodeps ant-trax"
7
8 inherit eutils java-pkg-2 java-ant-2
9
10 DESCRIPTION="XDoclet is an extended Javadoc Doclet engine."
11 HOMEPAGE="http://xdoclet.sf.net/"
12 SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.tgz"
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="amd64 ~ppc x86"
16 IUSE=""
17
18 CDEPEND=">=dev-java/bsf-2.3
19 dev-java/commons-collections
20 dev-java/commons-logging
21 dev-java/log4j
22 dev-java/mockobjects
23 dev-java/velocity
24 dev-java/xjavadoc
25 =dev-java/junit-3.8*"
26 DEPEND=">=virtual/jdk-1.4
27 ${CDEPEND}"
28 RDEPEND=">=virtual/jre-1.4
29 dev-java/ant-core
30 ${CDEPEND}"
31
32 src_unpack() {
33 unpack ${A}
34
35 cd "${S}"
36 epatch "${FILESDIR}"/${P}-interface.patch
37 epatch "${FILESDIR}"/${P}-buildfile.patch
38
39 cd "${S}"/lib && rm -f *.jar
40 java-pkg_jar-from xjavadoc
41 java-pkg_jar-from bsf-2.3
42 java-pkg_jar-from velocity
43 java-pkg_jar-from log4j
44 java-pkg_jar-from mockobjects
45 java-pkg_jar-from commons-logging
46 java-pkg_jar-from commons-collections
47 java-pkg_jar-from velocity
48 java-pkg_jar-from ant-core ant.jar
49 java-pkg_jar-from junit
50 }
51
52 # TODO investigate why compiling needs junit, ie is build not sane enough to
53 # devide building of test classes separate from rest of classes?
54 src_compile() {
55 # bug #167445
56 use amd64 && export ANT_OPTS="-Xmx512m"
57 eant core modules maven
58 }
59
60 src_install() {
61 for jar in target/lib/*.jar; do
62 java-pkg_newjar ${jar} $(basename ${jar/-${PV}/})
63 done
64
65 dodoc README.txt
66 use source && java-pkg_dosrc core/src/xdoclet modules/*
67 }

  ViewVC Help
Powered by ViewVC 1.1.20