aboutsummaryrefslogtreecommitdiff
path: root/development/mono
diff options
context:
space:
mode:
Diffstat (limited to 'development/mono')
-rw-r--r--development/mono/README5
-rw-r--r--development/mono/doinst.sh21
-rw-r--r--development/mono/mono.SlackBuild95
-rw-r--r--development/mono/mono.info8
-rw-r--r--development/mono/slack-desc9
5 files changed, 138 insertions, 0 deletions
diff --git a/development/mono/README b/development/mono/README
new file mode 100644
index 0000000000000..11896f4f322e3
--- /dev/null
+++ b/development/mono/README
@@ -0,0 +1,5 @@
+Mono is a Open Source implementation of the .NET Framework: it
+is made up of a runtime engine that implements the ECMA Common
+Language Infrastructure (CLI), a set of compilers that target
+the CLI, and a large collection of class libraries.
+
diff --git a/development/mono/doinst.sh b/development/mono/doinst.sh
new file mode 100644
index 0000000000000..46717d884aa73
--- /dev/null
+++ b/development/mono/doinst.sh
@@ -0,0 +1,21 @@
+
+config() {
+ NEW="$1"
+ OLD="`dirname $NEW`/`basename $NEW .new`"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/mono/1.0/machine.config.new
+config etc/mono/1.0/DefaultWsdlHelpGenerator.aspx.new
+config etc/mono/2.0/machine.config.new
+config etc/mono/2.0/web.config.new
+config etc/mono/2.0/DefaultWsdlHelpGenerator.aspx.new
+config etc/mono/config.new
+config etc/mono/browscap.ini.new
diff --git a/development/mono/mono.SlackBuild b/development/mono/mono.SlackBuild
new file mode 100644
index 0000000000000..26bd9e4132e9a
--- /dev/null
+++ b/development/mono/mono.SlackBuild
@@ -0,0 +1,95 @@
+#!/bin/sh
+
+# Slackware build script for mono
+
+# Copyright 2006 Martin Lefebvre <dadexter@gmail.com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Modified by the SlackBuilds.org project
+
+set -e
+
+PRGNAM=mono
+VERSION=1.2.2.1
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-2}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --enable-shared=yes \
+ --enable-static=no
+
+make
+make install-strip DESTDIR=$PKG
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING.LIB ChangeLog LICENSE NEWS README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cd docs
+ for file in assembly-bundle jit-thoughts mini-porting.txt \
+ unmanaged-calls embedded-api jit-trampolines object-layout \
+ exceptions local-regalloc.txt opcode-decomp.txt aot-compiler.txt \
+ gc-issues mini-doc.txt stack-alignment; do
+ cat $file > $PKG/usr/doc/$PRGNAM-$VERSION/$file
+ done
+cd -
+mv $PKG/usr/share/libgc-mono $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+# Let's not clobber existing config files
+( cd $PKG/etc ; find . -type f -exec mv {} {}.new \; )
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/development/mono/mono.info b/development/mono/mono.info
new file mode 100644
index 0000000000000..0207712f62595
--- /dev/null
+++ b/development/mono/mono.info
@@ -0,0 +1,8 @@
+PRGNAM="mono"
+VERSION="1.2.2.1"
+HOMEPAGE="http://www.mono-project.com"
+DOWNLOAD="http://go-mono.com/sources/mono/mono-1.2.2.1.tar.gz"
+MD5SUM="b67ef657b83ca26249d7b9e9c5e7da69"
+MAINTAINER="Martin Lefebvre"
+EMAIL="dadexter@gmail.com"
+APPROVED="robw810"
diff --git a/development/mono/slack-desc b/development/mono/slack-desc
new file mode 100644
index 0000000000000..ee45ff1ed8a84
--- /dev/null
+++ b/development/mono/slack-desc
@@ -0,0 +1,9 @@
+mono: Mono
+mono:
+mono: Mono is a Open Source implementation of the .NET Framework: it
+mono: is made up of a runtime engine that implements the ECMA Common
+mono: Language Infrastructure (CLI), a set of compilers that target
+mono: the CLI, and a large collection of class libraries.
+mono:
+mono:
+mono: