diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2012-10-27 18:02:53 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2012-10-27 18:02:53 +0000 |
commit | d87b446bf2cfaca644172ef948c4d5baab13c848 (patch) | |
tree | 8e840aa2df6842566e2127e3a8c9a59713d2647b /testing/perl-class-inspector | |
parent | e7b49bca29343ff4aa7c3eabcca049f34ab38d8d (diff) | |
download | aports-d87b446bf2cfaca644172ef948c4d5baab13c848.tar.bz2 aports-d87b446bf2cfaca644172ef948c4d5baab13c848.tar.xz |
testing/perl-class-inspector: new aport
Diffstat (limited to 'testing/perl-class-inspector')
-rw-r--r-- | testing/perl-class-inspector/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-class-inspector/APKBUILD b/testing/perl-class-inspector/APKBUILD new file mode 100644 index 0000000000..90b2ad1474 --- /dev/null +++ b/testing/perl-class-inspector/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-class-inspector +_pkgreal=Class-Inspector +pkgver=1.28 +pkgrel=0 +pkgdesc="Get information about a class and its structure" +url="http://search.cpan.org/dist/Class-Inspector/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/$_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="7ab3ca22d3147236dddfb58f2366ad22 Class-Inspector-1.28.tar.gz" |