summaryrefslogtreecommitdiffstats
path: root/source/d/perl
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2016-06-30 20:26:57 +0000
committer Eric Hameleers <alien@slackware.com>2018-05-31 23:31:18 +0200
commitd31c50870d0bee042ce660e445c9294a59a3a65b (patch)
tree6bfc0de3c95267b401b620c2c67859557dc60f97 /source/d/perl
parent76fc4757ac91ac7947a01fb7b53dddf9a78a01d1 (diff)
downloadcurrent-d31c50870d0bee042ce660e445c9294a59a3a65b.tar.gz
current-d31c50870d0bee042ce660e445c9294a59a3a65b.tar.xz
Slackware 14.2slackware-14.2
Thu Jun 30 20:26:57 UTC 2016 Slackware 14.2 x86_64 stable is released! The long development cycle (the Linux community has lately been living in "interesting times", as they say) is finally behind us, and we're proud to announce the release of Slackware 14.2. The new release brings many updates and modern tools, has switched from udev to eudev (no systemd), and adds well over a hundred new packages to the system. Thanks to the team, the upstream developers, the dedicated Slackware community, and everyone else who pitched in to help make this release a reality. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. Have fun! :-)
Diffstat (limited to 'source/d/perl')
-rwxr-xr-xsource/d/perl/perl.SlackBuild71
1 files changed, 41 insertions, 30 deletions
diff --git a/source/d/perl/perl.SlackBuild b/source/d/perl/perl.SlackBuild
index 7485d33f8..1210b6dc9 100755
--- a/source/d/perl/perl.SlackBuild
+++ b/source/d/perl/perl.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2009, 2010, 2011, 2012, 2013 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2009, 2010, 2011, 2012, 2013, 2015, 2016 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,13 +24,13 @@
# originally by: David Cantrell <david@slackware.com>
# maintained by: <volkerdi@slackware.com>
-VERSION=5.18.1
+VERSION=5.22.2
BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
+ i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;;
@@ -44,18 +44,19 @@ TMP=${TMP:-/tmp}
PKG=$TMP/package-perl
# Additional required modules:
-DBDMYSQL=4.023
-DBI=1.628
-URI=1.60
-XMLPARSER=2.41
-XMLSIMPLE=2.20
-GETTEXT=1.05
-
-if [ "$ARCH" = "i386" ]; then
- SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
+DBDMYSQL=4.033
+DBI=1.636
+URI=1.71
+XMLPARSER=2.44
+XMLSIMPLE=2.22
+GETTEXT=1.07
+TERMREADKEY=2.33
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
@@ -68,9 +69,12 @@ fi
if [ -x /usr/bin/perl ]; then
echo "Perl detected."
echo
- echo "It's a good idea to remove your existing perl first."
+ echo "The perl package needs to be removed before building to ensure that"
+ echo "the perl modules are included in the new package."
echo
+ echo "Removing the perl package in 15 seconds, and then continuing with the build."
sleep 15
+ removepkg perl
fi
# Clear build location:
@@ -144,8 +148,6 @@ fi
# Kludge for gcc-4.2.4's needlessly changed output:
cat makefile | grep -v '\<command-line\>' > foo
mv foo makefile
-cat x2p/makefile | grep -v '\<command-line\>' > foo
-mv foo x2p/makefile
# Build perl
make $NUMJOBS || exit 1
@@ -156,7 +158,6 @@ make install
( cd /usr/bin
ln -sf perl$VERSION perl
ln -sf c2ph pstruct
- ln -sf s2p psed
)
#mkdir -p /usr/lib${LIBDIRSUFFIX}/perl5/vendor_perl/${VERSION}/${ARCH}-linux-thread-multi
@@ -175,8 +176,8 @@ make install DESTDIR=$PKG
make install
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/perl-$VERSION/DBI-${DBI}
- cp -a README $PKG/usr/doc/perl-$VERSION/DBI-${DBI}
- chmod 644 $PKG/usr/doc/perl-$VERSION/DBI-${DBI}/README
+ cp -a README* $PKG/usr/doc/perl-$VERSION/DBI-${DBI}
+ chmod 644 $PKG/usr/doc/perl-$VERSION/DBI-${DBI}/README*
)
( tar xzvf $CWD/DBD-mysql-${DBDMYSQL}.tar.gz
cd DBD-mysql-${DBDMYSQL}
@@ -187,7 +188,7 @@ make install DESTDIR=$PKG
make install
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/perl-$VERSION/DBD-mysql-${DBDMYSQL}
- cp -a INSTALL.html README TODO $PKG/usr/doc/perl-$VERSION/DBD-mysql-${DBDMYSQL}
+ cp -a INSTALL.html README* TODO $PKG/usr/doc/perl-$VERSION/DBD-mysql-${DBDMYSQL}
chmod 644 $PKG/usr/doc/perl-$VERSION/DBD-mysql-${DBDMYSQL}/*
)
( tar xzvf $CWD/XML-Parser-${XMLPARSER}.tar.gz
@@ -199,7 +200,7 @@ make install DESTDIR=$PKG
make install
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/perl-$VERSION/XML-Parser-${XMLPARSER}
- cp -a README $PKG/usr/doc/perl-$VERSION/XML-Parser-${XMLPARSER}
+ cp -a README* $PKG/usr/doc/perl-$VERSION/XML-Parser-${XMLPARSER}
chmod 644 $PKG/usr/doc/perl-$VERSION/XML-Parser-${XMLPARSER}/*
)
( tar xzvf $CWD/XML-Simple-${XMLSIMPLE}.tar.gz
@@ -211,7 +212,7 @@ make install DESTDIR=$PKG
make install
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/perl-$VERSION/XML-Simple${XMLSIMPLE}
- cp -a README $PKG/usr/doc/perl-$VERSION/XML-Simple${XMLSIMPLE}
+ cp -a README* $PKG/usr/doc/perl-$VERSION/XML-Simple${XMLSIMPLE}
chmod 644 $PKG/usr/doc/perl-$VERSION/XML-Simple${XMLSIMPLE}/*
)
( tar xzvf $CWD/URI-${URI}.tar.gz
@@ -223,11 +224,11 @@ make install DESTDIR=$PKG
make install
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/perl-$VERSION/URI-${URI}
- cp -a README $PKG/usr/doc/perl-$VERSION/URI-${URI}
+ cp -a README* $PKG/usr/doc/perl-$VERSION/URI-${URI}
chmod 644 $PKG/usr/doc/perl-$VERSION/URI-${URI}/*
)
( tar xzvf $CWD/gettext-${GETTEXT}.tar.gz
- cd gettext-${GETTEXT}
+ cd Locale-gettext-${GETTEXT}
chown -R root:root .
perl Makefile.PL INSTALLDIRS=vendor
make
@@ -235,9 +236,21 @@ make install DESTDIR=$PKG
make install
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/perl-$VERSION/gettext-${GETTEXT}
- cp -a README $PKG/usr/doc/perl-$VERSION/gettext-${GETTEXT}
+ cp -a README* $PKG/usr/doc/perl-$VERSION/gettext-${GETTEXT}
chmod 644 $PKG/usr/doc/perl-$VERSION/gettext-${GETTEXT}/*
)
+ ( tar xzvf $CWD/TermReadKey-${TERMREADKEY}.tar.gz
+ cd TermReadKey-${TERMREADKEY}
+ chown -R root:root .
+ perl Makefile.PL INSTALLDIRS=vendor
+ make
+ make test
+ make install
+ make install DESTDIR=$PKG
+ mkdir -p $PKG/usr/doc/perl-$VERSION/TermReadKey-${TERMREADKEY}
+ cp -a README* $PKG/usr/doc/perl-$VERSION/TermReadKey-${TERMREADKEY}
+ chmod 644 $PKG/usr/doc/perl-$VERSION/TermReadKey-${TERMREADKEY}/*
+ )
)
# Strip everything:
@@ -255,8 +268,7 @@ make install DESTDIR=$PKG
# Symlinks that replace hard links
( cd $PKG/usr/bin
ln -sf perl$VERSION perl
- ln -sf c2ph pstruct
- ln -sf s2p psed )
+ ln -sf c2ph pstruct )
# Install documentation
mkdir -p $PKG/usr/doc/perl-$VERSION
@@ -276,8 +288,7 @@ cp -a \
mv foo/* .
rmdir foo
gzip -9 *
- ln -sf c2ph.1.gz pstruct.1.gz
- ln -sf s2p.1.gz psed.1.gz )
+ ln -sf c2ph.1.gz pstruct.1.gz )
( cd $PKG/usr/man/man3
gzip -9 * )