summaryrefslogtreecommitdiffstats
path: root/base/ant/Pkgfile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-09-03 10:25:03 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-09-03 10:25:03 +0200
commit17fca84aaceb8a808e4c56f0e70749015632b202 (patch)
treeb7e2d6473e96e07eba15f126530531614c8b94a8 /base/ant/Pkgfile
parent17f072004001d2eaf06055bbfed3b2fbc67f7658 (diff)
downloadnutyx-pakxe-17fca84aaceb8a808e4c56f0e70749015632b202.tar.gz
nutyx-pakxe-17fca84aaceb8a808e4c56f0e70749015632b202.tar.bz2
nutyx-pakxe-17fca84aaceb8a808e4c56f0e70749015632b202.tar.xz
nutyx-pakxe-17fca84aaceb8a808e4c56f0e70749015632b202.zip
Ajout de ant#1.7.1-1, remplace apache-ant
Diffstat (limited to 'base/ant/Pkgfile')
-rw-r--r--base/ant/Pkgfile29
1 files changed, 18 insertions, 11 deletions
diff --git a/base/ant/Pkgfile b/base/ant/Pkgfile
index b504caf4a..9728cc13b 100644
--- a/base/ant/Pkgfile
+++ b/base/ant/Pkgfile
@@ -2,22 +2,29 @@
# URL: http://ant.apache.org/
# Maintainer: NutyX core team
# Packager: thierryn1 at hispeed dot ch
-# Depends on: jdk
+# Depends on: jdk, junit
name=ant
version=1.7.1
-release=2
-source=(http://archive.apache.org/dist/ant/binaries/apache-ant-$version-bin.tar.bz2)
+release=1
+source=(http://apache.org/dist/ant/source/apache-ant-$version-src.tar.bz2\
+ apache-ant.sh)
build() {
+ export CLASSPATH=$CLASSPATH:/usr/share/junit-4.5/junit-4.5.jar:/usr/share/junit-4.5
cd apache-ant-$version
- mkdir -p $PKG/etc/profile.d
- install -d $PKG/usr/{bin,lib/ant}
- cp -rf * $PKG/usr/lib/ant
- ln -sf /usr/lib/ant/bin/ant $PKG/usr/bin/ant
- rm -r $PKG/usr/lib/ant/bin/*.bat
- rm -r $PKG/usr/lib/ant/docs
- rm -r $PKG/usr/lib/ant/{KEYS,LICENS*,README,NOTICE,WHATSNEW,INSTALL}
- rm -r $PKG/usr/lib/ant/lib/README
+ sed -i 's|/etc/ant.conf|/etc/ant/ant.conf|' src/script/ant
+ mkdir dist
+ ./build.sh -Ddist.dir=dist/ dist
+ mkdir $PKG/opt
+ mkdir -p $PKG/etc/{profile.d,ant}
+ touch $PKG/etc/ant/ant.conf
+ export ANT_HOME=$PKG/opt/ant-$version
+# export JAVA_HOME=/opt/jdk
+ ./build.sh install-lite
+ install -m644 ../apache-ant.sh $PKG/etc/profile.d/
+ ln -svf ant-$version $PKG/opt/$name
+ ln -v -sf /etc/$name $PKG/opt/$name-$version/etc
}
+