perl/perl-Config-IniFiles: Updated for version 2.71.

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Nishant Limbachia 2012-05-05 12:31:55 -04:00 committed by Erik Hanson
parent 9c65382fa5
commit 5e49ef58c6
4 changed files with 41 additions and 24 deletions

View File

@ -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)

View File

@ -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
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
DOCS="Changes README"
rm -rf $TMP/$SRCNAM-$VERSION $PKG
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
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 {} \;

View File

@ -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"

View File

@ -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: