From c0c524017f4b784a90a87526aa7e604810c3c213 Mon Sep 17 00:00:00 2001 From: Martin Lefebvre Date: Tue, 11 May 2010 14:05:52 +0200 Subject: development/mono: Initial import --- development/mono/README | 5 +++ development/mono/doinst.sh | 21 +++++++++ development/mono/mono.SlackBuild | 95 ++++++++++++++++++++++++++++++++++++++++ development/mono/mono.info | 8 ++++ development/mono/slack-desc | 9 ++++ 5 files changed, 138 insertions(+) create mode 100644 development/mono/README create mode 100644 development/mono/doinst.sh create mode 100644 development/mono/mono.SlackBuild create mode 100644 development/mono/mono.info create mode 100644 development/mono/slack-desc diff --git a/development/mono/README b/development/mono/README new file mode 100644 index 0000000000..11896f4f32 --- /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 0000000000..46717d884a --- /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 0000000000..26bd9e4132 --- /dev/null +++ b/development/mono/mono.SlackBuild @@ -0,0 +1,95 @@ +#!/bin/sh + +# Slackware build script for mono + +# Copyright 2006 Martin Lefebvre +# 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 0000000000..0207712f62 --- /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 0000000000..ee45ff1ed8 --- /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: -- cgit v1.2.3