aboutsummaryrefslogtreecommitdiff
path: root/perl/perl-Config-IniFiles
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2012-05-05 12:31:55 -0400
committerErik Hanson <erik@slackbuilds.org>2012-05-07 12:18:10 -0500
commit5e49ef58c67405c10ccbfc6416b3448d494c6f41 (patch)
tree72b88a5ea49563457c6ecb0cb04eea366a5c1183 /perl/perl-Config-IniFiles
parent9c65382fa520757f8fdc19fc4c2408463a589b4f (diff)
perl/perl-Config-IniFiles: Updated for version 2.71.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'perl/perl-Config-IniFiles')
-rw-r--r--perl/perl-Config-IniFiles/README8
-rw-r--r--perl/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild35
-rw-r--r--perl/perl-Config-IniFiles/perl-Config-IniFiles.info8
-rw-r--r--perl/perl-Config-IniFiles/slack-desc2
4 files changed, 35 insertions, 18 deletions
diff --git a/perl/perl-Config-IniFiles/README b/perl/perl-Config-IniFiles/README
index 3aa7d08e3c8e0..8dbd054a7f0c8 100644
--- a/perl/perl-Config-IniFiles/README
+++ b/perl/perl-Config-IniFiles/README
@@ -1,3 +1,7 @@
-perl-Config-IniFiles perl module for reading .ini-style configuration files.
+perl-Config-IniFiles perl module for reading .ini-style
+configuration files.
-perl-Config-IniFiles package is required for policyd v2 (cluebringer).
+perl-Config-IniFiles package is required for policyd v2
+(cluebringer).
+
+Requires: perl-List-MoreUtils (available at SBo) \ No newline at end of file
diff --git a/perl/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild b/perl/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild
index 9b2f7afba07b1..fe82d2892d7ed 100644
--- a/perl/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild
+++ b/perl/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild
@@ -3,7 +3,8 @@
# Slackware Package Build Script for perl modules: Config::IniFiles
# Home Page http://search.cpan.org/dist/Config-IniFiles/
-# Copyright (c) 2008-2011, Nishant Limbachia, Hoffman Estates, IL, USA <nishant _AT_ mnspace _DOT_ net>
+# Copyright (c) 2008-2012, 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
@@ -23,13 +24,16 @@
# 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.
+#
+# Modified by the SlackBuilds.org project.
-SRCNAM=Config-IniFiles
-PRGNAM=perl-$SRCNAM
-VERSION=${VERSION:-2.68}
+PRGNAM=perl-Config-IniFiles
+VERSION=${VERSION:-2.71}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCNAM=$(echo $PRGNAM | cut -f2- -d-)
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -45,20 +49,26 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
+DOCS="Changes README"
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
-DOCS="Changes README"
-
-rm -rf $TMP/$SRCNAM-$VERSION $PKG
+rm -fr $TMP/$SRCNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xzvf $CWD/$SRCNAM-$VERSION.tar.gz
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $TMP/$SRCNAM-$VERSION
chown -R root.root .
find . \
@@ -69,6 +79,7 @@ find . \
CFLAGS="$SLKCFLAGS" \
perl Makefile.PL INSTALLDIRS=vendor INSTALLVENDORMAN3DIR=/usr/man/man3
+
make
make install DESTDIR=$PKG
@@ -77,11 +88,13 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-find $PKG -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# find and compress man pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
# Remove empty directories
find $PKG -depth -type d -empty -exec rm -rf {} \;
diff --git a/perl/perl-Config-IniFiles/perl-Config-IniFiles.info b/perl/perl-Config-IniFiles/perl-Config-IniFiles.info
index 421cccad897f6..fce2bd9523147 100644
--- a/perl/perl-Config-IniFiles/perl-Config-IniFiles.info
+++ b/perl/perl-Config-IniFiles/perl-Config-IniFiles.info
@@ -1,10 +1,10 @@
PRGNAM="perl-Config-IniFiles"
-VERSION="2.68"
+VERSION="2.71"
HOMEPAGE="http://search.cpan.org/dist/Config-IniFiles/"
-DOWNLOAD="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/Config-IniFiles-2.68.tar.gz"
-MD5SUM="c860f04b2d7d3cb0cc462ed896112c62"
+DOWNLOAD="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/Config-IniFiles-2.71.tar.gz"
+MD5SUM="b23a0b8cb1374cd070cd6ec62efda812"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Nishant Limbachia"
EMAIL="nishant@mnspace.net"
-APPROVED="Erik Hanson"
+APPROVED="dsomero"
diff --git a/perl/perl-Config-IniFiles/slack-desc b/perl/perl-Config-IniFiles/slack-desc
index 7ee53eb9001f6..934a64427657d 100644
--- a/perl/perl-Config-IniFiles/slack-desc
+++ b/perl/perl-Config-IniFiles/slack-desc
@@ -9,7 +9,7 @@
perl-Config-IniFiles: perl-Config-IniFiles (Config::IniFiles)
perl-Config-IniFiles:
perl-Config-IniFiles:
-perl-Config-IniFiles: perl-Config-IniFiles perl module to read .ini-style
+perl-Config-IniFiles: perl-Config-IniFiles perl module to read .ini-style
perl-Config-IniFiles: configuration files.
perl-Config-IniFiles:
perl-Config-IniFiles: