summaryrefslogtreecommitdiff
path: root/libraries/perl-gtk2
diff options
context:
space:
mode:
authorBinh Nguyen <binhnguyen@fastmail.fm>2010-09-21 06:03:25 -0400
committerRobby Workman <rworkman@slackbuilds.org>2010-09-21 22:09:44 -0500
commit49c1304c7a5b521e3aaf2b5b417ff8a231c37e31 (patch)
treef915449a1575920db9c881507c35cdbb1da87ab0 /libraries/perl-gtk2
parent963923d619c438a48fc86b3ab6e19ac4d83da386 (diff)
downloadslackbuilds-49c1304c7a5b521e3aaf2b5b417ff8a231c37e31.tar.gz
libraries/perl-gtk2: Updated for version 1.222.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/perl-gtk2')
-rw-r--r--libraries/perl-gtk2/README6
-rw-r--r--libraries/perl-gtk2/perl-gtk2.SlackBuild43
-rw-r--r--libraries/perl-gtk2/perl-gtk2.info14
-rw-r--r--libraries/perl-gtk2/slack-desc12
4 files changed, 39 insertions, 36 deletions
diff --git a/libraries/perl-gtk2/README b/libraries/perl-gtk2/README
index bb9c02e5ec..743e68d49a 100644
--- a/libraries/perl-gtk2/README
+++ b/libraries/perl-gtk2/README
@@ -1,3 +1,5 @@
-Perl bindings to the 2.x series of the Gtk+ graphical user interface library.
+Perl bindings to the 2.x series of the Gtk+ graphical user interface
+library.
-This requires perl-glib and perl-cairo.
+This requires perl-extutils-depends and perl-extutils-pkgconfig at
+build-time; perl-pango at run-time.
diff --git a/libraries/perl-gtk2/perl-gtk2.SlackBuild b/libraries/perl-gtk2/perl-gtk2.SlackBuild
index 4ab9cca0b8..b73cd751ed 100644
--- a/libraries/perl-gtk2/perl-gtk2.SlackBuild
+++ b/libraries/perl-gtk2/perl-gtk2.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for perl-gtk2
# (C) 2007 Michael Wagner <lapinours@web.de>
+# Copyright 2010 Binh Nguyen <binhnguyen@fastmail.fm>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,17 +24,16 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=perl-gtk2
-SRCNAM=Gtk2
-VERSION=1.161
+VERSION=${VERSION:-1.222}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
+SRCNAM=Gtk2
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -68,30 +68,31 @@ cd $SRCNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-perl Makefile.PL
-make OPTIMIZE="$SLKCFLAGS"
-make install INSTALLDIRS=vendor DESTDIR=$PKG
+perl Makefile.PL \
+ OPTIMIZE="$SLKCFLAGS" \
+ PREFIX=/usr \
+ INSTALLDIRS=vendor \
+ INSTALLVENDORMAN3DIR=/usr/man/man3
+make
+make test
+make install DESTDIR=$PKG
-find $PKG -name $SRCNAM.so -exec strip --strip-unneeded $PKG 2> /dev/null {} \;
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mv $PKG/usr/share/man $PKG/usr && rm -rf $PKG/usr/share
-gzip -9 $PKG/usr/man/man3/* 2> /dev/null
+find $PKG/usr/man -type f -exec gzip -9 {} \;
-# Remove perlocal.pod and .packlist from $PKG
-( for i in perllocal.pod .packlist; do
- find $PKG -name "$i" -exec rm -rf {} \;
- done
-) || exit 1
+# Remove perllocal.pod and other special files that don't need to be installed,
+# as they will overwrite what's already on the system
+find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
-# Remove empty directory
-find $PKG -depth -type d -empty -exec rm -rf {} \;
+# Remove empty directories
+find $PKG -depth -type d -empty -delete || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS ChangeLog LICENSE NEWS README TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS ChangeLog* LICENSE MAINTAINERS NEWS README TODO copyright* examples/ \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/*
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/libraries/perl-gtk2/perl-gtk2.info b/libraries/perl-gtk2/perl-gtk2.info
index 54f6f1aea8..9b9c082e16 100644
--- a/libraries/perl-gtk2/perl-gtk2.info
+++ b/libraries/perl-gtk2/perl-gtk2.info
@@ -1,10 +1,10 @@
PRGNAM="perl-gtk2"
-VERSION="1.161"
-HOMEPAGE="http://gtk2-perl.sourceforge.net"
-DOWNLOAD="http://downloads.sourceforge.net/gtk2-perl/Gtk2-1.161.tar.gz"
-MD5SUM="4c45fc7e4905e7a72b46d3fb39c2420b"
+VERSION="1.222"
+HOMEPAGE="http://gtk2-perl.sourceforge.net/"
+DOWNLOAD="http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/Gtk2-1.222.tar.gz"
+MD5SUM="8f8a170b33dc2cf4e69769e97c05185a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-MAINTAINER="Michael Wagner"
-EMAIL="lapinours@web.de"
-APPROVED="rworkman"
+MAINTAINER="Binh Nguyen"
+EMAIL="binhnguyen@fastmail.fm"
+APPROVED="dsomero"
diff --git a/libraries/perl-gtk2/slack-desc b/libraries/perl-gtk2/slack-desc
index d629219f21..acbf733264 100644
--- a/libraries/perl-gtk2/slack-desc
+++ b/libraries/perl-gtk2/slack-desc
@@ -1,15 +1,15 @@
# HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description. Line
+# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
-# on the right side marks the last column you can put a character in. You must
-# make exactly 11 lines for the formatting to be correct. It's also
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
- |-----handy-ruler--------------------------------------------------|
+ |-----handy-ruler------------------------------------------------------|
perl-gtk2: Gtk2 (perl module)
perl-gtk2:
-perl-gtk2: Perl bindings to the 2.x series of the Gtk+ graphical user
-perl-gtk2: interface library.
+perl-gtk2: Perl bindings to the 2.x series of the Gtk+ graphical user interface
+perl-gtk2: library.
perl-gtk2:
perl-gtk2: Homepage: http://gtk2-perl.sourceforge.net/
perl-gtk2: