aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-www-mechanize
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2020-02-25 23:59:12 +0000
committerAriadne Conill <ariadne@dereferenced.org>2020-02-27 00:03:24 +0000
commitf96b436121f56e7a919c9f2d410c1af7957a5592 (patch)
treef80c84881cdde89448edd56d4cd18fec785e531b /community/perl-www-mechanize
parent134fc112205617a1cd9f38203a6b7c213014f7ae (diff)
downloadaports-f96b436121f56e7a919c9f2d410c1af7957a5592.tar.bz2
aports-f96b436121f56e7a919c9f2d410c1af7957a5592.tar.xz
community/perl-www-mechanize: move from testing
Diffstat (limited to 'community/perl-www-mechanize')
-rw-r--r--community/perl-www-mechanize/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/perl-www-mechanize/APKBUILD b/community/perl-www-mechanize/APKBUILD
new file mode 100644
index 0000000000..33c6219ba3
--- /dev/null
+++ b/community/perl-www-mechanize/APKBUILD
@@ -0,0 +1,37 @@
+# Automatically generated by apkbuild-cpan, template 2
+# Contributor: Timothy Legge <timlegge@gmail.com>
+# Maintainer: Timothy Legge <timlegge@gmail.com>
+pkgname=perl-www-mechanize
+_pkgreal=WWW-Mechanize
+pkgver=1.96
+pkgrel=0
+pkgdesc="Handy web browsing in a Perl object"
+url="https://metacpan.org/release/WWW-Mechanize/"
+arch="noarch"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl-libwww perl-html-tree perl-uri perl-html-parser
+ perl-http-cookies perl-http-message perl-html-form"
+checkdepends="perl-cgi perl-http-daemon perl-test-fatal perl-test-output
+ perl-test-deep perl-http-server-simple perl-test-warnings perl-test-warn"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/WWW-Mechanize-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="6ecd9a38d187422e2ed84d7d475849273f2f0c86fa1a2429cf8327a8f1d2853562b6557ca93c67c6c65351d46d208ffef5cd3a056b2fae34d1afb75cce1720bc WWW-Mechanize-1.96.tar.gz"