aboutsummaryrefslogtreecommitdiff
path: root/development/nant
diff options
context:
space:
mode:
authorasaf <asaf.tvn@gmail.com>2010-07-07 03:29:38 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-07-08 00:13:26 -0500
commit2d45c332b1a280442d11105d2ba3a2f97a2db303 (patch)
tree323c4ae5c65dd6b578b183329a47ab8d5e8d8a57 /development/nant
parent919be1ed227a366f7a332e1a48e824b5697cb7a3 (diff)
development/nant: Added (a .NET build tool)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development/nant')
-rw-r--r--development/nant/README4
-rw-r--r--development/nant/fixup-nant_pc.diff9
-rw-r--r--development/nant/fixup-x86_64-pkgconfig_dir.diff12
-rw-r--r--development/nant/nant.SlackBuild56
-rw-r--r--development/nant/nant.info10
-rw-r--r--development/nant/slack-desc19
6 files changed, 110 insertions, 0 deletions
diff --git a/development/nant/README b/development/nant/README
new file mode 100644
index 000000000000..323d042e4e70
--- /dev/null
+++ b/development/nant/README
@@ -0,0 +1,4 @@
+NAnt is a free .NET build tool. In theory, it is kind of like make,
+but without make's wrinkles. In practice, it's a lot like Ant.
+
+This requires mono.
diff --git a/development/nant/fixup-nant_pc.diff b/development/nant/fixup-nant_pc.diff
new file mode 100644
index 000000000000..80003efe6086
--- /dev/null
+++ b/development/nant/fixup-nant_pc.diff
@@ -0,0 +1,9 @@
+diff -Nur nant-0.90.orig//etc/nant.pc.in nant-0.90/etc/nant.pc.in
+--- nant-0.90.orig//etc/nant.pc.in 2008-11-03 07:56:55.000000000 -0600
++++ nant-0.90/etc/nant.pc.in 2010-07-07 03:23:29.811833713 -0500
+@@ -1,4 +1,4 @@
+-prefix=${pcfiledir}/../..
++prefix=/usr
+ extensiondir=${prefix}/share/NAnt/bin/extensions
+ libdir=${prefix}/share/NAnt/bin/lib
+
diff --git a/development/nant/fixup-x86_64-pkgconfig_dir.diff b/development/nant/fixup-x86_64-pkgconfig_dir.diff
new file mode 100644
index 000000000000..d3fd8edc96b0
--- /dev/null
+++ b/development/nant/fixup-x86_64-pkgconfig_dir.diff
@@ -0,0 +1,12 @@
+diff -Nur nant-0.90.orig//NAnt.build nant-0.90//NAnt.build
+--- nant-0.90.orig//NAnt.build 2010-05-08 16:12:26.000000000 -0500
++++ nant-0.90//NAnt.build 2010-07-07 03:25:12.707823923 -0500
+@@ -868,7 +868,7 @@
+ <property name="install.destdir" value="${destdir}" />
+ </if>
+ <property name="install.bindir" value="${install.destdir + path::combine(install.prefix, 'bin')}" />
+- <property name="install.pkgconfigdir" value="${install.destdir + path::combine(install.prefix, 'lib/pkgconfig')}" />
++ <property name="install.pkgconfigdir" value="${install.destdir + path::combine(install.prefix, 'lib64/pkgconfig')}" />
+ <property name="install.copylocation" value="${install.destdir + install.nant}" />
+
+ <!-- perform (staged) install -->
diff --git a/development/nant/nant.SlackBuild b/development/nant/nant.SlackBuild
new file mode 100644
index 000000000000..ad82acdb6c70
--- /dev/null
+++ b/development/nant/nant.SlackBuild
@@ -0,0 +1,56 @@
+#!/bin/sh
+
+# Slackware build script for nant
+
+# Written by (Asaf) (asaf@lingnu.com)
+
+PRGNAM=nant
+VERSION=${VERSION:-0.90}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+# Fix prefix declaration in pkgconfig file
+patch -p1 < $CWD/fixup-nant_pc.diff
+
+# Fix pkgconfig directory on x86_64
+[ "$ARCH" = "x86_64" ] && patch -p1 < $CWD/fixup-x86_64-pkgconfig_dir.diff
+
+make
+make install DESTDIR=$PKG prefix=/usr
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/development/nant/nant.info b/development/nant/nant.info
new file mode 100644
index 000000000000..1d847a8b35fb
--- /dev/null
+++ b/development/nant/nant.info
@@ -0,0 +1,10 @@
+PRGNAM="nant"
+VERSION="0.90"
+HOMEPAGE="http://nant.sourceforge.net/"
+DOWNLOAD="http://downloads.sourceforge.net/nant/nant-0.90-src.tar.gz"
+MD5SUM="1ba849249c6ff00062ac9ea90f729b20"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="asaf"
+EMAIL="asaf.tvn@gmail.com"
+APPROVED="rworkman"
diff --git a/development/nant/slack-desc b/development/nant/slack-desc
new file mode 100644
index 000000000000..160bc427d00a
--- /dev/null
+++ b/development/nant/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+nant: nant (a .NET build tool)
+nant:
+nant: NAnt is a free .NET build tool. In theory, it is kind of like make,
+nant: but without make's wrinkles. In practice, it's a lot like Ant.
+nant:
+nant: Homepage: http://nant.sourceforge.net/
+nant:
+nant:
+nant:
+nant:
+nant: