aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-06-02 11:34:57 +0300
committerTimo Teräs <timo.teras@iki.fi>2011-06-02 11:48:26 +0300
commit00defc9c6d4835606973e4bad1930e76b75eebb1 (patch)
treee4b1467ad0811dc293bb7badb055c236ac175ef7 /testing
parent1aed89d0706c7ef01416eada4f2307da7c3e13d1 (diff)
downloadaports-00defc9c6d4835606973e4bad1930e76b75eebb1.tar.bz2
aports-00defc9c6d4835606973e4bad1930e76b75eebb1.tar.xz
testing/perl-exception-class: new apkbuild-cpan generated aport
A module that allows you to declare real exception classes in Perl http://search.cpan.org/dist/Exception-Class/
Diffstat (limited to 'testing')
-rw-r--r--testing/perl-exception-class/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/perl-exception-class/APKBUILD b/testing/perl-exception-class/APKBUILD
new file mode 100644
index 0000000000..2bedac2a58
--- /dev/null
+++ b/testing/perl-exception-class/APKBUILD
@@ -0,0 +1,37 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=perl-exception-class
+_pkgreal=Exception-Class
+pkgver=1.32
+pkgrel=0
+pkgdesc="A module that allows you to declare real exception classes in Perl"
+url="http://search.cpan.org/dist/Exception-Class/"
+arch="noarch"
+license="Artistic-2"
+cpandepends="perl-class-data-inheritable perl-devel-stacktrace"
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="83788ad5a2c5e946877e4ec362e19622 Exception-Class-1.32.tar.gz"