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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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.1: +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-r2.ebuild,v 1.1 2008/06/16 18:59:17 betelgeuse 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 epatch "${FILESDIR}/ant-core-1.7.0-services.patch"
39
40 # remove bundled xerces
41 rm -v lib/*.jar
42
43 # use our split-ant build.xml
44 mv -f "${WORKDIR}/build.xml" .
45 }
46
47 src_compile() {
48 export ANT_HOME=""
49
50 local bsyscp
51
52 # this ensures that when building ant with bootstrapped ant,
53 # only the source is used for resolving references, and not
54 # the classes in bootstrapped ant
55 # but jikes in kaffe has issues with this...
56 if ! java-pkg_current-vm-matches kaffe; then
57 bsyscp="-Dbuild.sysclasspath=ignore"
58 fi
59
60 ./build.sh ${bsyscp} jars-core $(use_doc javadocs) \
61 || die "build failed"
62 }
63
64 src_install() {
65 newbin "${FILESDIR}/${PV}-ant" ant || die "failed to install wrapper"
66
67 dodir /usr/share/${PN}/bin
68 for each in antRun runant.pl runant.py complete-ant-cmd.pl ; do
69 dobin "${S}/src/script/${each}"
70 dosym /usr/bin/${each} /usr/share/${PN}/bin/${each}
71 done
72
73 echo "ANT_HOME=\"/usr/share/${PN}\"" > "${T}/20ant"
74 doenvd "${T}/20ant" || die "failed to install env.d file"
75
76 java-pkg_dojar build/lib/ant.jar
77 java-pkg_dojar build/lib/ant-bootstrap.jar
78 java-pkg_dojar build/lib/ant-launcher.jar
79
80 use source && java-pkg_dosrc src/main/*
81
82 dodoc README WHATSNEW KEYS
83
84 if use doc; then
85 dohtml welcome.html
86 dohtml -r docs/*
87 java-pkg_dojavadoc --symlink manual/api build/javadocs
88 fi
89 }
90
91 pkg_postinst() {
92 elog "The way of packaging ant in Gentoo has changed significantly since"
93 elog "the 1.7.0 version, For more information, please see:"
94 elog "http://www.gentoo.org/proj/en/java/ant-guide.xml"
95 }

  ViewVC Help
Powered by ViewVC 1.1.20