diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-05-31 18:17:09 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-05-31 18:17:09 (GMT) |
commit | ce15d4831c6b527476220ab551fb3b3b933d8caf (patch) | |
tree | 7296d34c843e55632262fe445d31f698142bd335 /abs/core/perl_modules/perl-xml-sax | |
parent | c9848b0bfd0f4cd99a7f7bcba196f15268f9fa11 (diff) | |
download | linhes_pkgbuild-ce15d4831c6b527476220ab551fb3b3b933d8caf.zip linhes_pkgbuild-ce15d4831c6b527476220ab551fb3b3b933d8caf.tar.gz linhes_pkgbuild-ce15d4831c6b527476220ab551fb3b3b933d8caf.tar.bz2 |
perl-xml-sax: update to 1.00
Diffstat (limited to 'abs/core/perl_modules/perl-xml-sax')
-rw-r--r-- | abs/core/perl_modules/perl-xml-sax/PKGBUILD | 25 | ||||
-rw-r--r-- | abs/core/perl_modules/perl-xml-sax/perl-xml-sax.patch | 46 |
2 files changed, 11 insertions, 60 deletions
diff --git a/abs/core/perl_modules/perl-xml-sax/PKGBUILD b/abs/core/perl_modules/perl-xml-sax/PKGBUILD index 394b72f..39b6194 100644 --- a/abs/core/perl_modules/perl-xml-sax/PKGBUILD +++ b/abs/core/perl_modules/perl-xml-sax/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 143956 2011-11-30 22:15:20Z giovanni $ +# $Id$ # Maintainer: Giovanni Scafora <giovanni@archlinux.org> # Contributor: François Charette <firmicus ατ gmx δοτ net> pkgname=perl-xml-sax -pkgver=0.99 -pkgrel=3 +pkgver=1.00 +pkgrel=1 pkgdesc="Simple API for XML" arch=('any') url="http://search.cpan.org/dist/XML-SAX" @@ -12,27 +12,24 @@ license=('GPL' 'PerlArtistic') 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=('290f5375ae87fdebfdb5bc3854019f24' - 'f114c4aad3221d3e7d8314d13b84a869') +source=("http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-$pkgver.tar.gz") +sha512sums=('95553c9693d8a310747b4b86d4e80a58d4056b18cfc334f6979c98d0e9034a34253bfb17daecfc5bb28b1bd65e6baf52136f5135a969fadba86aa4148ea9bc1d') build() { - cd $srcdir/XML-SAX-$pkgver - patch -Np1 -i "${srcdir}/perl-xml-sax.patch" + cd XML-SAX-$pkgver PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } check() { - cd $srcdir/XML-SAX-$pkgver + cd XML-SAX-$pkgver make test } package() { - cd $srcdir/XML-SAX-$pkgver - make install DESTDIR=$pkgdir + cd XML-SAX-$pkgver + PERLLIB=blib/lib make install DESTDIR="$pkgdir" - find $pkgdir -name '.packlist' -delete - find $pkgdir -name '*.pod' -delete + find "$pkgdir" -name '.packlist' -delete + find "$pkgdir" -name '*.pod' -delete } 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 deleted file mode 100644 index 880468b..0000000 --- a/abs/core/perl_modules/perl-xml-sax/perl-xml-sax.patch +++ /dev/null @@ -1,46 +0,0 @@ ---- 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(@_); -- -- # Only modify existing ParserDetails.ini if user agrees -- -- my $write_ini_ok = 0; -- -- eval { require XML::SAX }; -- if ($@) { -- $write_ini_ok = 1; -- } -- else { -- my $dir = File::Basename::dirname($INC{'XML/SAX.pm'}); -- if (-e File::Spec->catfile($dir, 'SAX', 'ParserDetails.ini')) { -- $write_ini_ok = -- ExtUtils::MakeMaker::prompt( -- "Do you want XML::SAX to alter ParserDetails.ini?", "Y" -- ) =~ /^y/i; -- } -- else { -- $write_ini_ok = 1; -- } -- } -- -- if ($write_ini_ok) { -- $script =~ s/install :: (.*)$/install :: $1 install_sax_pureperl/m; -- $script .= <<"INSTALL"; -- --install_sax_pureperl : --\t\@\$(PERL) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" -- --INSTALL -- -- } -- -- return $script; --} -- |