development/mono: Initial import

This commit is contained in:
Martin Lefebvre 2010-05-11 14:05:52 +02:00 committed by Robby Workman
parent b89ae35eed
commit c0c524017f
5 changed files with 138 additions and 0 deletions

5
development/mono/README Normal file
View file

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

View file

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

View file

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

View file

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

View file

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