aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-xml-sax
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2015-09-28 18:19:41 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2015-09-28 18:19:41 +0200
commitfa90b5c5fd5815d785ed551828464a3734422aa9 (patch)
treea90376fc12f6625b450a300c385c652ad956e130 /testing/perl-xml-sax
parent2e72615635d4baf7384aa25670e660d725a07782 (diff)
downloadaports-fa90b5c5fd5815d785ed551828464a3734422aa9.tar.bz2
aports-fa90b5c5fd5815d785ed551828464a3734422aa9.tar.xz
testing/perl-xml-sax: register the SAX parser into the registry
Diffstat (limited to 'testing/perl-xml-sax')
-rw-r--r--testing/perl-xml-sax/APKBUILD9
-rw-r--r--testing/perl-xml-sax/perl-xml-sax.post-install5
l---------testing/perl-xml-sax/perl-xml-sax.post-upgrade1
-rw-r--r--testing/perl-xml-sax/perl-xml-sax.pre-deinstall5
4 files changed, 16 insertions, 4 deletions
diff --git a/testing/perl-xml-sax/APKBUILD b/testing/perl-xml-sax/APKBUILD
index 3b1e6f7d92..154836939f 100644
--- a/testing/perl-xml-sax/APKBUILD
+++ b/testing/perl-xml-sax/APKBUILD
@@ -1,16 +1,17 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=perl-xml-sax
pkgver=0.99
-pkgrel=1
+pkgrel=2
pkgdesc="Simple API for XML"
url="http://search.cpan.org/dist/XML-SAX"
arch="noarch"
license="GPL"
depends="perl-xml-sax-base perl-xml-namespacesupport"
-depends_dev="perl-dev"
-makedepends="$depends_dev"
-install=""
+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"
diff --git a/testing/perl-xml-sax/perl-xml-sax.post-install b/testing/perl-xml-sax/perl-xml-sax.post-install
new file mode 100644
index 0000000000..cada1f32b9
--- /dev/null
+++ b/testing/perl-xml-sax/perl-xml-sax.post-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Registers the SAX parser into the registry.
+
+LC_ALL=C perl -MXML::SAX -e \
+ "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" 2>&1 >/dev/null
diff --git a/testing/perl-xml-sax/perl-xml-sax.post-upgrade b/testing/perl-xml-sax/perl-xml-sax.post-upgrade
new file mode 120000
index 0000000000..0715a58204
--- /dev/null
+++ b/testing/perl-xml-sax/perl-xml-sax.post-upgrade
@@ -0,0 +1 @@
+perl-xml-sax.post-install \ No newline at end of file
diff --git a/testing/perl-xml-sax/perl-xml-sax.pre-deinstall b/testing/perl-xml-sax/perl-xml-sax.pre-deinstall
new file mode 100644
index 0000000000..fb56f1a2b9
--- /dev/null
+++ b/testing/perl-xml-sax/perl-xml-sax.pre-deinstall
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Unregisters the SAX parser from the registry.
+
+LC_ALL=C perl -MXML::SAX -e \
+ "XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()" 2>&1 >/dev/null