summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 04:41:40 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 04:41:40 -0500
commitb59ec068291ce0592b91b62684f68ce2ae31961c (patch)
tree7227532612d429e0ceb13db6f8c84743e2822853 /system
parent0b5b5d6668fbda31c14ed0422222729ece800eaf (diff)
downloadpackages-b59ec068291ce0592b91b62684f68ce2ae31961c.tar.gz
packages-b59ec068291ce0592b91b62684f68ce2ae31961c.tar.bz2
packages-b59ec068291ce0592b91b62684f68ce2ae31961c.tar.xz
packages-b59ec068291ce0592b91b62684f68ce2ae31961c.zip
{user => system}/perl-{uri,test-needs} for lwp
Diffstat (limited to 'system')
-rw-r--r--system/perl-test-needs/APKBUILD34
-rw-r--r--system/perl-uri/APKBUILD36
2 files changed, 70 insertions, 0 deletions
diff --git a/system/perl-test-needs/APKBUILD b/system/perl-test-needs/APKBUILD
new file mode 100644
index 000000000..c40abbe62
--- /dev/null
+++ b/system/perl-test-needs/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=perl-test-needs
+pkgver=0.002005
+pkgrel=0
+pkgdesc="Perl module for skipping tests when modules aren't found"
+url="https://metacpan.org/pod/Test::Needs"
+arch="noarch"
+license="Artistic-2.0"
+depends="perl"
+makedepends="$depends"
+install=""
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/H/HA/HAARG/Test-Needs-$pkgver.tar.gz"
+builddir="$srcdir/Test-Needs-$pkgver"
+
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="b3023067d1f8726b0ae2162d0b3722193a3b56d12d5c207cf9558f1552ae8ab554773b843d00f1c481857c259fa869b8fdaf5a4838ab0768f38726ddec4130c6 Test-Needs-0.002005.tar.gz"
diff --git a/system/perl-uri/APKBUILD b/system/perl-uri/APKBUILD
new file mode 100644
index 000000000..6624a4621
--- /dev/null
+++ b/system/perl-uri/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=perl-uri
+pkgver=1.74
+pkgrel=0
+pkgdesc="Perl library for URI manipulation"
+url="https://metacpan.org/pod/URI"
+arch="noarch"
+license="GPL-1.0+ OR Artistic-1.0-Perl"
+depends="perl"
+makedepends="$depends"
+checkdepends="perl-test-needs"
+install=""
+subpackages="$pkgname-doc"
+provides="perl-uri-escape"
+source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/URI-$pkgver.tar.gz"
+builddir="$srcdir/URI-$pkgver"
+
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="b537bd09c355989a2bb1919e2c228cf189e57f993add4246fa482d8ee5ec814266c6fb3229befce2f294456ee784a819d9a54013c43a2ad41b5d8914fabf046b URI-1.74.tar.gz"