aboutsummaryrefslogtreecommitdiff
path: root/perl/perl-GD/perl-GD.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-GD/perl-GD.SlackBuild')
-rw-r--r--perl/perl-GD/perl-GD.SlackBuild47
1 files changed, 11 insertions, 36 deletions
diff --git a/perl/perl-GD/perl-GD.SlackBuild b/perl/perl-GD/perl-GD.SlackBuild
index a27cbe63aa61..d5b04848d7f6 100644
--- a/perl/perl-GD/perl-GD.SlackBuild
+++ b/perl/perl-GD/perl-GD.SlackBuild
@@ -7,7 +7,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=perl-GD
-VERSION=${VERSION:-2.56}
+VERSION=${VERSION:-2.67}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -55,44 +55,19 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# the "perl Makefile.PL" method fails to build the shared library,
-# probably it's obsolete and the author forgot to remove Makefile.PL
-# from the tarball.
-
-# you might notice this in the build log:
+# You might notice this in the build log:
# ** WARNING: found gd.h header file in /usr/X11R6/include/gd.h
-# this isn't a real issue, since on Slackware /usr/X11R6/include
+# This isn't a real issue, since on Slackware /usr/X11R6/include
# is just a symlink to /usr/include.
-# one of the tests in t/GD.t fails because it's using freetype to render
-# text into images, then comparing pixel-for-pixel to reference images. it
-# fails because the results are not pixel-exact, probably due to the
-# author using a different version of freetype to generate the reference
-# images... or even just different compiler flags used for building
-# freetype... or even something as dumb as using a different CPU whose
-# floating point returns slightly different results from the author's.
-# if you modify the test code so it writes its result to a PNG file and
-# then eyeball that next to the reference one (t/test_data/t07/7-00.png),
-# you'll be hard-pressed to see the difference... but it's there.
-
-# this patch disables just this one test:
-patch -p1 < $CWD/no_ttf_test.diff
-
-perl Build.PL
-./Build
-./Build test
-./Build install \
- --prefix /usr \
- --installdirs vendor \
- --destdir $PKG \
- --install_path bindoc=/usr/man/man1 \
- --install_path libdoc=/usr/man/man3
-
-# this stuff gets erroneously installed to /usr/bin:
-rm -f $PKG/usr/bin/README $PKG/usr/bin/*.PLS
-
-# and this doesn't belong in the package either:
-rm -f $PKG/usr/man/man?/*.PLS.*
+perl Makefile.PL \
+ PREFIX=/usr \
+ INSTALLDIRS=vendor \
+ INSTALLVENDORMAN3DIR=/usr/man/man3 \
+ INSTALLVENDORMAN1DIR=/usr/man/man1
+make
+make test
+make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true