[arch-commits] Commit in perl-xml-libxml/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Sat May 25 10:59:32 UTC 2019


    Date: Saturday, May 25, 2019 @ 10:59:31
  Author: foutrelis
Revision: 354225

archrelease: copy trunk to staging-x86_64

Added:
  perl-xml-libxml/repos/staging-x86_64/
  perl-xml-libxml/repos/staging-x86_64/PKGBUILD
    (from rev 354224, perl-xml-libxml/trunk/PKGBUILD)
  perl-xml-libxml/repos/staging-x86_64/perl-xml-libxml.install
    (from rev 354224, perl-xml-libxml/trunk/perl-xml-libxml.install)

-------------------------+
 PKGBUILD                |   36 ++++++++++++++++++++++++++++++++++++
 perl-xml-libxml.install |   23 +++++++++++++++++++++++
 2 files changed, 59 insertions(+)

Copied: perl-xml-libxml/repos/staging-x86_64/PKGBUILD (from rev 354224, perl-xml-libxml/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2019-05-25 10:59:31 UTC (rev 354225)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jonathan Steel <jsteel at aur.archlinux.org>
+# Contributor: Justin "juster" Davis <jrcd83 at gmail.com>
+# Contributor: François Charette <francois.archlinux.org>
+
+pkgname=perl-xml-libxml
+pkgver=2.0200
+pkgrel=2
+pkgdesc="Interface to the libxml library"
+arch=('x86_64')
+url="https://search.cpan.org/dist/XML-LibXML"
+license=('GPL')
+depends=('perl-alien-libxml2' 'perl-xml-sax' 'perl-xml-namespacesupport')
+checkdepends=('perl-test-pod' 'perl-test-leaktrace' 'perl-cpan-changes' 'perl-uri')
+provides=('perl-libxml' 'perl-xml-libxml-common')
+replaces=('perl-libxml' 'perl-xml-libxml-common')
+options=('!emptydirs')
+install=perl-xml-libxml.install
+source=(https://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-$pkgver.tar.gz)
+sha512sums=('ad04920e8740a21541d6396c90540e4cc327a72277680ff934fcef1c013ce15352202d9af2ac78b6c271703d927a437b8b965fc86dc4f8bb011a09ff338a42c3')
+
+build() {
+  cd XML-LibXML-$pkgver
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd XML-LibXML-$pkgver
+  make test
+}
+
+package() {
+  cd XML-LibXML-$pkgver
+  make pure_install doc_install DESTDIR="$pkgdir"/
+}

Copied: perl-xml-libxml/repos/staging-x86_64/perl-xml-libxml.install (from rev 354224, perl-xml-libxml/trunk/perl-xml-libxml.install)
===================================================================
--- staging-x86_64/perl-xml-libxml.install	                        (rev 0)
+++ staging-x86_64/perl-xml-libxml.install	2019-05-25 10:59:31 UTC (rev 354225)
@@ -0,0 +1,23 @@
+post_install() {
+  echo ":: Installing SAX XML Parsers"
+  perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX::Parser))->save_parsers()"
+  perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX))->save_parsers()"
+}
+
+post_upgrade() {
+  if [[ ! -f /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini ]]; then
+    post_install
+  else
+    libxmlcount=`grep -c XML::LibXML::SAX /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini`
+    if [[ $libxmlcount == 0 ]]; then
+      post_install
+    fi
+  fi
+}
+
+pre_remove() {
+  if [[ -f /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini ]]; then
+    perl -MXML::SAX -e "XML::SAX->remove_parser(q(XML::LibXML::SAX::Parser))->save_parsers()"
+    perl -MXML::SAX -e "XML::SAX->remove_parser(q(XML::LibXML::SAX))->save_parsers()"
+  fi
+}


More information about the arch-commits mailing list