From fc618b6e23d2ed653922f215b21d83abf2251d3b Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 7 Dec 2009 09:59:37 +0700 Subject: [PATCH] add d/parrot Signed-off-by: Gwenhael Le Moine --- d/parrot/parrot.SlackBuild | 65 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100755 d/parrot/parrot.SlackBuild diff --git a/d/parrot/parrot.SlackBuild b/d/parrot/parrot.SlackBuild new file mode 100755 index 00000000..38d66502 --- /dev/null +++ b/d/parrot/parrot.SlackBuild @@ -0,0 +1,65 @@ +#!/bin/sh + +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +BRANCH=trunk +VERSION=$BRANCH$(date +%F | tr -d -) +BUILD=1 +PACKAGER=cyco +ARCH=$(uname -m) + +REPOSITORIES=/home/cycojesus/projets/packages/repositories + +TMP=/tmp/$PACKAGER +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +PREFIX=/usr + +# cleaning +rm -fr $PKG + +# get sources +[ ! -e $REPOSITORIES ] && mkdir -p $REPOSITORIES +( cd $REPOSITORIES + if [ -e $REPOSITORIES/$PRGNAM ] ; then + ( cd $REPOSITORIES/$PRGNAM + svn update + ) + else + svn co https://svn.parrot.org/parrot/$BRANCH parrot + fi +) + +( cd $TMP + rm -fr $PRGNAM-$VERSION && cp -R $REPOSITORIES/$PRGNAM $PRGNAM-$VERSION + ( cd $PRGNAM-$VERSION + perl Configure.pl \ + --prefix=$PREFIX \ + --libdir=$PREFIX/lib$(echo $ARCH | grep -o 64) \ + --mandir=$PREFIX/man \ + --infodir=$PREFIX/info + make + make DESTDIR=$PKG install + ) +) + +( cd $PKG + mkdir -p install + cat < install/slack-desc +$PRGNAM: $PRGNAM (Virtual Machine) +$PRGNAM: +$PRGNAM: Parrot is a virtual machine designed to efficiently compile and execute +$PRGNAM: bytecode for dynamic languages. Parrot currently hosts a variety of +$PRGNAM: language implementations in various stages of completion, including Tcl, +$PRGNAM: Javascript, Ruby, Lua, Scheme, PHP, Python, Perl 6, APL, and a .NET +$PRGNAM: bytecode translator. Parrot is not about parrots, though we are rather +$PRGNAM: fond of them for obvious reasons. +$PRGNAM: +$PRGNAM: http://parrot.org/ +$PRGNAM: +EOF + + makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$PACKAGER.txz +)