aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Delahunt <twinreverb@puresimplicity.net>2010-05-11 22:53:27 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:53:27 +0200
commit794acfdd99dd76673c403d277fb059be497cfb6a (patch)
tree0c04ca67f3edefcb5bebea617ec3bd2b275caea4
parent339e3ffaa630bc25538d4584d8eef387b07b1fdb (diff)
development/Scalar-List-Utils: Added to 12.1 repository
-rw-r--r--development/Scalar-List-Utils/README4
-rw-r--r--development/Scalar-List-Utils/Scalar-List-Utils.SlackBuild97
-rw-r--r--development/Scalar-List-Utils/Scalar-List-Utils.info8
-rw-r--r--development/Scalar-List-Utils/slack-desc19
4 files changed, 128 insertions, 0 deletions
diff --git a/development/Scalar-List-Utils/README b/development/Scalar-List-Utils/README
new file mode 100644
index 0000000000000..5ff085a56cf61
--- /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 0000000000000..aeefdeb9bcbd2
--- /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 <lukenshiro@ngi.it>
+# 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 0000000000000..9fb7104fec0c9
--- /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 0000000000000..2d1c9a3c519ce
--- /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: