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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Thu Jul 9 21:10:56 2015 UTC (3 years, 4 months ago) by chewi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove old versions.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 9C6D7DE4)

1 slyfox 1.3 # Copyright 1999-2014 Gentoo Foundation
2 caster 1.1 # Distributed under the terms of the GNU General Public License v2
3 chewi 1.4 # $Header: /var/cvsroot/gentoo-x86/dev-java/ant-core/ant-core-1.8.0-r2.ebuild,v 1.3 2014/08/10 20:07:23 slyfox Exp $
4 caster 1.1
5     EAPI="3"
6    
7     # don't depend on itself
8     JAVA_ANT_DISABLE_ANT_CORE_DEP=true
9     # rewriting build.xml files for the testcases has no reason atm
10     JAVA_PKG_BSFIX_ALL=no
11     JAVA_PKG_IUSE="doc source"
12     inherit eutils java-pkg-2 java-ant-2 prefix
13    
14     MY_P="apache-ant-${PV}"
15    
16 slyfox 1.3 DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files"
17 caster 1.1 HOMEPAGE="http://ant.apache.org/"
18     SRC_URI="mirror://apache/ant/source/${MY_P}-src.tar.bz2
19     mirror://gentoo/ant-${PV}-gentoo-r2.tar.bz2"
20    
21     LICENSE="Apache-2.0"
22     SLOT="0"
23 sera 1.2 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
24 caster 1.1 IUSE=""
25    
26     DEPEND=">=virtual/jdk-1.4
27     !dev-java/ant-tasks
28     !dev-java/ant-optional"
29     RDEPEND="${DEPEND}"
30    
31     S="${WORKDIR}/${MY_P}"
32    
33     src_prepare() {
34     # remove bundled xerces
35     rm -v lib/*.jar || die
36    
37     EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches/"
38     eprefixify "${WORKDIR}/ant"
39    
40     # use our split-ant build.xml
41     mv -f "${WORKDIR}/build.xml" . || die
42    
43     # bug #196080
44     java-ant_bsfix_one build.xml
45     java-pkg-2_src_prepare
46     }
47    
48     src_compile() {
49     export ANT_HOME=""
50    
51     local bsyscp
52    
53     # this ensures that when building ant with bootstrapped ant,
54     # only the source is used for resolving references, and not
55     # the classes in bootstrapped ant
56     # but jikes in kaffe has issues with this...
57     if ! java-pkg_current-vm-matches kaffe; then
58     bsyscp="-Dbuild.sysclasspath=ignore"
59     fi
60    
61     CLASSPATH="$(java-config -t)" ./build.sh ${bsyscp} jars-core internal_dist \
62     $(use_doc javadocs) || die "build failed"
63     }
64    
65     src_install() {
66     dodir /usr/share/ant/lib
67     for jar in ant.jar ant-bootstrap.jar ant-launcher.jar ; do
68     java-pkg_dojar build/lib/${jar}
69     dosym /usr/share/${PN}/lib/${jar} /usr/share/ant/lib/${jar}
70     done
71    
72     dobin "${WORKDIR}/ant" || die "failed to install wrapper"
73     dodir /usr/share/${PN}/bin
74     for each in antRun antRun.pl runant.pl runant.py complete-ant-cmd.pl ; do
75     dobin "${S}/src/script/${each}"
76     dosym /usr/bin/${each} /usr/share/${PN}/bin/${each}
77     done
78     dosym /usr/share/${PN}/bin /usr/share/ant/bin
79    
80     insinto /usr/share/${PN}
81     doins -r dist/etc
82     dosym /usr/share/${PN}/etc /usr/share/ant/etc
83    
84     echo "ANT_HOME=\"${EPREFIX}/usr/share/ant\"" > "${T}/20ant"
85     doenvd "${T}/20ant" || die "failed to install env.d file"
86    
87     dodoc NOTICE README WHATSNEW KEYS || die
88    
89     if use doc; then
90     dohtml -r docs/*
91     java-pkg_dojavadoc --symlink manual/api build/javadocs
92     fi
93    
94     use source && java-pkg_dosrc src/main/*
95     }
96    
97     pkg_postinst() {
98     elog "The way of packaging ant in Gentoo has changed significantly since"
99     elog "the 1.7.0 version, For more information, please see:"
100     elog "http://www.gentoo.org/proj/en/java/ant-guide.xml"
101     elog
102     elog "Since 1.7.1, the ant-tasks meta-ebuild has been removed and its USE"
103     elog "flags have been moved to dev-java/ant."
104     }

  ViewVC Help
Powered by ViewVC 1.1.20