development/nant: Added (a .NET build tool)

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
asaf 2010-07-07 03:29:38 -05:00 committed by Robby Workman
parent 919be1ed22
commit 2d45c332b1
6 changed files with 110 additions and 0 deletions

4
development/nant/README Normal file
View file

@ -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.

View file

@ -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

View file

@ -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 -->

View file

@ -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}

View file

@ -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"

View file

@ -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: