2014-02-28 18:31:43 +01:00
|
|
|
# Template file for 'apache-ant'
|
|
|
|
pkgname="apache-ant"
|
2014-05-15 09:23:05 +02:00
|
|
|
version="1.9.4"
|
|
|
|
revision=1
|
2014-02-28 18:31:43 +01:00
|
|
|
short_desc="Java library and command-line tool that help building software"
|
|
|
|
maintainer="Enno Boland <eb@s01.de>"
|
|
|
|
license="Apache License"
|
|
|
|
homepage="http://ant.apache.org"
|
|
|
|
distfiles="http://mirror.dkd.de/apache/ant/source/apache-ant-${version}-src.tar.bz2"
|
2014-05-15 09:23:05 +02:00
|
|
|
checksum="ac594ff7dcd461ebb3e607493af7682f84b1ceaa0621e17ec6367b8d2c410a1c"
|
2014-02-28 18:31:43 +01:00
|
|
|
hostmakedepends="jdk"
|
|
|
|
depends="jre"
|
|
|
|
noarch="yes"
|
|
|
|
_prefix=usr/share/apache-ant
|
|
|
|
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
# Disable tests
|
|
|
|
sed -i 's/jars,test-jar/jars/' build.xml
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
JAVA_HOME=/usr/share/java ./build.sh -Ddist.dir=$DESTDIR/$_prefix jars
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
JAVA_HOME=/usr/share/java ./build.sh -Ddist.dir=$DESTDIR/$_prefix dist
|
|
|
|
|
|
|
|
vinstall ${FILESDIR}/apache-ant.sh 644 etc/profile.d
|
2014-04-30 20:36:39 +02:00
|
|
|
rm $DESTDIR/$_prefix/bin/*.bat
|
|
|
|
rm $DESTDIR/$_prefix/bin/*.cmd
|
|
|
|
|
|
|
|
vmkdir usr/bin
|
|
|
|
ln -rs $DESTDIR/$_prefix/bin/ant $DESTDIR/usr/bin
|
2014-02-28 18:31:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
apache-ant-doc_package() {
|
2014-04-30 20:36:39 +02:00
|
|
|
short_desc+=" - documentation"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2014-02-28 18:31:43 +01:00
|
|
|
noarch="yes"
|
2014-04-30 20:36:39 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove $_prefix/manual
|
|
|
|
}
|
2014-02-28 18:31:43 +01:00
|
|
|
}
|