aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2015-10-29 16:43:37 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-10-29 15:45:56 +0000
commit1c74c6586e3305c58fe7b57017b40f8fff0f3124 (patch)
treeef500acba655099c9840e2d0a8f0ad81456cb45b /main
parent91da54bb1dbba359a7cdf034aa9b6c3e63a2c355 (diff)
downloadaports-1c74c6586e3305c58fe7b57017b40f8fff0f3124.tar.bz2
aports-1c74c6586e3305c58fe7b57017b40f8fff0f3124.tar.xz
main/perl-net-smtp-ssl: Recreate APKBUILD with apkbuild-cpan generator (no package rebuild needed)
Diffstat (limited to 'main')
-rw-r--r--main/perl-net-smtp-ssl/APKBUILD38
1 files changed, 23 insertions, 15 deletions
diff --git a/main/perl-net-smtp-ssl/APKBUILD b/main/perl-net-smtp-ssl/APKBUILD
index 055ea563b5..0dc16a743d 100644
--- a/main/perl-net-smtp-ssl/APKBUILD
+++ b/main/perl-net-smtp-ssl/APKBUILD
@@ -1,31 +1,39 @@
-# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-net-smtp-ssl
-_realname=Net-SMTP-SSL
+_pkgreal=Net-SMTP-SSL
pkgver=1.03
pkgrel=0
pkgdesc="SSL support for Net::SMTP"
url="http://search.cpan.org/dist/Net-SMTP-SSL/"
arch="noarch"
-license="GPL"
-depends="perl perl-io-socket-ssl"
-makedepends="perl-dev"
-install=
+license="GPL PerlArtistic"
+cpandepends="perl-io-socket-ssl"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Net-SMTP-SSL-$pkgver.tar.gz"
+source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"
-build() {
- cd "$srcdir/$_realname-$pkgver"
+_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
+}
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
}
package() {
- cd "$srcdir/$_realname-$pkgver"
- make DESTDIR="$pkgdir" install
- # creates file collision among perl modules
- find "$pkgdir" -name perllocal.pod -delete
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="75c80e6af5583630ba074b25c0b5ee84 Net-SMTP-SSL-1.03.tar.gz"