summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
Diffstat (limited to 'abs')
-rw-r--r--abs/core/perl_modules/perl-xml-libxml/PKGBUILD47
-rw-r--r--abs/core/perl_modules/perl-xml-libxml/perl-xml-libxml.install43
2 files changed, 51 insertions, 39 deletions
diff --git a/abs/core/perl_modules/perl-xml-libxml/PKGBUILD b/abs/core/perl_modules/perl-xml-libxml/PKGBUILD
index 24c6acd..ad82aab 100644
--- a/abs/core/perl_modules/perl-xml-libxml/PKGBUILD
+++ b/abs/core/perl_modules/perl-xml-libxml/PKGBUILD
@@ -1,29 +1,44 @@
-# Maintainer: François Charette <francois.archlinux.org>
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Jonathan Steel <jsteel@aur.archlinux.org>
+# Contributor: Justin "juster" Davis <jrcd83@gmail.com>
+# Contributor: François Charette <francois.archlinux.org>
pkgname=perl-xml-libxml
-pkgver=1.70
-pkgrel=2
+pkgver=2.0132
+pkgrel=1
pkgdesc="Interface to the libxml library"
-arch=('i686' 'x86_64')
+arch=('x86_64')
url="http://search.cpan.org/dist/XML-LibXML"
license=('GPL')
-depends=('libxml2' 'perl-xml-sax>=0.11' 'perl-xml-namespacesupport>=1.07')
+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')
-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)
+install=perl-xml-libxml.install
+source=(http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-$pkgver.tar.gz)
+sha512sums=('3df1cb67ea955133492f2b6f8def2b28079c59e99170a31820aca69ea81686c4b67171509f1b311faab9389d200c4a24942b3950d7c0730ff1233a009b398fce')
build() {
- cd $srcdir/XML-LibXML-$pkgver
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+ 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 || return 1
- find $pkgdir -name '.packlist' -delete
- find $pkgdir -name '*.pod' -delete
+ 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;
}
-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 e92cacc..3a8eb1e 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,26 +1,23 @@
-# Maintainer: François Charette <francois.archlinux.org>
+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()"
+}
-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)
+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
+}
-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
+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
}
-md5sums=('33d4294f708e20c298cfe534d1166844')