Browse Source

d/treecc: Added treecc-0.3.10.

d/pnet:  Added pnet-0.8.0.
d/pnetlib:  Added pnetlib-0.8.0.
slackware-14.2
Damien Goutte-Gattat 13 years ago
parent
commit
e84ac7d654
  1. 1
      d/pnet/pnet-0.8.0.tar.gz.sha1
  2. 138
      d/pnet/pnet.SlackBuild
  3. 12
      d/pnet/slack-desc
  4. 1
      d/pnetlib/pnetlib-0.8.0.tar.gz.sha1
  5. 114
      d/pnetlib/pnetlib.SlackBuild
  6. 12
      d/pnetlib/slack-desc
  7. 12
      d/treecc/slack-desc
  8. 1
      d/treecc/treecc-0.3.10.tar.gz.sha1
  9. 134
      d/treecc/treecc.SlackBuild

1
d/pnet/pnet-0.8.0.tar.gz.sha1

@ -0,0 +1 @@
3d048cbef0476f21cbdd86f81c1706f52b7a7218 pnet-0.8.0.tar.gz

138
d/pnet/pnet.SlackBuild

@ -0,0 +1,138 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# 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.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest pnet sourcecode is available at:
# <http://www.gnu.org/software/dotgnu/>.
#
# Depends: l/gc,d/treecc
# Source package infos
NAMESRC=${NAMESRC:-pnet}
VERSION=${VERSION:-0.8.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://mirrors.linhub.com/savannah/dotgnu-pnet/$ARCHIVE}
# Build infos
NAMETGZ=${NAMETGZ:-pnet}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-i486}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exist or is not a directory!"
exit 1
fi
# Compilation flags
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
;;
*)
CPUOPT="-O2"
;;
esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Extract
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
# Fix the python script generating the documentation
sed -i '/^import regex_syntax/ d
s/, regex_syntax.RE_SYNTAX_GREP//' doc/cvmdoc.py
# Compile
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--mandir=/usr/man \
--infodir=/usr/info
make
make install DESTDIR=$PKG
# Delete all gc-related files
rm -rf $PKG/usr/lib/libgc* $PKG/usr/share $PKG/usr/include/{gc*,lead_detector}
# Strip binaries
find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Compress man and info pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
find $PKG/usr/info -type f -exec gzip -9 {} \;
for manpage in $(find $PKG/usr/man -type l); do
ln -s $(readlink $manpage).gz $manpage.gz
rm -f $manpage
done
rm $PKG/usr/info/dir.gz
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME/html
install -m 644 AUTHORS COPYING ChangeLog NEWS README $PKG/usr/doc/$NAME
install -m 644 doc/cvmdoc/*.html $PKG/usr/doc/$NAME/html
# Copy slack-desc file
mkdir -p $PKG/install
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
rm -rf $PKG
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

12
d/pnet/slack-desc

@ -0,0 +1,12 @@
|-----handy-ruler------------------------------------------------------|
pnet: pnet (DotGNU Portable .NET tools)
pnet:
pnet: The goal of the Portable .NET project is to build a suite of Free
pnet: Software tools to build and execute portable executable (.NET, Java,
pnet: Parrot) applications, including compilers, an assembler, a
pnet: dissasembler, and runtime engine capable of executing multiple
pnet: stack-based bytecode formats.
pnet:
pnet:
pnet:
pnet:

1
d/pnetlib/pnetlib-0.8.0.tar.gz.sha1

@ -0,0 +1 @@
294c04a9d2e88f878382397f405ad21fb3939d23 pnetlib-0.8.0.tar.gz

114
d/pnetlib/pnetlib.SlackBuild

@ -0,0 +1,114 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# 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.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest pnetlib sourcecode is available at:
# <http://www.gnu.org/software/dotgnu/>.
#
# Depends: d/pnet
# Source package infos
NAMESRC=${NAMESRC:-pnetlib}
VERSION=${VERSION:-0.8.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://mirrors.linhub.com/savannah/dotgnu-pnet/$ARCHIVE}
# Build infos
NAMETGZ=${NAMETGZ:-pnetlib}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-i486}
JOBS=${JOBS:-1}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exist or is not a directory!"
exit 1
fi
# Compilation flags
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
;;
*)
CPUOPT="-O2"
;;
esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr
make -j $JOBS
make install DESTDIR=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 AUTHORS COPYING ChangeLog HACKING NEWS README doc/* \
$PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
rm -rf $PKG
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

12
d/pnetlib/slack-desc

@ -0,0 +1,12 @@
|-----handy-ruler------------------------------------------------------|
pnetlib: pnetlib (CLR base class library for DotGNU Portable .NET)
pnetlib:
pnetlib: This is DotGNU's imlementation of the CLR (".NET") standard base
pnetlib: class library. It is designed to be used with programs targeted at
pnetlib: the CLR and locally executed in the pnet-interpreter.
pnetlib:
pnetlib:
pnetlib:
pnetlib:
pnetlib:
pnetlib:

12
d/treecc/slack-desc

@ -0,0 +1,12 @@
|-----handy-ruler------------------------------------------------------|
treecc: treecc (tree compiler-compiler)
treecc:
treecc: The treecc program is designed to assist in the development of
treecc: compilers and other language-based tools. It manages the generation
treecc: of code to handle abstract syntax trees and operations upon the
treecc: trees.
treecc:
treecc:
treecc:
treecc:
treecc:

1
d/treecc/treecc-0.3.10.tar.gz.sha1

@ -0,0 +1 @@
f905cb535559b0e2d04fa86da14de240f5b1e44f treecc-0.3.10.tar.gz

134
d/treecc/treecc.SlackBuild

@ -0,0 +1,134 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# 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.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest treecc sourcecode is available at:
# <http://www.gnu.org/software/dotgnu/>.
# Source package infos
NAMESRC=${NAMESRC:-treecc}
VERSION=${VERSION:-0.3.10}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://mirrors.linhub.com/savannah/dotgnu-pnet/$ARCHIVE}
# Build infos
NAMETGZ=${NAMETGZ:-treecc}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-i486}
JOBS=${JOBS:-1}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exist or is not a directory!"
exit 1
fi
# Compilation flags
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
;;
*)
CPUOPT="-O2"
;;
esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--mandir=/usr/man \
--infodir=/usr/info
make -j $JOBS
make install DESTDIR=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Compress man and info pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
find $PKG/usr/info -type f -exec gzip -9 {} \;
for manpage in $(find $PKG/usr/man -type l); do
ln -s $(readlink $manpage).gz $manpage.gz
rm -f $manpage
done
rm -f $PKG/usr/info/dir.gz
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME/html
install -m 644 \
AUTHORS COPYING ChangeLog NEWS README doc/extending.txt doc/essay.html \
$PKG/usr/doc/$NAME
(
cd doc
mkdoc output
install -m 644 output/treecc.pdf $PKG/usr/doc/$NAME
install -m 644 output/*.html $PKG/usr/doc/$NAME/html
)
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
rm -rf $PKG
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi
Loading…
Cancel
Save