summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2011-02-28 10:29:31 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-03-01 09:57:51 -0600
commit77e67c5e0fd0058f84e8cdd64b8eb527707ec6a8 (patch)
tree8238aa4626b36f52182b09766c2e85767b540b15
parent637eec8286d45743c072f80ff3a5014ee2876921 (diff)
downloadslackbuilds-77e67c5e0fd0058f84e8cdd64b8eb527707ec6a8.tar.gz
libraries/perl-Test-Exception: Updated for version 0.31.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--libraries/perl-Test-Exception/README2
-rw-r--r--libraries/perl-Test-Exception/perl-Test-Exception.SlackBuild40
-rw-r--r--libraries/perl-Test-Exception/perl-Test-Exception.info8
-rw-r--r--libraries/perl-Test-Exception/slack-desc4
4 files changed, 25 insertions, 29 deletions
diff --git a/libraries/perl-Test-Exception/README b/libraries/perl-Test-Exception/README
index 92aebd3419..86d591d3ed 100644
--- a/libraries/perl-Test-Exception/README
+++ b/libraries/perl-Test-Exception/README
@@ -1,3 +1,3 @@
perl-Test-Exception provides modules for testing exception based code.
-perl-Test-Exception is a recommended dependency for perl-Carp-Clan. \ No newline at end of file
+This requires perl-Sub-Uplevel.
diff --git a/libraries/perl-Test-Exception/perl-Test-Exception.SlackBuild b/libraries/perl-Test-Exception/perl-Test-Exception.SlackBuild
index 591b03d0da..ce9c3f63df 100644
--- a/libraries/perl-Test-Exception/perl-Test-Exception.SlackBuild
+++ b/libraries/perl-Test-Exception/perl-Test-Exception.SlackBuild
@@ -3,15 +3,16 @@
# Slackware Package Build Script for perl modules: Test::Exception
# Home Page http://search.cpan.org/dist/Test-Exception/
-# Copyright (c) 2008-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net)
+# Copyright (c) 2008-2011, Nishant Limbachia, Hoffman Estates, IL, USA
+# <nishant _AT_ mnspace _DOT_ net>
# 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 script must retain the above copyright notice,
# this list of conditions and the following disclaimer.
-
+#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -24,12 +25,13 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-SRCNAM=Test-Exception
PRGNAM=perl-Test-Exception
-VERSION=0.29
+VERSION=${VERSION:-0.31}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCNAM=Test-Exception
+
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -71,32 +73,26 @@ find . \
\( -perm 777 -o -perm 755 -o -perm 711 -o -perm 700 -o -perm 555 -o -perm 511 -o -perm 500 \) \
-exec chmod 755 {} \;
-CFLAGS="$SLKCFLAGS" perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor
+CFLAGS="$SLKCFLAGS" \
+perl Makefile.PL \
+ PREFIX=/usr \
+ INSTALLDIRS=vendor \
+ INSTALLVENDORMAN3DIR=/usr/man/man3
+
make
make install DESTDIR=$PKG
-### putting essential docs
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
-# move man pages
-mv $PKG/usr/share/man $PKG/usr
-
-# Remove perlocal.pod and .packlist from $PKG
-( cd $PKG
- find . -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
-# Remove empty directories
+# Remove perlocal.pod and .packlist from $PKG ; remove empty directories
+find $PKG -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f
find $PKG -depth -type d -empty -exec rm -rf {} \;
-# find and 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/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/libraries/perl-Test-Exception/perl-Test-Exception.info b/libraries/perl-Test-Exception/perl-Test-Exception.info
index 2b855ccf0d..d4c1e0195a 100644
--- a/libraries/perl-Test-Exception/perl-Test-Exception.info
+++ b/libraries/perl-Test-Exception/perl-Test-Exception.info
@@ -1,10 +1,10 @@
PRGNAM="perl-Test-Exception"
-VERSION="0.29"
+VERSION="0.31"
HOMEPAGE="http://search.cpan.org/dist/Test-Exception/"
-DOWNLOAD="http://search.cpan.org/CPAN/authors/id/A/AD/ADIE/Test-Exception-0.29.tar.gz"
-MD5SUM="9aea475db531d4fd4ce40cf25a0acd14"
+DOWNLOAD="http://search.cpan.org/CPAN/authors/id/A/AD/ADIE/Test-Exception-0.31.tar.gz"
+MD5SUM="adb57ca7614d15e5b307bf5e024b35a8"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Nishant Limbachia"
EMAIL="nishant@mnspace.net"
-APPROVED="Erik Hanson"
+APPROVED="rworkman"
diff --git a/libraries/perl-Test-Exception/slack-desc b/libraries/perl-Test-Exception/slack-desc
index fe6037f1bd..18180751ab 100644
--- a/libraries/perl-Test-Exception/slack-desc
+++ b/libraries/perl-Test-Exception/slack-desc
@@ -10,9 +10,9 @@ perl-Test-Exception:
perl-Test-Exception: perl-Test-Exception provides modules for testing exception
perl-Test-Exception: based code.
perl-Test-Exception:
-perl-Test-Exception:
perl-Test-Exception: Homepage: http://search.cpan.org/dist/Test-Exception/
perl-Test-Exception:
perl-Test-Exception:
perl-Test-Exception:
-perl-Test-Exception: \ No newline at end of file
+perl-Test-Exception:
+perl-Test-Exception: