From b2ba553e558f423b618c905557b7ee72dd2fb0f7 Mon Sep 17 00:00:00 2001
From: Michael Hanson <hansonorders@verizon.net>
Date: Tue, 7 Dec 2010 01:44:07 +0000
Subject: perl-xml-libxml: upgrade

---
 abs/core/perl_modules/perl-xml-libxml/PKGBUILD     | 23 ++++++------
 .../perl-xml-libxml/perl-xml-libxml.install        | 41 +++++++++++++---------
 2 files changed, 37 insertions(+), 27 deletions(-)

diff --git a/abs/core/perl_modules/perl-xml-libxml/PKGBUILD b/abs/core/perl_modules/perl-xml-libxml/PKGBUILD
index 36a5c8c..24c6acd 100644
--- a/abs/core/perl_modules/perl-xml-libxml/PKGBUILD
+++ b/abs/core/perl_modules/perl-xml-libxml/PKGBUILD
@@ -1,26 +1,29 @@
 # Maintainer: François Charette <francois.archlinux.org>
 
 pkgname=perl-xml-libxml
-pkgver=1.69
-pkgrel=1
+pkgver=1.70
+pkgrel=2
 pkgdesc="Interface to the libxml library"
 arch=('i686' 'x86_64')
-url="http://search.cpan.org/~PAJAS/XML-LibXML"
-license=('GPL' 'PerlArtistic')
-depends=('perl-xml-libxml-common>=0.13' 'perl-xml-sax>=0.11' 'perl-xml-namespacesupport>=1.07')
-provides=('perl-libxml')
-replaces=('perl-libxml')
-conflicts=('perl-libxml')
-install=('perl-xml-libxml.install')
+url="http://search.cpan.org/dist/XML-LibXML"
+license=('GPL')
+depends=('libxml2' 'perl-xml-sax>=0.11' 'perl-xml-namespacesupport>=1.07')
+provides=('perl-libxml' 'perl-xml-libxml-common')
+replaces=('perl-libxml' 'perl-xml-libxml-common')
+conflicts=('perl-libxml' 'perl-xml-libxml-common')
+install=perl-xml-libxml.install
 options=('!emptydirs')
 source=(http://www.cpan.org/authors/id/P/PA/PAJAS/XML-LibXML-$pkgver.tar.gz) 
-md5sums=('8295f4ae7b09729985dd1133e3ad0d0a')
 
 build() {
   cd  $srcdir/XML-LibXML-$pkgver
   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 
   make || return 1
+}
+package() {
+  cd  $srcdir/XML-LibXML-$pkgver
   make pure_install doc_install DESTDIR=$pkgdir || return 1
   find $pkgdir -name '.packlist' -delete
   find $pkgdir -name '*.pod' -delete
 }
+md5sums=('33d4294f708e20c298cfe534d1166844')
diff --git a/abs/core/perl_modules/perl-xml-libxml/perl-xml-libxml.install b/abs/core/perl_modules/perl-xml-libxml/perl-xml-libxml.install
index 6085ff0..e92cacc 100644
--- a/abs/core/perl_modules/perl-xml-libxml/perl-xml-libxml.install
+++ b/abs/core/perl_modules/perl-xml-libxml/perl-xml-libxml.install
@@ -1,19 +1,26 @@
-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
-}
+# Maintainer: François Charette <francois.archlinux.org>
 
+pkgname=perl-xml-libxml
+pkgver=1.70
+pkgrel=2
+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>=0.11' 'perl-xml-namespacesupport>=1.07')
+provides=('perl-libxml' 'perl-xml-libxml-common')
+replaces=('perl-libxml' 'perl-xml-libxml-common')
+conflicts=('perl-libxml' 'perl-xml-libxml-common')
+install=perl-xml-libxml.install
+options=('!emptydirs')
+source=(http://www.cpan.org/authors/id/P/PA/PAJAS/XML-LibXML-$pkgver.tar.gz) 
 
-op=$1
-shift
-$op $*
+build() {
+  cd  $srcdir/XML-LibXML-$pkgver
+  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 
+  make || return 1
+  make pure_install doc_install DESTDIR=$pkgdir || return 1
+  find $pkgdir -name '.packlist' -delete
+  find $pkgdir -name '*.pod' -delete
+}
+md5sums=('33d4294f708e20c298cfe534d1166844')
-- 
cgit v0.12