From 932f008f4dc42f187f5f6968bba3f652a9ef9fa0 Mon Sep 17 00:00:00 2001 From: Manuel Date: Thu, 10 May 2012 22:13:44 +0000 Subject: [PATCH] Add missing dep and update --- perl-test-pod/PKGBUILD | 6 +----- perl-xml-sax-base/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ perl-xml-sax/PKGBUILD | 24 ++++++++++++------------ perl-xml-sax/perl-xml-sax.patch | 9 +++++---- perl-yaml-syck/PKGBUILD | 30 +++++++++++++++--------------- 5 files changed, 65 insertions(+), 36 deletions(-) create mode 100644 perl-xml-sax-base/PKGBUILD diff --git a/perl-test-pod/PKGBUILD b/perl-test-pod/PKGBUILD index 5cae10f6e..423b97711 100644 --- a/perl-test-pod/PKGBUILD +++ b/perl-test-pod/PKGBUILD @@ -1,13 +1,9 @@ -# # Platform Packages for Chakra, part of chakra-project.org -# -# maintainer (i686): Phil Miller -# maintainer (x86_64): Manuel Tortosa pkgname=perl-test-pod _realname=Test-Pod pkgver=1.45 -pkgrel=2 +pkgrel=3 pkgdesc="Check for POD errors in files" arch=(any) license=('GPL' 'PerlArtistic') diff --git a/perl-xml-sax-base/PKGBUILD b/perl-xml-sax-base/PKGBUILD new file mode 100644 index 000000000..7f729fa45 --- /dev/null +++ b/perl-xml-sax-base/PKGBUILD @@ -0,0 +1,32 @@ +# Core packages for Chakra + +pkgname=perl-xml-sax-base +pkgver=1.08 +pkgrel=1 +pkgdesc="Base class SAX Drivers and Filters" +arch=('any') +url="http://search.cpan.org/dist/XML-SAX-Base" +license=('GPL' 'PerlArtistic') +depends=('perl') +options=('!emptydirs') +source=("http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-Base-$pkgver.tar.gz") +md5sums=('38c8c3247dfd080712596118d70dbe32') + +build() { + cd $srcdir/XML-SAX-Base-$pkgver + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd $srcdir/XML-SAX-Base-$pkgver + make test +} + +package() { + cd $srcdir/XML-SAX-Base-$pkgver + make install DESTDIR=$pkgdir + + find $pkgdir -name '.packlist' -delete + find $pkgdir -name '*.pod' -delete +} diff --git a/perl-xml-sax/PKGBUILD b/perl-xml-sax/PKGBUILD index 778042347..5dab871b4 100644 --- a/perl-xml-sax/PKGBUILD +++ b/perl-xml-sax/PKGBUILD @@ -1,29 +1,29 @@ # Chakra Packages for Chakra, part of chakra-project.org -# -# maintainer (i686): Phil Miller -# maintainer (x86_64): Manuel Tortosa pkgname=perl-xml-sax -pkgver=0.96 -pkgrel=2 +pkgver=0.99 +pkgrel=1 pkgdesc="Simple API for XML" arch=('any') url="http://search.cpan.org/dist/XML-SAX" license=('GPL' 'PerlArtistic') -depends=('perl>=5.10.0' 'perl-xml-namespacesupport>=0.03') +depends=('perl' 'perl-xml-sax-base' 'perl-xml-namespacesupport') options=('!emptydirs') install=perl-xml-sax.install -source=("http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-$pkgver.tar.gz" 'perl-xml-sax.patch') -md5sums=('bdcd4119a62505184e211e9dfaef0ab1' - 'b8ad2da4195ac0eede28dfaed4d874c3') +source=("http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-$pkgver.tar.gz" + 'perl-xml-sax.patch') +md5sums=('290f5375ae87fdebfdb5bc3854019f24' + 'f114c4aad3221d3e7d8314d13b84a869') build() { - cd $srcdir - patch -p0 < perl-xml-sax.patch - cd $srcdir/XML-SAX-$pkgver + patch -Np1 -i "${srcdir}/perl-xml-sax.patch" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make +} + +check() { + cd $srcdir/XML-SAX-$pkgver make test } diff --git a/perl-xml-sax/perl-xml-sax.patch b/perl-xml-sax/perl-xml-sax.patch index b2db7d241..880468b8d 100644 --- a/perl-xml-sax/perl-xml-sax.patch +++ b/perl-xml-sax/perl-xml-sax.patch @@ -1,9 +1,10 @@ ---- XML-SAX-0.96/Makefile.PL.orig 2008-08-04 23:07:21.000000000 +0200 -+++ XML-SAX-0.96/Makefile.PL 2008-12-09 11:52:24.806540909 +0100 -@@ -12,42 +12,3 @@ +--- a/Makefile.PL 2011-09-04 23:37:48.000000000 +0200 ++++ b/Makefile.PL 2011-10-07 18:12:50.000000000 +0200 +@@ -12,43 +12,3 @@ + 'XML::NamespaceSupport' => 0.03, }, ); - +- -sub MY::install { - package MY; - my $script = shift->SUPER::install(@_); diff --git a/perl-yaml-syck/PKGBUILD b/perl-yaml-syck/PKGBUILD index 1af630cd3..1a69501d4 100644 --- a/perl-yaml-syck/PKGBUILD +++ b/perl-yaml-syck/PKGBUILD @@ -1,39 +1,39 @@ -# # Platform Packages for Chakra, part of chakra-project.org -# -# maintainer (i686): Phil Miller -# maintainer (x86_64): Manuel Tortosa pkgname=perl-yaml-syck _realname=YAML-Syck -pkgver=1.17 -pkgrel=2 +pkgver=1.20 +pkgrel=1 pkgdesc="Fast, lightweight YAML loader and dumper" arch=('i686' 'x86_64') license=('custom') url="http://search.cpan.org/dist/${_realname}/" depends=('perl>=5.10.0') options=('!emptydirs') -source=(http://www.cpan.org/authors/id/A/AV/AVAR/${_realname}-$pkgver.tar.gz) -md5sums=('f788529ad4b2c2fd037ccdfd5e7a88ab') +source=(http://www.cpan.org/authors/id/T/TO/TODDR/${_realname}-$pkgver.tar.gz) +md5sums=('8f6d04ee5817b8479e1234264a8d458d') build() { - cd ${srcdir}/${_realname}-$pkgver + cd "${srcdir}/${_realname}-$pkgver" # install module in vendor directories. perl Makefile.PL INSTALLDIRS=vendor make +} + +check() { + cd "${srcdir}/${_realname}-$pkgver" make test } package() { - cd ${srcdir}/${_realname}-$pkgver - make install DESTDIR=${pkgdir} + cd "${srcdir}/${_realname}-$pkgver" + make install DESTDIR="${pkgdir}" # remove perllocal.pod and .packlist - find ${pkgdir} -name perllocal.pod -delete - find ${pkgdir} -name .packlist -delete + find "${pkgdir}" -name perllocal.pod -delete + find "${pkgdir}" -name .packlist -delete # license. - install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING -} \ No newline at end of file + install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" +}