diff options
author | Erich Eckner <git@eckner.net> | 2016-05-24 08:56:19 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-05-24 08:56:19 +0200 |
commit | 503bce880b16a6688ed44f730a8b3b3b5697b47b (patch) | |
tree | 249d27ab7cb12af4298268574b4a8830acc359ae /perl-convert-bencode_xs | |
parent | 75e58e5ee29dca948957ca02914e413ac7efb9d9 (diff) | |
download | archlinuxewe-503bce880b16a6688ed44f730a8b3b3b5697b47b.tar.xz |
perl-convert-bencode_xs tests repariert
Diffstat (limited to 'perl-convert-bencode_xs')
-rw-r--r-- | perl-convert-bencode_xs/PKGBUILD | 21 | ||||
-rw-r--r-- | perl-convert-bencode_xs/test-order.patch | 11 |
2 files changed, 26 insertions, 6 deletions
diff --git a/perl-convert-bencode_xs/PKGBUILD b/perl-convert-bencode_xs/PKGBUILD index c4e164fca..6421a89e6 100644 --- a/perl-convert-bencode_xs/PKGBUILD +++ b/perl-convert-bencode_xs/PKGBUILD @@ -3,7 +3,7 @@ pkgname='perl-convert-bencode_xs' pkgver='0.06' -pkgrel='1' +pkgrel='2' pkgdesc='Faster conversions to/from Bencode format' arch=('x86_64' 'i686') license=('PerlArtistic' 'GPL') @@ -12,8 +12,17 @@ depends=('perl-bencode' 'perl-test-simple') checkdepends=('perl-convert-bencode') url='https://metacpan.org/release/Convert-Bencode_XS' _distdir="Convert-Bencode_XS-${pkgver}" -source=("https://cpan.metacpan.org/authors/id/I/IW/IWADE/${_distdir}.tar.gz") -sha512sums=('0f7a0afa3e5a270b982852903d5809c7964c174886cb99fa5a3e5e1e62a10ba9f68791c2a7d31b1f56ecbcac307b949dfc4660c613510d06a99f56dffd33adde') +source=( + "https://cpan.metacpan.org/authors/id/I/IW/IWADE/${_distdir}.tar.gz" + 'test-order.patch') +sha512sums=('0f7a0afa3e5a270b982852903d5809c7964c174886cb99fa5a3e5e1e62a10ba9f68791c2a7d31b1f56ecbcac307b949dfc4660c613510d06a99f56dffd33adde' + '713653dbaa741ace8ea84e66ec0167a57e635db064ceb839580b8295d1f2cc27b989aa06689c033011066b6c4ee4a9df4e6b2c1bc08cfc48fe96140bdb42af44') + +prepare() { + cd "${srcdir}/${_distdir}" + + patch -p0 -i "${srcdir}/test-order.patch" +} build(){ cd "${srcdir}/${_distdir}" @@ -35,7 +44,7 @@ build(){ fi } -check(){ +check() { cd "${srcdir}/${_distdir}" # If using Makefile.PL @@ -47,9 +56,9 @@ check(){ fi } -package(){ +package() { cd "${srcdir}/${_distdir}" - + # If using Makefile.PL if [ -r Makefile.PL ]; then make install diff --git a/perl-convert-bencode_xs/test-order.patch b/perl-convert-bencode_xs/test-order.patch new file mode 100644 index 000000000..6320ddf56 --- /dev/null +++ b/perl-convert-bencode_xs/test-order.patch @@ -0,0 +1,11 @@ +$OpenBSD$ +--- t/001_tests.t.orig Sat Nov 15 14:41:13 2014 ++++ t/001_tests.t Sat Nov 15 14:41:27 2014 +@@ -109,6 +109,7 @@ SKIP: { + #we use Storable so we do not rely on bencode + eval q{use Storable qw(freeze)}; + skip "Storable not available", 12 if $@; ++ local $Storable::canonical = 1; + local $Convert::Bencode_XS::COERCE = 0; + is( freeze(bdecode('le')), freeze([]) ); + is( freeze(bdecode('l0:0:0:e')), freeze(['', '', '']) ); |