summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Delahunt <twinreverb@puresimplicity.net>2010-05-11 22:53:55 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:53:55 +0200
commit674ae77f3edb40081d150f1d9c392670ed6dc969 (patch)
treef39a2034d67f9551c35c3e0b624c410a81f78501
parentf74f74e20143c4d348694bd95abf7880e1bd6550 (diff)
downloadslackbuilds-674ae77f3edb40081d150f1d9c392670ed6dc969.tar.gz
libraries/IO-Zlib: Added to 12.1 repository
-rw-r--r--libraries/IO-Zlib/IO-Zlib.SlackBuild99
-rw-r--r--libraries/IO-Zlib/IO-Zlib.info8
-rw-r--r--libraries/IO-Zlib/README7
-rw-r--r--libraries/IO-Zlib/slack-desc19
4 files changed, 133 insertions, 0 deletions
diff --git a/libraries/IO-Zlib/IO-Zlib.SlackBuild b/libraries/IO-Zlib/IO-Zlib.SlackBuild
new file mode 100644
index 0000000000..b9b154ddb6
--- /dev/null
+++ b/libraries/IO-Zlib/IO-Zlib.SlackBuild
@@ -0,0 +1,99 @@
+#!/bin/sh
+
+# Slackware build script for IO-Zlib
+
+# 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 was retooled to work as a build script for IO::Zlib
+# by Robert Delahunt <twinreverb@puresimplicity.net>
+
+PRGNAM=IO-Zlib
+VERSION=${VERSION:-1.09}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+DOCFILES="ChangeLog 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 # Exit on most errors
+
+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 {} \;
+
+# Strip libraries
+( cd $PKG
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+# Compress man pages
+( 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/libraries/IO-Zlib/IO-Zlib.info b/libraries/IO-Zlib/IO-Zlib.info
new file mode 100644
index 0000000000..51f62dd602
--- /dev/null
+++ b/libraries/IO-Zlib/IO-Zlib.info
@@ -0,0 +1,8 @@
+PRGNAM="IO-Zlib"
+VERSION="1.09"
+HOMEPAGE="http://search.cpan.org/dist/IO-Zlib/"
+DOWNLOAD="http://search.cpan.org/CPAN/authors/id/T/TO/TOMHUGHES/IO-Zlib-1.09.tar.gz"
+MD5SUM="0758cc9daaab62883ebefae8d74c4a5f"
+MAINTAINER="Robert Delahunt"
+EMAIL="twinreverb@puresimplicity.net"
+APPROVED="rworkman"
diff --git a/libraries/IO-Zlib/README b/libraries/IO-Zlib/README
new file mode 100644
index 0000000000..4d21350257
--- /dev/null
+++ b/libraries/IO-Zlib/README
@@ -0,0 +1,7 @@
+IO-Zlib - perl IO:: style interface to Compress::Zlib
+
+"IO::Zlib provides an IO:: style interface to Compress::Zlib and
+hence to gzip/zlib compressed files. It provides many of the
+same methods as the IO::Handle interface."
+
+Requires: Compress::Zlib
diff --git a/libraries/IO-Zlib/slack-desc b/libraries/IO-Zlib/slack-desc
new file mode 100644
index 0000000000..ca68109272
--- /dev/null
+++ b/libraries/IO-Zlib/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-------------------------------------------------|
+IO-Zlib: IO-Zlib (perl IO:: style interface to Compress::Zlib)
+IO-Zlib:
+IO-Zlib: Perl IO::Zlib "provides an IO:: style interface to Compress::Zlib
+IO-Zlib: and hence to gzip/zlib compressed files. It provides many of the
+IO-Zlib: same methods as the IO::Handle interface. Starting from IO::Zlib
+IO-Zlib: version 1.02, IO::Zlib can also use an external gzip command."
+IO-Zlib:
+IO-Zlib:
+IO-Zlib: Homepage: http://search.cpan.org/dist/IO-Zlib/
+IO-Zlib:
+IO-Zlib: