testing/perl-couchbase: rebuild against libcouchbase 2.8.5; modernize

This commit is contained in:
TBK 2018-03-21 15:52:01 +01:00 committed by Natanael Copa
parent d0bbbf2090
commit 806a6bbece

View File

@ -4,38 +4,41 @@
pkgname=perl-couchbase pkgname=perl-couchbase
_pkgreal=Couchbase _pkgreal=Couchbase
pkgver=2.0.3 pkgver=2.0.3
pkgrel=2 pkgrel=3
pkgdesc="Couchbase Client Library" pkgdesc="Couchbase Client Library"
url="http://search.cpan.org/dist/Couchbase/" url="http://search.cpan.org/dist/Couchbase/"
arch="all" arch="all"
license="GPL PerlArtistic" license="GPL PerlArtistic"
cpandepends="perl-constant-generate perl-uri perl-class-xsaccessor perl-json-maybexs" cpandepends="perl-constant-generate perl-uri perl-class-xsaccessor perl-json-maybexs"
cpanmakedepends=" perl-log-fu perl-test-class perl-dir-self " cpanmakedepends="perl-log-fu perl-test-class perl-dir-self"
depends="$cpandepends" depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends libcouchbase-dev" makedepends="perl-dev $cpanmakedepends libcouchbase-dev"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MN/MNUNBERG/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/M/MN/MNUNBERG/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
_builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
cd "$_builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
build() { build() {
cd "$_builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make #&& make test make
}
check() {
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make test
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="604f95c7a73a73b53b0ff5b24ddce0e4 Couchbase-2.0.3.tar.gz"
sha256sums="62e8dd3d2ce70d0324ab657bb5c31e51c227105fd4bcf4355daea794f20fa6b8 Couchbase-2.0.3.tar.gz"
sha512sums="5d4fd37c828f8ddfa918ac30f50570b25fa6393fbb1b44527bc10a49e02fcc2a3a3fff4f687c33245bf5504fbc7392920f43b61946212ef27ec05e6c06f4e888 Couchbase-2.0.3.tar.gz" sha512sums="5d4fd37c828f8ddfa918ac30f50570b25fa6393fbb1b44527bc10a49e02fcc2a3a3fff4f687c33245bf5504fbc7392920f43b61946212ef27ec05e6c06f4e888 Couchbase-2.0.3.tar.gz"