diff options
4 files changed, 120 insertions, 0 deletions
diff --git a/development/perl-extutils-parsexs/README b/development/perl-extutils-parsexs/README new file mode 100644 index 0000000000..9a3cfc5c8c --- /dev/null +++ b/development/perl-extutils-parsexs/README @@ -0,0 +1,8 @@ +ExtUtils::ParseXS will compile XS code into C code by embedding +the constructs necessary to let C functions manipulate Perl +values and creates the glue necessary to let Perl access those +functions. The compiler uses typemaps to determine how to map +C function parameters and variables to Perl values. + +perl-extutils-parsexs requires perl-extutils-cbuilder, which is +also available at SlackBuilds.org.
\ No newline at end of file diff --git a/development/perl-extutils-parsexs/perl-extutils-parsexs.SlackBuild b/development/perl-extutils-parsexs/perl-extutils-parsexs.SlackBuild new file mode 100644 index 0000000000..cb875d5e29 --- /dev/null +++ b/development/perl-extutils-parsexs/perl-extutils-parsexs.SlackBuild @@ -0,0 +1,85 @@ +#!/bin/sh + +# Slackware build script for perl-extutils-parsexs + +# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at> +# 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. + +PRGNAM=ExtUtils-ParseXS +VERSION=2.19 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +PKGNAM=perl-$(echo $PRGNAM | tr [:upper:] [:lower:]) + +set -e + +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 . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +perl Makefile.PL INSTALLDIRS=vendor + +make + +make install DESTDIR=$PKG + +#Move man-pages to appropriate place +mv $PKG/usr/share/man $PKG/usr/ + +# Remove perlocal.pod and .packlist from $PKG +( for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; + done +) + +# Remove empty directories +find $PKG -depth -type d -empty -exec rm -rf {} \; + +( 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/$PKGNAM-$VERSION +cp -a Changes INSTALL README \ + $PKG/usr/doc/$PKGNAM-$VERSION +cat $CWD/$PKGNAM.SlackBuild > $PKG/usr/doc/$PKGNAM-$VERSION/$PKGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/development/perl-extutils-parsexs/perl-extutils-parsexs.info b/development/perl-extutils-parsexs/perl-extutils-parsexs.info new file mode 100644 index 0000000000..28c757e423 --- /dev/null +++ b/development/perl-extutils-parsexs/perl-extutils-parsexs.info @@ -0,0 +1,8 @@ +PRGNAM="perl-extutils-parsexs" +VERSION="2.19" +HOMEPAGE="http://search.cpan.org/dist/ExtUtils-ParseXS/" +DOWNLOAD="http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/ExtUtils-ParseXS-2.19.tar.gz" +MD5SUM="f236a751551e5288b4061352e3424b7a" +MAINTAINER="ppr:kut" +EMAIL="pprkut@liwjatan.at" +APPROVED="David Somero"
\ No newline at end of file diff --git a/development/perl-extutils-parsexs/slack-desc b/development/perl-extutils-parsexs/slack-desc new file mode 100644 index 0000000000..70ad2e2893 --- /dev/null +++ b/development/perl-extutils-parsexs/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler----------------------------------------| +perl-extutils-parsexs: perl-extutils-parsexs (XS Code to C Compiler for Perl) +perl-extutils-parsexs: +perl-extutils-parsexs: ExtUtils::ParseXS will compile XS code into C code by +perl-extutils-parsexs: embedding the constructs necessary to let C functions +perl-extutils-parsexs: manipulate Perl values and creates the glue necessary +perl-extutils-parsexs: to let Perl access those functions. The compiler uses +perl-extutils-parsexs: typemaps to determine how to map C function parameters +perl-extutils-parsexs: and variables to Perl values. +perl-extutils-parsexs: +perl-extutils-parsexs: Homepage: http://search.cpan.org/dist/ExtUtils-ParseXS/ +perl-extutils-parsexs: |