aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-10-29 12:41:02 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-10-29 12:41:02 +0000
commit2d88777ef94c0b44e15cd724569d8b3d2cb225d7 (patch)
treefcca3196da562d961617735231366f53daef3e76 /testing
parent4a216321137b61de31412d062bbc54b3c3786d28 (diff)
downloadaports-2d88777ef94c0b44e15cd724569d8b3d2cb225d7.tar.bz2
aports-2d88777ef94c0b44e15cd724569d8b3d2cb225d7.tar.xz
testing/perl-gtk2-ex-numaxis: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/perl-gtk2-ex-numaxis/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-gtk2-ex-numaxis/APKBUILD b/testing/perl-gtk2-ex-numaxis/APKBUILD
new file mode 100644
index 0000000000..948bc9f80e
--- /dev/null
+++ b/testing/perl-gtk2-ex-numaxis/APKBUILD
@@ -0,0 +1,39 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-gtk2-ex-numaxis
+_pkgreal=Gtk2-Ex-NumAxis
+pkgver=5
+pkgrel=0
+pkgdesc="Widget drawing a numbered axis."
+url="http://search.cpan.org/dist/Gtk2-Ex-NumAxis/"
+arch="noarch"
+license="open_source"
+cpandepends="perl-glib perl-gtk2 perl-math-round perl-glib-ex-objectbits perl-gtk2-ex-widgetbits"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/K/KR/KRYDE/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ 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 && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="22ab718d7adb65569fa3f9d534200686 Gtk2-Ex-NumAxis-5.tar.gz"