From 085dc5bc74e6494695d982fb8437bba423316f00 Mon Sep 17 00:00:00 2001 From: Tobias Hammerschmidt Date: Fri, 11 Apr 2008 21:32:00 +0000 Subject: [PATCH] added ant-contrib, expression works but is really really ugly - maybe someone else can have a look at it? svn path=/nixpkgs/trunk/; revision=11588 --- .../build-managers/apache-ant/builder.sh | 44 ++++++++++++++++--- .../build-managers/apache-ant/default.nix | 17 ++++--- 2 files changed, 50 insertions(+), 11 deletions(-) diff --git a/pkgs/development/tools/build-managers/apache-ant/builder.sh b/pkgs/development/tools/build-managers/apache-ant/builder.sh index 42d5e67d154b..068925b4755a 100644 --- a/pkgs/development/tools/build-managers/apache-ant/builder.sh +++ b/pkgs/development/tools/build-managers/apache-ant/builder.sh @@ -1,21 +1,53 @@ source $stdenv/setup -mkdir -p $out/bin +tar jxf $src || exit 1 +mkdir -p $out + +mv apache-ant-*/* $out || exit 1 + +# add ant-contrib +cp $antContrib/*.jar $out/lib + +# remove crap in the root directory + +for file in $out/* +do + if test -f $file ; then + rm $file + fi +done +rm -rf $out/docs + +# prevent the use of hacky scripts. This will be handled in Nix. +rm $out/bin/* || exit 1 + +# add ant script. This script is to be invoked with all +# appropiate variables and will try to be clever or user-friendly. cat >> $out/bin/ant <