apache-ant: add package
This commit is contained in:
parent
1db8801b2c
commit
d4e2b9f56d
4 changed files with 63 additions and 0 deletions
1
srcpkgs/apache-ant-doc
Symbolic link
1
srcpkgs/apache-ant-doc
Symbolic link
|
@ -0,0 +1 @@
|
|||
apache-ant
|
21
srcpkgs/apache-ant/INSTALL
Normal file
21
srcpkgs/apache-ant/INSTALL
Normal file
|
@ -0,0 +1,21 @@
|
|||
#
|
||||
# This script will advise the user to re-login to have JRE included
|
||||
# in PATH
|
||||
#
|
||||
case "${ACTION}" in
|
||||
pre)
|
||||
;;
|
||||
post)
|
||||
cat << _EOF
|
||||
=====================================================================
|
||||
|
||||
- Please re-login to include Apache Ant in your PATH or re-source
|
||||
/etc/profile:
|
||||
|
||||
$ source /etc/profile
|
||||
|
||||
=====================================================================
|
||||
_EOF
|
||||
;;
|
||||
esac
|
||||
|
2
srcpkgs/apache-ant/files/apache-ant.sh
Normal file
2
srcpkgs/apache-ant/files/apache-ant.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
export PATH=$PATH:/usr/share/apache-ant/bin
|
||||
export ANT_HOME=${ANT_HOME:-/usr/share/apache-ant}
|
39
srcpkgs/apache-ant/template
Normal file
39
srcpkgs/apache-ant/template
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Template file for 'apache-ant'
|
||||
pkgname="apache-ant"
|
||||
version="1.9.3"
|
||||
revision=1
|
||||
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"
|
||||
checksum="eb9306e8b8322bb09b78cc3d8e288398f9cb657d76ffc61ee3fb175e786e8365"
|
||||
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
|
||||
}
|
||||
|
||||
apache-ant-doc_package() {
|
||||
short_desc+=" - documentation"
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
noarch="yes"
|
||||
pkg_install() {
|
||||
vmove $_prefix/manual
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue