diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-01-11 21:01:03 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-01-11 21:01:03 +0000 |
commit | 4b5db770f22714a3d481f3ab091e28d140e5d053 (patch) | |
tree | f816f7ac8e144b5433bb85917c70361def951e33 | |
parent | a51b72fc79b1507e2e05b091791e0b0c3e866595 (diff) | |
download | packages-4b5db770f22714a3d481f3ab091e28d140e5d053.tar.gz packages-4b5db770f22714a3d481f3ab091e28d140e5d053.tar.bz2 packages-4b5db770f22714a3d481f3ab091e28d140e5d053.tar.xz packages-4b5db770f22714a3d481f3ab091e28d140e5d053.zip |
user/perl-xml-sax: new package
-rw-r--r-- | user/perl-xml-sax/APKBUILD | 37 | ||||
-rw-r--r-- | user/perl-xml-sax/install-fix.patch | 11 | ||||
-rw-r--r-- | user/perl-xml-sax/perl-xml-sax.post-install | 5 | ||||
-rw-r--r-- | user/perl-xml-sax/perl-xml-sax.pre-deinstall | 5 |
4 files changed, 58 insertions, 0 deletions
diff --git a/user/perl-xml-sax/APKBUILD b/user/perl-xml-sax/APKBUILD new file mode 100644 index 000000000..5f6559057 --- /dev/null +++ b/user/perl-xml-sax/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-xml-sax +pkgver=1.00 +pkgrel=0 +pkgdesc="Perl SAX parser" +url="https://metacpan.org/release/XML-SAX" +arch="noarch" +license="Artistic-1.0-Perl OR GPL-1.0+" +depends="perl-xml-namespacesupport perl-xml-sax-base" +makedepends="perl-dev" +install="$pkgname.post-install $pkgname.pre-deinstall" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/G/GR/GRANTM/XML-SAX-$pkgver.tar.gz + install-fix.patch + " +builddir="$srcdir/XML-SAX-$pkgver" + +build() { + 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 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="95553c9693d8a310747b4b86d4e80a58d4056b18cfc334f6979c98d0e9034a34253bfb17daecfc5bb28b1bd65e6baf52136f5135a969fadba86aa4148ea9bc1d XML-SAX-1.00.tar.gz +a2177f0aa00bb31c41298f0c622f800ac0dddb1d30bc1bf86e035cfd8327fa8078baf46587ffd4a782c22fba0783709f2459c81b95a8ef86e1fd4e4058e3a166 install-fix.patch" diff --git a/user/perl-xml-sax/install-fix.patch b/user/perl-xml-sax/install-fix.patch new file mode 100644 index 000000000..c28d48b3a --- /dev/null +++ b/user/perl-xml-sax/install-fix.patch @@ -0,0 +1,11 @@ +--- XML-SAX-1.00/Makefile.PL.old 2018-02-15 09:44:15.000000000 +0000 ++++ XML-SAX-1.00/Makefile.PL 2019-01-11 20:58:06.250000000 +0000 +@@ -23,7 +23,7 @@ + + eval { require XML::SAX }; + if ($@) { +- $write_ini_ok = 1; ++ $write_ini_ok = 0; + } + else { + my $dir = File::Basename::dirname($INC{'XML/SAX.pm'}); diff --git a/user/perl-xml-sax/perl-xml-sax.post-install b/user/perl-xml-sax/perl-xml-sax.post-install new file mode 100644 index 000000000..b07b8dae7 --- /dev/null +++ b/user/perl-xml-sax/perl-xml-sax.post-install @@ -0,0 +1,5 @@ +#!/bin/sh +# Add the parser to the registry. + +LC_ALL=C perl -MXML::SAX -e \ + "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" diff --git a/user/perl-xml-sax/perl-xml-sax.pre-deinstall b/user/perl-xml-sax/perl-xml-sax.pre-deinstall new file mode 100644 index 000000000..cdfeaccfa --- /dev/null +++ b/user/perl-xml-sax/perl-xml-sax.pre-deinstall @@ -0,0 +1,5 @@ +#!/bin/sh +# Remove the parser from the registry. + +LC_ALL=C perl -MXML::SAX -e \ + "XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()" |