/[gentoo-x86]/dev-java/ant-core/ant-core-1.7.0-r1.ebuild
Gentoo

Contents of /dev-java/ant-core/ant-core-1.7.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri May 15 22:29:34 2009 UTC (5 years, 2 months ago) by caster
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Removing ant 1.7.0, bug #261563.
(Portage version: 2.2_rc33/cvs/Linux x86_64)

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/ant-core/ant-core-1.7.0-r1.ebuild,v 1.5 2008/04/12 10:28:19 nixnut Exp $
4
5 # don't depend on itself
6 JAVA_ANT_DISABLE_ANT_CORE_DEP=true
7 # rewriting build.xml files for the testcases has no reason atm
8 JAVA_PKG_BSFIX_ALL=no
9 inherit java-pkg-2 java-ant-2
10
11 MY_P="apache-ant-${PV}"
12
13 DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files."
14 HOMEPAGE="http://ant.apache.org/"
15 SRC_URI="mirror://apache/ant/source/${MY_P}-src.tar.bz2
16 mirror://gentoo/ant-${PV}-gentoo.tar.bz2"
17
18 LICENSE="Apache-2.0"
19 SLOT="0"
20 KEYWORDS="amd64 ~ia64 ppc ppc64 x86 ~x86-fbsd"
21 IUSE="doc source"
22
23 # 1.7.0 instead of $PV in blocks is intentional, >1.7.0 upgrades should
24 # be block free (but these fixed blocks should stay there for users upgrading
25 # from <1.7.0 of course)
26 RDEPEND=">=virtual/jdk-1.4
27 !<dev-java/ant-tasks-1.7.0
28 !<dev-java/ant-1.7.0
29 !dev-java/ant-optional"
30 DEPEND="${RDEPEND}
31 source? ( app-arch/zip )"
32
33 S="${WORKDIR}/${MY_P}"
34
35 src_unpack() {
36 unpack ${A}
37 cd "${S}"
38
39 # remove bundled xerces
40 rm -v lib/*.jar
41
42 # use our split-ant build.xml
43 mv -f "${WORKDIR}/build.xml" .
44 }
45
46 src_compile() {
47 export ANT_HOME=""
48
49 local bsyscp
50
51 # this ensures that when building ant with bootstrapped ant,
52 # only the source is used for resolving references, and not
53 # the classes in bootstrapped ant
54 # but jikes in kaffe has issues with this...
55 if ! java-pkg_current-vm-matches kaffe; then
56 bsyscp="-Dbuild.sysclasspath=ignore"
57 fi
58
59 ./build.sh ${bsyscp} jars-core $(use_doc javadocs) \
60 || die "build failed"
61 }
62
63 src_install() {
64 newbin "${FILESDIR}/${PV}-ant" ant || die "failed to install wrapper"
65
66 dodir /usr/share/${PN}/bin
67 for each in antRun runant.pl runant.py complete-ant-cmd.pl ; do
68 dobin "${S}/src/script/${each}"
69 dosym /usr/bin/${each} /usr/share/${PN}/bin/${each}
70 done
71
72 echo "ANT_HOME=\"/usr/share/${PN}\"" > "${T}/20ant"
73 doenvd "${T}/20ant" || die "failed to install env.d file"
74
75 java-pkg_dojar build/lib/ant.jar
76 java-pkg_dojar build/lib/ant-bootstrap.jar
77 java-pkg_dojar build/lib/ant-launcher.jar
78
79 use source && java-pkg_dosrc src/main/*
80
81 dodoc README WHATSNEW KEYS
82
83 if use doc; then
84 dohtml welcome.html
85 dohtml -r docs/*
86 java-pkg_dojavadoc --symlink manual/api build/javadocs
87 fi
88 }
89
90 pkg_postinst() {
91 elog "The way of packaging ant in Gentoo has changed significantly since"
92 elog "the 1.7.0 version, For more information, please see:"
93 elog "http://www.gentoo.org/proj/en/java/ant-guide.xml"
94 }

  ViewVC Help
Powered by ViewVC 1.1.20