diff options
Diffstat (limited to 'abs/core/perl_modules/perl-xml-sax')
-rw-r--r-- | abs/core/perl_modules/perl-xml-sax/PKGBUILD | 34 | ||||
-rw-r--r-- | abs/core/perl_modules/perl-xml-sax/perl-xml-sax.install | 4 | ||||
-rw-r--r-- | abs/core/perl_modules/perl-xml-sax/perl-xml-sax.patch | 9 |
3 files changed, 24 insertions, 23 deletions
diff --git a/abs/core/perl_modules/perl-xml-sax/PKGBUILD b/abs/core/perl_modules/perl-xml-sax/PKGBUILD index 2a59677..394b72f 100644 --- a/abs/core/perl_modules/perl-xml-sax/PKGBUILD +++ b/abs/core/perl_modules/perl-xml-sax/PKGBUILD @@ -1,33 +1,37 @@ -# $Id: PKGBUILD 67354 2010-02-06 14:10:53Z giovanni $ +# $Id: PKGBUILD 143956 2011-11-30 22:15:20Z giovanni $ # Maintainer: Giovanni Scafora <giovanni@archlinux.org> # Contributor: François Charette <firmicus ατ gmx δοτ net> pkgname=perl-xml-sax -pkgver=0.96 -pkgrel=2 -pkgdesc="Simple API for XML " -arch=('i686' 'x86_64') +pkgver=0.99 +pkgrel=3 +pkgdesc="Simple API for XML" +arch=('any') url="http://search.cpan.org/dist/XML-SAX" license=('GPL' 'PerlArtistic') -depends=('perl>=5.10.0' 'perl-xml-namespacesupport>=0.03') +depends=('perl' 'perl-xml-sax-base' 'perl-xml-namespacesupport') options=('!emptydirs') install=perl-xml-sax.install -source=("http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-$pkgver.tar.gz" 'perl-xml-sax.patch') -md5sums=('bdcd4119a62505184e211e9dfaef0ab1' - 'b8ad2da4195ac0eede28dfaed4d874c3') +source=("http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-$pkgver.tar.gz" + 'perl-xml-sax.patch') +md5sums=('290f5375ae87fdebfdb5bc3854019f24' + 'f114c4aad3221d3e7d8314d13b84a869') build() { - cd $srcdir - - patch -p0 < perl-xml-sax.patch || return 1 cd $srcdir/XML-SAX-$pkgver + patch -Np1 -i "${srcdir}/perl-xml-sax.patch" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 +check() { + cd $srcdir/XML-SAX-$pkgver + make test } + package() { cd $srcdir/XML-SAX-$pkgver - make install DESTDIR=$pkgdir || return 1 + make install DESTDIR=$pkgdir find $pkgdir -name '.packlist' -delete find $pkgdir -name '*.pod' -delete diff --git a/abs/core/perl_modules/perl-xml-sax/perl-xml-sax.install b/abs/core/perl_modules/perl-xml-sax/perl-xml-sax.install index 7b1e1f2..464fdfe 100644 --- a/abs/core/perl_modules/perl-xml-sax/perl-xml-sax.install +++ b/abs/core/perl_modules/perl-xml-sax/perl-xml-sax.install @@ -9,7 +9,3 @@ if [ ! -r /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini ]; then perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" &>/dev/null fi } - -op=$1 -shift -$op $* diff --git a/abs/core/perl_modules/perl-xml-sax/perl-xml-sax.patch b/abs/core/perl_modules/perl-xml-sax/perl-xml-sax.patch index b2db7d2..880468b 100644 --- a/abs/core/perl_modules/perl-xml-sax/perl-xml-sax.patch +++ b/abs/core/perl_modules/perl-xml-sax/perl-xml-sax.patch @@ -1,9 +1,10 @@ ---- XML-SAX-0.96/Makefile.PL.orig 2008-08-04 23:07:21.000000000 +0200 -+++ XML-SAX-0.96/Makefile.PL 2008-12-09 11:52:24.806540909 +0100 -@@ -12,42 +12,3 @@ +--- a/Makefile.PL 2011-09-04 23:37:48.000000000 +0200 ++++ b/Makefile.PL 2011-10-07 18:12:50.000000000 +0200 +@@ -12,43 +12,3 @@ + 'XML::NamespaceSupport' => 0.03, }, ); - +- -sub MY::install { - package MY; - my $script = shift->SUPER::install(@_); |