diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-07-06 17:10:02 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-07-11 14:31:25 +0300 |
commit | cd79389468251eb6e93233bfe50f7d440afc2eff (patch) | |
tree | b8da58d3dfd1f1459ed50b81aeeb228a212463cd | |
parent | 6132ad3e0a9a8d80a40f3601a61a71b2cd61f51d (diff) | |
download | aports-cd79389468251eb6e93233bfe50f7d440afc2eff.tar.bz2 aports-cd79389468251eb6e93233bfe50f7d440afc2eff.tar.xz |
testing/perl-dbicx-sugar: new aport
Just some syntax sugar for DBIx::Class
http://search.cpan.org/dist/DBICx-Sugar/
-rw-r--r-- | testing/perl-dbicx-sugar/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-dbicx-sugar/APKBUILD b/testing/perl-dbicx-sugar/APKBUILD new file mode 100644 index 0000000000..91faf2276a --- /dev/null +++ b/testing/perl-dbicx-sugar/APKBUILD @@ -0,0 +1,48 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=perl-dbicx-sugar +_pkgreal=DBICx-Sugar +pkgver=0.0100 +pkgrel=0 +pkgdesc="Just some syntax sugar for DBIx::Class" +url="http://search.cpan.org/dist/DBICx-Sugar/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-sql-translator perl-dbix-class" +cpanmakedepends="" +cpancheckdepends="perl-dbi perl-dbix-class perl-test-modern perl-test-requires" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends perl-dbd-sqlite" +checkdepends="$cpancheckdepends perl-moose" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/I/IR/IRONCAMEL/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="f034da76509a6c80f23739aa8cc7971f738d39c32a0841d68030308fbdc2ba63de08acb4dcd140c8bcd1e951ec52ca2ec7b3dfa0a04c6b0c4a2da1c67a3daac7 DBICx-Sugar-0.0100.tar.gz" |