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

Jaroslav Lichtblau jlichtblau at archlinux.org
Sat Mar 28 17:40:55 UTC 2015


    Date: Saturday, March 28, 2015 @ 18:40:55
  Author: jlichtblau
Revision: 130161

archrelease: copy trunk to community-x86_64

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

-------------------------+
 PKGBUILD                |   39 +++++++++++++++++++++++++++++++++++++++
 perl-xml-libxml.install |   15 +++++++++++++++
 2 files changed, 54 insertions(+)

Copied: perl-xml-libxml/repos/community-x86_64/PKGBUILD (from rev 130160, perl-xml-libxml/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2015-03-28 17:40:55 UTC (rev 130161)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Maintainer: 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.0118
+pkgrel=1
+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')
+provides=('perl-libxml' 'perl-xml-libxml-common')
+replaces=('perl-libxml' 'perl-xml-libxml-common')
+options=('!emptydirs')
+install=$pkgname.install
+source=(http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-$pkgver.tar.gz)
+md5sums=('da8d61a5d0d1bfd8d46814e376d33f58')
+
+build() {
+  cd "${srcdir}"/XML-LibXML-$pkgver
+
+  PERL_MM_USE_DEFAULT=1 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}"
+}

Copied: perl-xml-libxml/repos/community-x86_64/perl-xml-libxml.install (from rev 130160, perl-xml-libxml/trunk/perl-xml-libxml.install)
===================================================================
--- community-x86_64/perl-xml-libxml.install	                        (rev 0)
+++ community-x86_64/perl-xml-libxml.install	2015-03-28 17:40:55 UTC (rev 130161)
@@ -0,0 +1,15 @@
+post_install() {
+  echo ":: Installing SAX XML Parsers"
+  /usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX::Parser))->save_parsers()"
+  /usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX))->save_parsers()"
+}
+
+post_upgrade() {
+  libxmlcount=`grep -c XML::LibXML::SAX /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini`
+  if [[ $libxmlcount == 0 ]]; then
+	  echo ":: Installing SAX XML Parsers"
+	  /usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX::Parser))->save_parsers()"
+	  /usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX))->save_parsers()"
+  fi
+}
+



More information about the arch-commits mailing list