2014-02-28 16:31:43 -01:00
|
|
|
# Template file for 'apache-ant'
|
|
|
|
pkgname="apache-ant"
|
2015-07-04 13:00:34 +00:00
|
|
|
version=1.9.6
|
2015-06-09 06:52:00 +00:00
|
|
|
revision=1
|
2014-02-28 16:31:43 -01:00
|
|
|
short_desc="Java library and command-line tool that help building software"
|
2015-08-09 17:08:42 +00:00
|
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
2014-02-28 16:31:43 -01:00
|
|
|
license="Apache License"
|
|
|
|
homepage="http://ant.apache.org"
|
|
|
|
distfiles="http://mirror.dkd.de/apache/ant/source/apache-ant-${version}-src.tar.bz2"
|
2015-07-04 13:00:34 +00:00
|
|
|
checksum=2ad98dd3a4805452e546e0f5b682360370ae11692a2157fff8ec6d177c957123
|
2014-09-15 16:49:20 +00:00
|
|
|
hostmakedepends="openjdk"
|
2014-09-15 15:48:42 +00:00
|
|
|
depends="virtual?java-runtime"
|
2014-02-28 16:31:43 -01:00
|
|
|
noarch="yes"
|
|
|
|
_prefix=usr/share/apache-ant
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
# Disable tests
|
|
|
|
sed -i 's/jars,test-jar/jars/' build.xml
|
|
|
|
}
|
|
|
|
do_build() {
|
2014-09-16 08:33:10 +00:00
|
|
|
export JAVA_HOME=/usr/lib/jvm/openjdk
|
2014-06-22 10:01:21 +00:00
|
|
|
./build.sh -Ddist.dir=$DESTDIR/$_prefix jars
|
2014-02-28 16:31:43 -01:00
|
|
|
}
|
|
|
|
do_install() {
|
2014-09-16 08:33:10 +00:00
|
|
|
export JAVA_HOME=/usr/lib/jvm/openjdk
|
2014-06-22 10:01:21 +00:00
|
|
|
./build.sh -Ddist.dir=$DESTDIR/$_prefix dist
|
2014-02-28 16:31:43 -01:00
|
|
|
|
|
|
|
vinstall ${FILESDIR}/apache-ant.sh 644 etc/profile.d
|
2014-04-30 18:36:39 +00: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 16:31:43 -01:00
|
|
|
}
|
|
|
|
|
|
|
|
apache-ant-doc_package() {
|
2014-04-30 18:36:39 +00:00
|
|
|
short_desc+=" - documentation"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2014-02-28 16:31:43 -01:00
|
|
|
noarch="yes"
|
2014-04-30 18:36:39 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove $_prefix/manual
|
|
|
|
}
|
2014-02-28 16:31:43 -01:00
|
|
|
}
|