aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 15:53:47 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:24 +0300
commit43cf8e657cfdbbe2953459672286383ba669a85d (patch)
treeaba5ebfc81847c3c61e0360167d69eb743953a4e /testing
parent5e1432bc81c37447d01101f20302cd86f6adef9b (diff)
downloadaports-43cf8e657cfdbbe2953459672286383ba669a85d.tar.bz2
aports-43cf8e657cfdbbe2953459672286383ba669a85d.tar.xz
testing/perl-dbix-class-candy: new aport
Sugar for your favorite ORM, DBIx::Class http://search.cpan.org/dist/DBIx-Class-Candy/
Diffstat (limited to 'testing')
-rw-r--r--testing/perl-dbix-class-candy/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-dbix-class-candy/APKBUILD b/testing/perl-dbix-class-candy/APKBUILD
new file mode 100644
index 0000000000..e6a9ec66ba
--- /dev/null
+++ b/testing/perl-dbix-class-candy/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-dbix-class-candy
+_pkgreal=DBIx-Class-Candy
+pkgver=0.005002
+pkgrel=0
+pkgdesc="Sugar for your favorite ORM, DBIx::Class"
+url="http://search.cpan.org/dist/DBIx-Class-Candy/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-sub-exporter perl-string-camelcase perl-mro-compat perl-namespace-clean perl-dbix-class perl-lingua-en-inflect"
+cpanmakedepends=""
+cpancheckdepends="perl-test-deep perl-test-fatal"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/F/FR/FREW/$_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 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="aabc74b20143321e9e9716ce7f9fab1399a35f5c7ad7d35f34f5b9945a01e7418b9814058f42bf0f4a1478b8a5c80c57b8da05ee2bdcf24ab08b76f0f1ae17f5 DBIx-Class-Candy-0.005002.tar.gz"