From 794acfdd99dd76673c403d277fb059be497cfb6a Mon Sep 17 00:00:00 2001 From: Robert Delahunt Date: Tue, 11 May 2010 22:53:27 +0200 Subject: development/Scalar-List-Utils: Added to 12.1 repository --- development/Scalar-List-Utils/README | 4 + .../Scalar-List-Utils/Scalar-List-Utils.SlackBuild | 97 ++++++++++++++++++++++ .../Scalar-List-Utils/Scalar-List-Utils.info | 8 ++ development/Scalar-List-Utils/slack-desc | 19 +++++ 4 files changed, 128 insertions(+) create mode 100644 development/Scalar-List-Utils/README create mode 100644 development/Scalar-List-Utils/Scalar-List-Utils.SlackBuild create mode 100644 development/Scalar-List-Utils/Scalar-List-Utils.info create mode 100644 development/Scalar-List-Utils/slack-desc (limited to 'development') diff --git a/development/Scalar-List-Utils/README b/development/Scalar-List-Utils/README new file mode 100644 index 0000000000..5ff085a56c --- /dev/null +++ b/development/Scalar-List-Utils/README @@ -0,0 +1,4 @@ +This is Perl's Scalar List Utilities - it contains a selection of subroutines +that people have expressed would be nice to have in the perl core, but the +usage would not really be high enough to warrant the use of a keyword, and +the size so small such that being individual extensions would be wasteful. diff --git a/development/Scalar-List-Utils/Scalar-List-Utils.SlackBuild b/development/Scalar-List-Utils/Scalar-List-Utils.SlackBuild new file mode 100644 index 0000000000..aeefdeb9bc --- /dev/null +++ b/development/Scalar-List-Utils/Scalar-List-Utils.SlackBuild @@ -0,0 +1,97 @@ +#!/bin/sh + +# Slackware build script for perl-html-parser + +# Copyright 2008 LukenShiro +# 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. + +# This script modified by Robert Delahunt (aka TwinReverb) for use with +# Perl's Scalar-List-Utils. + +PRGNAM=Scalar-List-Utils +VERSION=${VERSION:-1.19} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +DOCFILES="Changes README" + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +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 {} \; + +echo "y" | CFLAGS="$SLKCFLAGS" 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, .packlist and .bs from $PKG +( for i in perllocal.pod .packlist *.bs; do + find $PKG -name "$i" -exec rm -rf {} \; + done +) +# Remove empty directories +find $PKG -depth -type d -empty -exec rm -rf {} \; + +( cd $PKG + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +( 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 $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/development/Scalar-List-Utils/Scalar-List-Utils.info b/development/Scalar-List-Utils/Scalar-List-Utils.info new file mode 100644 index 0000000000..9fb7104fec --- /dev/null +++ b/development/Scalar-List-Utils/Scalar-List-Utils.info @@ -0,0 +1,8 @@ +PRGNAM="Scalar-List-Utils" +VERSION="1.19" +HOMEPAGE="http://search.cpan.org/dist/Scalar-List-Utils/" +DOWNLOAD="http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/Scalar-List-Utils-1.19.tar.gz" +MD5SUM="2bd5ef8c7107422297bcbf2dc5371253" +MAINTAINER="Robert Delahunt" +EMAIL="twinreverb@puresimplicity.net" +APPROVED="rworkman" diff --git a/development/Scalar-List-Utils/slack-desc b/development/Scalar-List-Utils/slack-desc new file mode 100644 index 0000000000..2d1c9a3c51 --- /dev/null +++ b/development/Scalar-List-Utils/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-------------------------------------| +Scalar-List-Utils: Scalar-List-Utils (Scalar::Util perl module) +Scalar-List-Utils: +Scalar-List-Utils: "Scalar::Util contains a selection of subroutines that +Scalar-List-Utils: people have expressed would be nice to have in the +Scalar-List-Utils: perl core, but the usage would not really be high +Scalar-List-Utils: keyword, and the size so small such that being +Scalar-List-Utils: individual enough to warrant the use of a extensions +Scalar-List-Utils: would be wasteful. It depends on Perl5." +Scalar-List-Utils: +Scalar-List-Utils: +Scalar-List-Utils: -- cgit v1.2.3