Added Apache Ant, including configuration of JAVA_HOME and ANT_HOME. Currently only the shell script is patched, but this one is used most in practice.

svn path=/nixpkgs/trunk/; revision=718
This commit is contained in:
Martin Bravenboer 2004-01-25 00:50:00 +00:00
parent d427c4271d
commit d9cebb072f
3 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,21 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
mkdir -p $out
mv apache-ant-1.6.0/* $out || exit 1
rm -rf $out/docs
rm $out/*
confpath=$out/etc/nixpaths.conf || exit 1
sed "s^.etc.ant.conf^$confpath^g" $out/bin/ant > $out/bin/ant_temp || exit 1
mv $out/bin/ant_temp $out/bin/ant || exit 1
chmod u+xrw $out/bin/ant || exit 1
chmod u+x $out/bin/* || exit 1
echo "
JAVA_HOME=$j2sdk
ANT_HOME=$out
" > $confpath || exit 1

View file

@ -0,0 +1,10 @@
{stdenv, fetchurl, j2sdk}: derivation {
name = "apache-ant-1.6.0";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://dist.apache.easynet.nl/ant/binaries/apache-ant-1.6.0-bin.tar.bz2;
md5 = "01989c306da53862c101d9ea4ebb1f00";
};
stdenv = stdenv;
}

View file

@ -240,6 +240,12 @@
stdenv = stdenv;
};
apacheant = (import ../development/tools/build-managers/apache-ant) {
fetchurl = fetchurl;
stdenv = stdenv;
j2sdk = j2sdk;
};
pcre = (import ../development/libraries/pcre) {
fetchurl = fetchurl;
stdenv = stdenv;