diff options
author | Michael Wagner <lapinours@web.de> | 2010-05-13 00:32:40 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:32:40 +0200 |
commit | 7133f1729df3af9a67fbfc41d7d03f6e0cd69dce (patch) | |
tree | 659a35f4ff3879bbc2e043a829c0bafc6b77574e /libraries | |
parent | 262c67fb2473b232995681bdfb99ffa1773187c3 (diff) |
libraries/perl-cairo: Updated for version 1.043
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/perl-cairo/README | 7 | ||||
-rw-r--r-- | libraries/perl-cairo/perl-cairo.SlackBuild | 27 | ||||
-rw-r--r-- | libraries/perl-cairo/perl-cairo.info | 2 |
3 files changed, 21 insertions, 15 deletions
diff --git a/libraries/perl-cairo/README b/libraries/perl-cairo/README index d627fcb17ce86..cf8e54a359c37 100644 --- a/libraries/perl-cairo/README +++ b/libraries/perl-cairo/README @@ -2,8 +2,5 @@ Cairo (perl module) Perl bindings to the cairo graphics library. -In order to build it from source, you'll also need - ExtUtils::PkgConfig >= 0.2 (perl-extutils-pkgconfig) - ExtUtils::Depends >= 1.0 (perl-extutils-depends) - Test::Number::Delta >= 1.0 (perl-test-number-delta) -All of these are also available from SlackBuilds.org. +This requires perl-extutils-pkgconfig, perl-extutils-depends, and +perl-test-number-delta. diff --git a/libraries/perl-cairo/perl-cairo.SlackBuild b/libraries/perl-cairo/perl-cairo.SlackBuild index ee77de109f9d5..3a247121f7b65 100644 --- a/libraries/perl-cairo/perl-cairo.SlackBuild +++ b/libraries/perl-cairo/perl-cairo.SlackBuild @@ -34,26 +34,31 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCS="ChangeLog LICENSE NEWS README TODO" - 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" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $SRCNAM-$VERSION -tar -xzvf $CWD/$SRCNAM-$VERSION.tar.gz || exit 1 -cd $SRCNAM-$VERSION || exit 1 +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -perl Makefile.PL || exit 1 -make OPTIMIZE="$SLKCFLAGS" || exit 1 -make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1 +perl Makefile.PL +make OPTIMIZE="$SLKCFLAGS" +make install INSTALLDIRS=vendor DESTDIR=$PKG find $PKG -name $SRCNAM.so -exec strip --strip-unneeded $PKG 2> /dev/null {} \; @@ -70,7 +75,9 @@ gzip -9 $PKG/usr/man/man3/* 2> /dev/null find $PKG -depth -type d -empty -exec rm -rf {} \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + 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/* @@ -78,4 +85,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/libraries/perl-cairo/perl-cairo.info b/libraries/perl-cairo/perl-cairo.info index 0e9765cd3586d..2d60295f2da7f 100644 --- a/libraries/perl-cairo/perl-cairo.info +++ b/libraries/perl-cairo/perl-cairo.info @@ -2,7 +2,9 @@ PRGNAM="perl-cairo" VERSION="1.043" HOMEPAGE="http://gtk2-perl.sourceforge.net" DOWNLOAD="http://downloads.sourceforge.net/gtk2-perl/Cairo-1.043.tar.gz" +DOWNLOAD_x86_64="" MD5SUM="7f79fe4776c725d698d52231f86fab6b" +MD5SUM_x86_64="" MAINTAINER="Michael Wagner" EMAIL="lapinours@web.de" APPROVED="rworkman" |