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

Contents of /dev-java/ant-core/ant-core-1.7.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Jul 16 14:41:51 2008 UTC (6 years, 1 month ago) by caster
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Revbump to update ant version in startup script to fix detection of optional tasks. Fixes bug #231968.
(Portage version: 2.2_rc1/cvs/Linux 2.6.25-gentoo-r4 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.1.ebuild,v 1.2 2008/07/14 22:16:49 caster 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 JAVA_PKG_IUSE="doc source"
10 inherit java-pkg-2 java-ant-2
11
12 MY_P="apache-ant-${PV}"
13
14 DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files."
15 HOMEPAGE="http://ant.apache.org/"
16 SRC_URI="mirror://apache/ant/source/${MY_P}-src.tar.bz2
17 mirror://gentoo/ant-${PV}-gentoo.tar.bz2"
18
19 LICENSE="Apache-2.0"
20 SLOT="0"
21 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
22 IUSE=""
23
24 DEPEND=">=virtual/jdk-1.4
25 !dev-java/ant-tasks
26 !dev-java/ant-optional"
27 RDEPEND="${DEPEND}"
28
29 S="${WORKDIR}/${MY_P}"
30
31 src_unpack() {
32 unpack ${A}
33 cd "${S}"
34
35 # remove bundled xerces
36 rm -v lib/*.jar || die
37
38 # use our split-ant build.xml
39 mv -f "${WORKDIR}/build.xml" . || die
40 }
41
42 src_compile() {
43 export ANT_HOME=""
44
45 local bsyscp
46
47 # this ensures that when building ant with bootstrapped ant,
48 # only the source is used for resolving references, and not
49 # the classes in bootstrapped ant
50 # but jikes in kaffe has issues with this...
51 if ! java-pkg_current-vm-matches kaffe; then
52 bsyscp="-Dbuild.sysclasspath=ignore"
53 fi
54
55 ./build.sh ${bsyscp} jars-core internal_dist $(use_doc javadocs) \
56 || die "build failed"
57 }
58
59 src_install() {
60 dodir /usr/share/ant/lib
61 for jar in ant.jar ant-bootstrap.jar ant-launcher.jar ; do
62 java-pkg_dojar build/lib/${jar}
63 dosym /usr/share/${PN}/lib/${jar} /usr/share/ant/lib/${jar}
64 done
65
66 newbin "${FILESDIR}/${PV}-ant" ant || die "failed to install wrapper"
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 dosym /usr/share/${PN}/bin /usr/share/ant/bin
73
74 insinto /usr/share/${PN}
75 doins -r dist/etc
76 dosym /usr/share/${PN}/etc /usr/share/ant/etc
77
78 echo "ANT_HOME=\"/usr/share/ant\"" > "${T}/20ant"
79 doenvd "${T}/20ant" || die "failed to install env.d file"
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 use source && java-pkg_dosrc src/main/*
90 }
91
92 pkg_postinst() {
93 elog "The way of packaging ant in Gentoo has changed significantly since"
94 elog "the 1.7.0 version, For more information, please see:"
95 elog "http://www.gentoo.org/proj/en/java/ant-guide.xml"
96 elog
97 elog "Since 1.7.1, the ant-tasks meta-ebuild has been removed and its USE"
98 elog "flags have been moved to dev-java/ant."
99 }

  ViewVC Help
Powered by ViewVC 1.1.20