summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorBinh Nguyen <binhnguyen@fastmail.fm>2010-09-21 06:02:44 -0400
committerRobby Workman <rworkman@slackbuilds.org>2010-09-21 22:09:44 -0500
commit963923d619c438a48fc86b3ab6e19ac4d83da386 (patch)
tree0363d6892abe23117f165b11b9b9e8588186e7f7 /libraries
parentaa309510302ce21b224f420f36c46c0fb0f4e442 (diff)
downloadslackbuilds-963923d619c438a48fc86b3ab6e19ac4d83da386.tar.gz
libraries/perl-glib: Updated for version 1.223.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/perl-glib/README3
-rw-r--r--libraries/perl-glib/perl-glib.SlackBuild43
-rw-r--r--libraries/perl-glib/perl-glib.info14
-rw-r--r--libraries/perl-glib/slack-desc12
4 files changed, 37 insertions, 35 deletions
diff --git a/libraries/perl-glib/README b/libraries/perl-glib/README
index 75063f73bd..9e9655b2e7 100644
--- a/libraries/perl-glib/README
+++ b/libraries/perl-glib/README
@@ -2,4 +2,5 @@ Glib (perl module)
This module provides perl access to Glib and GLib's GObject libraries.
-This requires perl-extutils-depends and perl-extutils-pkgconfig.
+This requires perl-extutils-depends and perl-extutils-pkgconfig at
+build-time.
diff --git a/libraries/perl-glib/perl-glib.SlackBuild b/libraries/perl-glib/perl-glib.SlackBuild
index 884f8f4e3c..fa3ffad915 100644
--- a/libraries/perl-glib/perl-glib.SlackBuild
+++ b/libraries/perl-glib/perl-glib.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for perl-glib
# (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-glib
-SRCNAM=Glib
-VERSION=1.161
+VERSION=${VERSION:-1.223}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
+SRCNAM=Glib
+
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 NEWS README TODO \
+ $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-glib/perl-glib.info b/libraries/perl-glib/perl-glib.info
index 5dacb3376b..4295d1b88c 100644
--- a/libraries/perl-glib/perl-glib.info
+++ b/libraries/perl-glib/perl-glib.info
@@ -1,10 +1,10 @@
PRGNAM="perl-glib"
-VERSION="1.161"
-HOMEPAGE="http://gtk2-perl.sourceforge.net"
-DOWNLOAD="http://downloads.sourceforge.net/gtk2-perl/Glib-1.161.tar.gz"
-MD5SUM="275735cf9aebf4f9fbd9270fe0bee154"
+VERSION="1.223"
+HOMEPAGE="http://search.cpan.org/dist/Glib/"
+DOWNLOAD="http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/Glib-1.223.tar.gz"
+MD5SUM="cfdeaa8c95448f86c30b505e4701abf1"
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-glib/slack-desc b/libraries/perl-glib/slack-desc
index 59cc417587..1e4189fd10 100644
--- a/libraries/perl-glib/slack-desc
+++ b/libraries/perl-glib/slack-desc
@@ -1,17 +1,17 @@
# 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------------------------------------------------------|
perl-glib: Glib (perl module)
perl-glib:
-perl-glib: This module provides perl access to Glib and GLib's
-perl-glib: GObject libraries.
+perl-glib: This module provides perl access to Glib and GLib's GObject libraries.
+perl-glib:
+perl-glib: Homepage: http://search.cpan.org/dist/Glib/
perl-glib:
-perl-glib: Homepage: http://gtk2-perl.sourceforge.net/
perl-glib:
perl-glib:
perl-glib: