diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-07-07 10:08:05 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-07-11 14:31:25 +0300 |
commit | 608861d01548236d63cffcdf2c45789186dc6f3c (patch) | |
tree | d3a9b0f3f69c27916ca8b2eb814142933a4a4297 /testing/perl-log-message | |
parent | 49acb0bfbda023fe01837c684327550bbdcebe3f (diff) | |
download | aports-608861d01548236d63cffcdf2c45789186dc6f3c.tar.bz2 aports-608861d01548236d63cffcdf2c45789186dc6f3c.tar.xz |
testing/perl-log-message: new aport
Powerful and flexible message logging mechanism
http://search.cpan.org/dist/Log-Message/
Diffstat (limited to 'testing/perl-log-message')
-rw-r--r-- | testing/perl-log-message/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-log-message/APKBUILD b/testing/perl-log-message/APKBUILD new file mode 100644 index 0000000000..6f7686d0dd --- /dev/null +++ b/testing/perl-log-message/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-log-message +_pkgreal=Log-Message +pkgver=0.08 +pkgrel=0 +pkgdesc="Powerful and flexible message logging mechanism" +url="http://search.cpan.org/dist/Log-Message/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/$_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="7dffaa66bae132a958b08948369761b1871af4fb0f719f1b39f9978131034444ab02db62cb5ca3ee89607640070e410b020e23ebfd4d3d8d9ca8b01ffed2ced8 Log-Message-0.08.tar.gz" |