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

Felix Yan fyan at archlinux.org
Wed May 11 04:40:06 UTC 2016


    Date: Wednesday, May 11, 2016 @ 06:40:06
  Author: fyan
Revision: 267740

archrelease: copy trunk to staging-i686, staging-x86_64

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

----------------------------------------+
 staging-i686/PKGBUILD                  |   44 +++++++++++++++++++++++++++++++
 staging-i686/perl-xml-libxml.install   |   23 ++++++++++++++++
 staging-x86_64/PKGBUILD                |   44 +++++++++++++++++++++++++++++++
 staging-x86_64/perl-xml-libxml.install |   23 ++++++++++++++++
 4 files changed, 134 insertions(+)

Copied: perl-xml-libxml/repos/staging-i686/PKGBUILD (from rev 267739, perl-xml-libxml/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2016-05-11 04:40:06 UTC (rev 267740)
@@ -0,0 +1,44 @@
+# $Id$
+# 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.0124
+pkgrel=3
+pkgdesc="Interface to the libxml library"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/dist/XML-LibXML"
+license=('GPL')
+depends=('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=(http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-$pkgver.tar.gz)
+md5sums=('30436b85454fba3ae5f6494df598e65c')
+
+build() {
+  cd "$srcdir"/XML-LibXML-$pkgver
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd "$srcdir"/XML-LibXML-$pkgver
+  make test
+}
+
+package() {
+  cd "$srcdir"/XML-LibXML-$pkgver
+  make pure_install doc_install DESTDIR="$pkgdir"/
+# template start; name=perl-binary-module-dependency; version=1;
+if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
+	_perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
+	_perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
+	depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
+fi
+# template end;
+}

Copied: perl-xml-libxml/repos/staging-i686/perl-xml-libxml.install (from rev 267739, perl-xml-libxml/trunk/perl-xml-libxml.install)
===================================================================
--- staging-i686/perl-xml-libxml.install	                        (rev 0)
+++ staging-i686/perl-xml-libxml.install	2016-05-11 04:40:06 UTC (rev 267740)
@@ -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
+}

Copied: perl-xml-libxml/repos/staging-x86_64/PKGBUILD (from rev 267739, perl-xml-libxml/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2016-05-11 04:40:06 UTC (rev 267740)
@@ -0,0 +1,44 @@
+# $Id$
+# 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.0124
+pkgrel=3
+pkgdesc="Interface to the libxml library"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/dist/XML-LibXML"
+license=('GPL')
+depends=('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=(http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-$pkgver.tar.gz)
+md5sums=('30436b85454fba3ae5f6494df598e65c')
+
+build() {
+  cd "$srcdir"/XML-LibXML-$pkgver
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd "$srcdir"/XML-LibXML-$pkgver
+  make test
+}
+
+package() {
+  cd "$srcdir"/XML-LibXML-$pkgver
+  make pure_install doc_install DESTDIR="$pkgdir"/
+# template start; name=perl-binary-module-dependency; version=1;
+if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
+	_perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
+	_perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
+	depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
+fi
+# template end;
+}

Copied: perl-xml-libxml/repos/staging-x86_64/perl-xml-libxml.install (from rev 267739, perl-xml-libxml/trunk/perl-xml-libxml.install)
===================================================================
--- staging-x86_64/perl-xml-libxml.install	                        (rev 0)
+++ staging-x86_64/perl-xml-libxml.install	2016-05-11 04:40:06 UTC (rev 267740)
@@ -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