aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-02 07:17:16 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-09-06 12:19:41 +0000
commit417741cb483ce0f96200713725019340df50e8a4 (patch)
treeb2af551dc05ec3ca03e14be2d1581ad5ff3e6a38
parent72048e01f0eef23b1300eb4c7d8eb2afb601f156 (diff)
downloadaports-417741cb483ce0f96200713725019340df50e8a4.tar.gz
aports-417741cb483ce0f96200713725019340df50e8a4.tar.bz2
aports-417741cb483ce0f96200713725019340df50e8a4.tar.xz
main/perl-xml-sax: upgrade to 1.02
-rw-r--r--main/perl-xml-sax/APKBUILD45
-rw-r--r--main/perl-xml-sax/perl-xml-sax.patch46
2 files changed, 17 insertions, 74 deletions
diff --git a/main/perl-xml-sax/APKBUILD b/main/perl-xml-sax/APKBUILD
index 154836939f..3763e6590f 100644
--- a/main/perl-xml-sax/APKBUILD
+++ b/main/perl-xml-sax/APKBUILD
@@ -2,46 +2,35 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=perl-xml-sax
-pkgver=0.99
-pkgrel=2
+pkgver=1.02
+pkgrel=0
pkgdesc="Simple API for XML"
-url="http://search.cpan.org/dist/XML-SAX"
+url="https://metacpan.org/release/XML-SAX"
arch="noarch"
-license="GPL"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl-xml-sax-base perl-xml-namespacesupport"
-depends_dev=""
makedepends="perl-dev"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
subpackages="$pkgname-doc"
-source="http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-$pkgver.tar.gz
- perl-xml-sax.patch"
+source="https://cpan.metacpan.org/authors/id/G/GR/GRANTM/XML-SAX-$pkgver.tar.gz"
-_builddir="$srcdir"/XML-SAX-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir"/XML-SAX-$pkgver
build() {
- cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ PERLLIB=blib/lib make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="290f5375ae87fdebfdb5bc3854019f24 XML-SAX-0.99.tar.gz
-f114c4aad3221d3e7d8314d13b84a869 perl-xml-sax.patch"
-sha256sums="32b04b8e36b6cc4cfc486de2d859d87af5386dd930f2383c49347050d6f5ad84 XML-SAX-0.99.tar.gz
-cf5452ccd81b7eb9cd50315a25747099628a6c0442ea3a6c3849edc3e7e4af18 perl-xml-sax.patch"
-sha512sums="f0c55efee4e3010deb474377394f9635bd8adc50108b562aeef54a2eef312cf87fb240d0495b5a5bd0c4cd5251db1bc74ba6cb549614708b1627f330959735e1 XML-SAX-0.99.tar.gz
-aca374f7a523ca8db57651789d83950bf77fce5e230fe5f2ba84880fe0602943d381ef08f9519d6fcf584d1b5ae8e33478ae536bbfbdb26202f31a0676f417a1 perl-xml-sax.patch"
+sha512sums="bb30ddbbcf27803825d2f0936257e102999a197cb14bd77fa8b7a469f3a24fb7d861ef4eb03230e5581e4ed88beb8676cbb907b2cb63e9ef1a64b2c211ebdc5a XML-SAX-1.02.tar.gz"
diff --git a/main/perl-xml-sax/perl-xml-sax.patch b/main/perl-xml-sax/perl-xml-sax.patch
deleted file mode 100644
index 880468b8db..0000000000
--- a/main/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;
--}
--