diff --git a/perl/perl-archive-cpio/PKGBUILD b/perl/perl-archive-cpio/PKGBUILD new file mode 100644 index 0000000000..b91f65a935 --- /dev/null +++ b/perl/perl-archive-cpio/PKGBUILD @@ -0,0 +1,35 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Levente Polyak + +pkgname=perl-archive-cpio +_cpanname=Archive-Cpio +pkgver=0.10 +pkgrel=3 +pkgdesc='module for manipulations of cpio archives' +url='https://metacpan.org/pod/Archive::Cpio' +arch=('any') +license=('unknown') +depends=('perl>=5.10.0') +options=('!emptydirs') +source=(${pkgname}-${pkgver}.tar.gz::https://cpan.metacpan.org/authors/id/P/PI/PIXEL/${_cpanname}-${pkgver}.tar.gz) +sha256sums=('246fb31669764e78336b2191134122e07c44f2d82dc4f37d552ab28f8668bed3') +sha512sums=('c828f6f199de0efd7c7fbe2c3d4c5304df3c714720d91dd9a7d76e2c8d16bab1b92fc93a0b8afe78bd89b043ce7684c31d54b13c4e840f68ee040ca7bff43c3d') + +build() { + cd ${_cpanname}-${pkgver} + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd ${_cpanname}-${pkgver} + make test +} + +package() { + cd ${_cpanname}-${pkgver} + make DESTDIR="${pkgdir}" install + install -Dm 644 Changes -t "${pkgdir}/usr/share/doc/${pkgname}" +} + +# vim: ts=2 sw=2 et: diff --git a/perl/perl-archive-zip/PKGBUILD b/perl/perl-archive-zip/PKGBUILD new file mode 100644 index 0000000000..72ff614e4f --- /dev/null +++ b/perl/perl-archive-zip/PKGBUILD @@ -0,0 +1,34 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Felix Yan +# Contributor: Allan McRae +# Contributor: Andrew Simmons + +pkgname=perl-archive-zip +pkgver=1.64 +pkgrel=1 +pkgdesc="Provide a perl interface to ZIP archive files" +arch=('any') +license=('GPL' 'PerlArtistic') +url="http://search.cpan.org/dist/Archive-Zip/" +depends=('perl') +checkdepends=('perl-test-mockmodule') +options=('!emptydirs') +source=(http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/Archive-Zip-${pkgver}.tar.gz) +sha512sums=('7ae4c87ad50b30e764a79ada8f39ea2d698cfba957294d28dc15a2f3b2497923266a00574c5e43ddd59d6ec76d911f39007851920e0f09bfe3f466d46e17d6fc') + +build() { + cd Archive-Zip-${pkgver} + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd Archive-Zip-${pkgver} + make test +} + + +package() { + cd Archive-Zip-${pkgver} + make DESTDIR="${pkgdir}" install +} diff --git a/perl/perl-cpan-meta/PKGBUILD b/perl/perl-cpan-meta/PKGBUILD new file mode 100644 index 0000000000..277e664993 --- /dev/null +++ b/perl/perl-cpan-meta/PKGBUILD @@ -0,0 +1,44 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Felix Yan + +pkgname=perl-cpan-meta +pkgver=2.150010 +pkgrel=6 +pkgdesc='the distribution metadata for a CPAN dist' +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl>=5.8' 'perl-cpan-meta-requirements>=2.121' + 'perl-cpan-meta-yaml>=0.008' 'perl-cpan-meta>=2.150008') +url='https://metacpan.org/release/CPAN-Meta' +source=("http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/CPAN-Meta-$pkgver.tar.gz") +sha512sums=('b5513c411de33e10da6751460e373a67c6c0245a98409fc525383feb1f9b913e9fcd23e6cc2e0faa93eab3ecb932e3ea31788d46e490ef67151c8842a096d700') + +_ddir="CPAN-Meta-$pkgver" + +build() ( + cd "$srcdir/$_ddir" + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + unset PERL5LIB PERL_MM_OPT + /usr/bin/perl Makefile.PL + make +) + +check() ( + cd "$srcdir/$_ddir" + export PERL_MM_USE_DEFAULT=1 + unset PERL5LIB + make test +) + +package() ( + cd "$srcdir/$_ddir" + make install INSTALLDIRS=vendor DESTDIR="$pkgdir" + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +) + +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: +# vim:set ts=2 sw=2 et: diff --git a/perl/perl-encode-locale/PKGBUILD b/perl/perl-encode-locale/PKGBUILD new file mode 100644 index 0000000000..048c04c913 --- /dev/null +++ b/perl/perl-encode-locale/PKGBUILD @@ -0,0 +1,31 @@ +# POWER Maintainer: Alexander Baldeck +# $Id$ +# Maintainer: Felix Yan + +pkgname=perl-encode-locale +pkgver=1.05 +pkgrel=4 +pkgdesc="Determine the locale encoding" +arch=('any') +url="http://search.cpan.org/dist/Encode-Locale" +license=('PerlArtistic' 'GPL') +depends=('perl') +options=('!emptydirs') +source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Encode-Locale-$pkgver.tar.gz) +sha1sums=('1e1632e869cb76e3fdbda0a83a192190ed178d60') + +build() { + cd Encode-Locale-$pkgver + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd Encode-Locale-$pkgver + make test +} + +package() { + cd Encode-Locale-$pkgver + make DESTDIR="$pkgdir" install +} diff --git a/perl/perl-error/PKGBUILD b/perl/perl-error/PKGBUILD new file mode 100644 index 0000000000..29573d5346 --- /dev/null +++ b/perl/perl-error/PKGBUILD @@ -0,0 +1,32 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Felix Yan + +pkgname=perl-error +pkgver=0.17027 +pkgrel=1 +pkgdesc="Perl/CPAN Error module - Error/exception handling in an OO-ish way" +url="http://search.cpan.org/dist/Error/" +arch=('any') +license=('PerlArtistic' 'GPL') +depends=('perl') +checkdepends=('perl-test-pod' 'perl-test-pod-coverage') +options=('!emptydirs') +source=(http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/Error-${pkgver}.tar.gz) +sha512sums=('f7a649254bd2a5228a0baaa7bb286872dcbcf373134446176ff63a5ec0159e7472e0ea930aaff78f7f7961f797ae0a8e5c8725bdc06d2bab177ce469a4ede4b9') + +build() { + cd Error-${pkgver} + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd Error-${pkgver} + make test +} + +package() { + cd Error-${pkgver} + make DESTDIR="${pkgdir}" install +} + diff --git a/perl/perl-file-which/PKGBUILD b/perl/perl-file-which/PKGBUILD new file mode 100644 index 0000000000..0b1b41ee51 --- /dev/null +++ b/perl/perl-file-which/PKGBUILD @@ -0,0 +1,29 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Jan Alexander Steffens (heftig) + +pkgname=perl-file-which +_realname=File-Which +pkgver=1.23 +pkgrel=1 +pkgdesc="Portable implementation of which" +arch=(any) +url="https://metacpan.org/release/$_realname" +license=(GPL PerlArtistic) +depends=(perl) +options=('!emptydirs') +source=("https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/$_realname-$pkgver.tar.gz") +sha256sums=('b79dc2244b2d97b6f27167fc3b7799ef61a179040f3abd76ce1e0a3b0bc4e078') + +build() { + cd $_realname-$pkgver + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +package() { + cd $_realname-$pkgver + make DESTDIR="$pkgdir" install +} + +# vim:set sw=2 et: diff --git a/perl/perl-http-daemon/HTTP-Daemon-6.01-Add-IPv6-support.patch b/perl/perl-http-daemon/HTTP-Daemon-6.01-Add-IPv6-support.patch new file mode 100644 index 0000000000..dd9d5ee2a9 --- /dev/null +++ b/perl/perl-http-daemon/HTTP-Daemon-6.01-Add-IPv6-support.patch @@ -0,0 +1,305 @@ +From 067faffb8e596a53c9ac2ed7e571472f7a163681 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Mon, 16 Jan 2017 16:13:08 +0100 +Subject: [PATCH] Add IPv6 support +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This patch ports the code from IO::Socket::INET to IO::Socket::IP in +order to support IPv6. + +CPAN RT #91699, #71395. + +Signed-off-by: Petr Písař +--- + Makefile.PL | 1 + + README | 24 ++++++++++++------------ + lib/HTTP/Daemon.pm | 43 ++++++++++++++++++++++++++++--------------- + t/chunked.t | 34 +++++++++++++++++++++++----------- + 4 files changed, 64 insertions(+), 38 deletions(-) + +diff --git a/Makefile.PL b/Makefile.PL +index 09c7e86..85d5712 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -14,6 +14,7 @@ WriteMakefile( + PREREQ_PM => { + 'Sys::Hostname' => 0, + 'IO::Socket' => 0, ++ 'IO::Socket::IP' => 0, + 'HTTP::Request' => 6, + 'HTTP::Response' => 6, + 'HTTP::Status' => 6, +diff --git a/README b/README +index be5a20a..ddb3b6e 100644 +--- a/README ++++ b/README +@@ -24,12 +24,12 @@ SYNOPSIS + DESCRIPTION + Instances of the `HTTP::Daemon' class are HTTP/1.1 servers that listen + on a socket for incoming requests. The `HTTP::Daemon' is a subclass of +- `IO::Socket::INET', so you can perform socket operations directly on it ++ `IO::Socket::IP', so you can perform socket operations directly on it + too. + + The accept() method will return when a connection from a client is + available. The returned value will be an `HTTP::Daemon::ClientConn' +- object which is another `IO::Socket::INET' subclass. Calling the ++ object which is another `IO::Socket::IP' subclass. Calling the + get_request() method on this object will read data from the client and + return an `HTTP::Request' object. The ClientConn object also provide + methods to send back various responses. +@@ -40,13 +40,13 @@ DESCRIPTION + responses that conform to the HTTP/1.1 protocol. + + The following methods of `HTTP::Daemon' are new (or enhanced) relative +- to the `IO::Socket::INET' base class: ++ to the `IO::Socket::IP' base class: + + $d = HTTP::Daemon->new + $d = HTTP::Daemon->new( %opts ) + The constructor method takes the same arguments as the +- `IO::Socket::INET' constructor, but unlike its base class it can +- also be called without any arguments. The daemon will then set up a ++ `IO::Socket::IP' constructor, but unlike its base class it can also ++ be called without any arguments. The daemon will then set up a + listen queue of 5 connections and allocate some random port number. + + A server that wants to bind to some specific address on the standard +@@ -57,8 +57,8 @@ DESCRIPTION + LocalPort => 80, + ); + +- See IO::Socket::INET for a description of other arguments that can +- be used configure the daemon during construction. ++ See IO::Socket::IP for a description of other arguments that can be ++ used configure the daemon during construction. + + $c = $d->accept + $c = $d->accept( $pkg ) +@@ -71,7 +71,7 @@ DESCRIPTION + + The accept method will return `undef' if timeouts have been enabled + and no connection is made within the given time. The timeout() +- method is described in IO::Socket. ++ method is described in IO::Socket::IP. + + In list context both the client object and the peer address will be + returned; see the description of the accept method IO::Socket for +@@ -89,9 +89,9 @@ DESCRIPTION + The default is the string "libwww-perl-daemon/#.##" where "#.##" is + replaced with the version number of this module. + +- The `HTTP::Daemon::ClientConn' is a `IO::Socket::INET' subclass. +- Instances of this class are returned by the accept() method of +- `HTTP::Daemon'. The following methods are provided: ++ The `HTTP::Daemon::ClientConn' is a `IO::Socket::IP' subclass. Instances ++ of this class are returned by the accept() method of `HTTP::Daemon'. The ++ following methods are provided: + + $c->get_request + $c->get_request( $headers_only ) +@@ -227,7 +227,7 @@ DESCRIPTION + SEE ALSO + RFC 2616 + +- IO::Socket::INET, IO::Socket ++ IO::Socket::IP, IO::Socket + + COPYRIGHT + Copyright 1996-2003, Gisle Aas +diff --git a/lib/HTTP/Daemon.pm b/lib/HTTP/Daemon.pm +index 27a7bf4..0e22b77 100644 +--- a/lib/HTTP/Daemon.pm ++++ b/lib/HTTP/Daemon.pm +@@ -5,8 +5,10 @@ use vars qw($VERSION @ISA $PROTO $DEBUG); + + $VERSION = "6.01"; + +-use IO::Socket qw(AF_INET INADDR_ANY INADDR_LOOPBACK inet_ntoa); +-@ISA=qw(IO::Socket::INET); ++use Socket qw(AF_INET AF_INET6 INADDR_ANY IN6ADDR_ANY ++ INADDR_LOOPBACK IN6ADDR_LOOPBACK inet_ntop sockaddr_family); ++use IO::Socket::IP; ++@ISA=qw(IO::Socket::IP); + + $PROTO = "HTTP/1.1"; + +@@ -40,15 +42,26 @@ sub url + my $self = shift; + my $url = $self->_default_scheme . "://"; + my $addr = $self->sockaddr; +- if (!$addr || $addr eq INADDR_ANY) { ++ if (!$addr || $addr eq INADDR_ANY || $addr eq IN6ADDR_ANY) { + require Sys::Hostname; + $url .= lc Sys::Hostname::hostname(); + } + elsif ($addr eq INADDR_LOOPBACK) { +- $url .= inet_ntoa($addr); ++ $url .= inet_ntop(AF_INET, $addr); ++ } ++ elsif ($addr eq IN6ADDR_LOOPBACK) { ++ $url .= '[' . inet_ntop(AF_INET6, $addr) . ']'; + } + else { +- $url .= gethostbyaddr($addr, AF_INET) || inet_ntoa($addr); ++ my $host = $addr->sockhostname; ++ if (!defined $host) { ++ if (sockaddr_family($addr) eq AF_INET6) { ++ $host = '[' . inet_ntop(AF_INET6, $addr) . ']'; ++ } else { ++ $host = inet_ntop(AF_INET6, $addr); ++ } ++ } ++ $url .= $host; + } + my $port = $self->sockport; + $url .= ":$port" if $port != $self->_default_port; +@@ -77,8 +90,8 @@ sub product_tokens + package HTTP::Daemon::ClientConn; + + use vars qw(@ISA $DEBUG); +-use IO::Socket (); +-@ISA=qw(IO::Socket::INET); ++use IO::Socket::IP (); ++@ISA=qw(IO::Socket::IP); + *DEBUG = \$HTTP::Daemon::DEBUG; + + use HTTP::Request (); +@@ -645,12 +658,12 @@ HTTP::Daemon - a simple http server class + + Instances of the C class are HTTP/1.1 servers that + listen on a socket for incoming requests. The C is a +-subclass of C, so you can perform socket operations ++subclass of C, so you can perform socket operations + directly on it too. + + The accept() method will return when a connection from a client is + available. The returned value will be an C +-object which is another C subclass. Calling the ++object which is another C subclass. Calling the + get_request() method on this object will read data from the client and + return an C object. The ClientConn object also provide + methods to send back various responses. +@@ -661,7 +674,7 @@ desirable. Also note that the user is responsible for generating + responses that conform to the HTTP/1.1 protocol. + + The following methods of C are new (or enhanced) relative +-to the C base class: ++to the C base class: + + =over 4 + +@@ -670,7 +683,7 @@ to the C base class: + =item $d = HTTP::Daemon->new( %opts ) + + The constructor method takes the same arguments as the +-C constructor, but unlike its base class it can also ++C constructor, but unlike its base class it can also + be called without any arguments. The daemon will then set up a listen + queue of 5 connections and allocate some random port number. + +@@ -682,7 +695,7 @@ HTTP port will be constructed like this: + LocalPort => 80, + ); + +-See L for a description of other arguments that can ++See L for a description of other arguments that can + be used configure the daemon during construction. + + =item $c = $d->accept +@@ -699,7 +712,7 @@ class a subclass of C. + + The accept method will return C if timeouts have been enabled + and no connection is made within the given time. The timeout() method +-is described in L. ++is described in L. + + In list context both the client object and the peer address will be + returned; see the description of the accept method L for +@@ -721,7 +734,7 @@ replaced with the version number of this module. + + =back + +-The C is a C ++The C is a C + subclass. Instances of this class are returned by the accept() method + of C. The following methods are provided: + +@@ -895,7 +908,7 @@ Return a reference to the corresponding C object. + + RFC 2616 + +-L, L ++L, L + + =head1 COPYRIGHT + +diff --git a/t/chunked.t b/t/chunked.t +index e11799f..c274b11 100644 +--- a/t/chunked.t ++++ b/t/chunked.t +@@ -95,18 +95,30 @@ my $can_fork = $Config{d_fork} || + my $tests = @TESTS; + my $tport = 8333; + +-my $tsock = IO::Socket::INET->new(LocalAddr => '0.0.0.0', +- LocalPort => $tport, +- Listen => 1, +- ReuseAddr => 1); ++my @addresses = ( ++ { server => '::', client => '::1' }, ++ { server => '0.0.0.0', client => '127.0.0.1' } ++); ++my $family; ++for my $id (0..$#addresses) { ++ my $tsock = IO::Socket::IP->new(LocalAddr => $addresses[$id]->{server}, ++ LocalPort => $tport, ++ Listen => 1, ++ ReuseAddr => 1); ++ if ($tsock) { ++ close $tsock; ++ $family = $id; ++ last; ++ } ++} ++ + if (!$can_fork) { + plan skip_all => "This system cannot fork"; + } +-elsif (!$tsock) { +- plan skip_all => "Cannot listen on 0.0.0.0:$tport"; ++elsif (!defined $family) { ++ plan skip_all => "Cannot listen on unspecifed address and port $tport"; + } + else { +- close $tsock; + plan tests => $tests; + } + +@@ -132,9 +144,9 @@ if ($pid = fork) { + open my $fh, "| socket localhost $tport" or die; + print $fh $test; + } +- use IO::Socket::INET; +- my $sock = IO::Socket::INET->new( +- PeerAddr => "127.0.0.1", ++ use IO::Socket::IP; ++ my $sock = IO::Socket::IP->new( ++ PeerAddr => $addresses[$family]->{client}, + PeerPort => $tport, + ) or die; + if (0) { +@@ -158,7 +170,7 @@ if ($pid = fork) { + } else { + die "cannot fork: $!" unless defined $pid; + my $d = HTTP::Daemon->new( +- LocalAddr => '0.0.0.0', ++ LocalAddr => $addresses[$family]->{server}, + LocalPort => $tport, + ReuseAddr => 1, + ) or die; +-- +2.7.4 + diff --git a/perl/perl-http-daemon/HTTP-Daemon-6.01-Handle-undef-and-empty-LocalAddr.patch b/perl/perl-http-daemon/HTTP-Daemon-6.01-Handle-undef-and-empty-LocalAddr.patch new file mode 100644 index 0000000000..f6fe28976f --- /dev/null +++ b/perl/perl-http-daemon/HTTP-Daemon-6.01-Handle-undef-and-empty-LocalAddr.patch @@ -0,0 +1,48 @@ +From b54702ab21edbf1ea0dbc00d978aecc89e5764d6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Mon, 18 Sep 2017 15:21:16 +0200 +Subject: [PATCH] Handle undef and empty LocalAddr +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +IO::Socket::INET interprets undefined and empty string LocalAddr +arguments as an unspecified address while IO::Socket::IP returns an +error. This seems to be one of the differences between the two +Socket implementations. Recent IO::Socket::IP (0.39) accepts undefined +value, but still bail outs on an empty string. + +To improve compatibility, this patch adds a special handling for these +two values to be accepted as an unspecified value. Though this should +be corrected on IO::Socket:IP side probably. + +CPAN RT#91699 +CPAN RT#123069 + +Signed-off-by: Petr Písař +--- + lib/HTTP/Daemon.pm | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/lib/HTTP/Daemon.pm b/lib/HTTP/Daemon.pm +index 0e22b77..1e9d48e 100644 +--- a/lib/HTTP/Daemon.pm ++++ b/lib/HTTP/Daemon.pm +@@ -18,6 +18,14 @@ sub new + my($class, %args) = @_; + $args{Listen} ||= 5; + $args{Proto} ||= 'tcp'; ++ # Handle undefined or empty local address the same way as ++ # IO::Socket::INET -- use unspecified address ++ for my $key (qw(LocalAddr LocalHost)) { ++ if (exists $args{$key} && ++ (!defined($args{$key}) || $args{$key} eq '')) { ++ delete $args{$key}; ++ } ++ } + return $class->SUPER::new(%args); + } + +-- +2.13.5 + diff --git a/perl/perl-http-daemon/PKGBUILD b/perl/perl-http-daemon/PKGBUILD new file mode 100644 index 0000000000..fb7b7e13d1 --- /dev/null +++ b/perl/perl-http-daemon/PKGBUILD @@ -0,0 +1,43 @@ +# POWER Maintainer: Alexander Baldeck +# $Id$ +# Maintainer: Eric Bélanger + +pkgname=perl-http-daemon +pkgver=6.01 +pkgrel=6 +pkgdesc="Simple http server class" +arch=('any') +url='https://metacpan.org/pod/HTTP::Daemon' +license=('PerlArtistic' 'GPL') +depends=('perl' 'perl-http-date' 'perl-http-message' 'perl-lwp-mediatypes') +options=('!emptydirs') +source=(https://cpan.metacpan.org/authors/id/G/GA/GAAS/HTTP-Daemon-${pkgver}.tar.gz + HTTP-Daemon-6.01-Add-IPv6-support.patch + HTTP-Daemon-6.01-Handle-undef-and-empty-LocalAddr.patch) +sha256sums=('43fd867742701a3f9fcc7bd59838ab72c6490c0ebaf66901068ec6997514adc2' + 'a4bac445248fb494f88e7189a74f1a5d916ae7778edd089ed5a97e0d443e1ebf' + '3c46084a36f4a3c3f83e7ed8f4393a6588a5c8d0dbdc948a4f0d6fddc65005ec') + +prepare() { + cd "${srcdir}/HTTP-Daemon-${pkgver}" + patch -p1 < ../HTTP-Daemon-6.01-Add-IPv6-support.patch + patch -p1 < ../HTTP-Daemon-6.01-Handle-undef-and-empty-LocalAddr.patch +} + +build() { + cd "${srcdir}/HTTP-Daemon-${pkgver}" + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "${srcdir}/HTTP-Daemon-${pkgver}" + make test +} + +package() { + cd "${srcdir}/HTTP-Daemon-${pkgver}" + make DESTDIR="${pkgdir}" install +} + +# vim: ts=2 sw=2 et: diff --git a/perl/perl-http-date/PKGBUILD b/perl/perl-http-date/PKGBUILD new file mode 100644 index 0000000000..6accb6e795 --- /dev/null +++ b/perl/perl-http-date/PKGBUILD @@ -0,0 +1,31 @@ +# POWER Maintainer: Alexander Baldeck +# $Id$ +# Maintainer: + +pkgname=perl-http-date +pkgver=6.02 +pkgrel=5 +pkgdesc="Date conversion routines" +arch=('any') +url="http://search.cpan.org/dist/HTTP-Date" +license=('PerlArtistic' 'GPL') +depends=('perl') +options=('!emptydirs') +source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTTP-Date-$pkgver.tar.gz) +sha1sums=('85f8dbcad22f2680775a185ce91a42c89e0ad2a8') + +build() { + cd HTTP-Date-$pkgver + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd HTTP-Date-$pkgver + make test +} + +package() { + cd HTTP-Date-$pkgver + make DESTDIR="$pkgdir" install +} diff --git a/perl/perl-http-message/PKGBUILD b/perl/perl-http-message/PKGBUILD new file mode 100644 index 0000000000..24c6648cb2 --- /dev/null +++ b/perl/perl-http-message/PKGBUILD @@ -0,0 +1,38 @@ +# POWER Maintainer: Alexander Baldeck +# $Id$ +# Maintainer: Felix Yan +# Contributor: Justin "juster" Davis +# Generator : pbjam 0.01 + +pkgname=perl-http-message +pkgver=6.18 +pkgrel=2 +pkgdesc="HTTP style messages" +arch=('any') +url='http://search.cpan.org/dist/HTTP-Message' +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl' 'perl-encode-locale' 'perl-http-date' 'perl-lwp-mediatypes' 'perl-uri' + 'perl-io-html') +makedepends=('perl-try-tiny') +conflicts=('perl-libwww<6') +source=("http://search.cpan.org/CPAN/authors/id/O/OA/OALDERS/HTTP-Message-$pkgver.tar.gz") +sha512sums=('46a5d4ee6af1bdb7b320ae8ad430b4dbff9a198a60d025703fa64a83284dfe6bee08041fc43372b6ea724ab973f84c3cbca5353d6158bdfbbed612577de61206') + +build() { + cd HTTP-Message-$pkgver + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd HTTP-Message-$pkgver + make test +} + +package() { + cd HTTP-Message-$pkgver + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: diff --git a/perl/perl-inc-latest/PKGBUILD b/perl/perl-inc-latest/PKGBUILD new file mode 100644 index 0000000000..aa5ed5c2a2 --- /dev/null +++ b/perl/perl-inc-latest/PKGBUILD @@ -0,0 +1,31 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Felix Yan + +pkgname=perl-inc-latest +pkgver=0.500 +pkgrel=4 +pkgdesc="Build, test, and install Perl modules" +arch=('any') +url="https://github.com/dagolden/inc-latest" +license=('Apache') +depends=('perl') +checkdepends=('perl-cpan-meta') +options=('!emptydirs') +source=("http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/inc-latest-$pkgver.tar.gz") +sha512sums=('b312d1dfce963322796bc0127f0ecd82c12baacf9e5df40d9acc093221edd80f3696ce6d9f185ed24b21983147363d1d0ff3e273b8b5ce7559a6f16983a1385c') + +build() { + cd inc-latest-$pkgver + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd inc-latest-$pkgver + make test +} + +package() { + cd inc-latest-$pkgver + make install DESTDIR="$pkgdir" +} diff --git a/perl/perl-io-html/PKGBUILD b/perl/perl-io-html/PKGBUILD new file mode 100644 index 0000000000..af6d954fab --- /dev/null +++ b/perl/perl-io-html/PKGBUILD @@ -0,0 +1,33 @@ +# POWER Maintainer: Alexander Baldeck +# $Id$ +# Maintainer: Felix Yan + +pkgname=perl-io-html +pkgver=1.001 +pkgrel=4 +pkgdesc="Open an HTML file with automatic charset detection" +arch=('any') +url='http://search.cpan.org/dist/IO-HTML' +depends=('perl') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +source=(http://search.cpan.org/CPAN/authors/id/C/CJ/CJM/IO-HTML-$pkgver.tar.gz) +sha1sums=('210b60f438502744c9c31a82329b19a6f9aecf63') + +build() { + export PERL_MM_USE_DEFAULT=1 PERL_MM_OPT="INSTALLDIRS=vendor" \ + PERL_MB_OPT="--installdirs vendor" + cd IO-HTML-$pkgver + perl Makefile.PL + make +} + +check() { + cd IO-HTML-$pkgver + make test +} + +package() { + cd IO-HTML-$pkgver + make DESTDIR="$pkgdir" install +} diff --git a/perl/perl-io-socket-inet6/PKGBUILD b/perl/perl-io-socket-inet6/PKGBUILD new file mode 100644 index 0000000000..1476deab90 --- /dev/null +++ b/perl/perl-io-socket-inet6/PKGBUILD @@ -0,0 +1,50 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Florian Pritz +# Generator : CPANPLUS::Dist::Arch 1.18 + +pkgname='perl-io-socket-inet6' +pkgver=2.72 +pkgrel=4 +pkgdesc="Object interface for AF_INET|AF_INET6 domain sockets" +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl-socket6>=0.12') +makedepends=() +url='http://search.cpan.org/dist/IO-Socket-INET6' +source=("http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-$pkgver.tar.gz") +md5sums=('510ddc1bd75a8340ca7226123fb545c1') +sha512sums=('c6dc0bbcc81682d317597de26d5023de84781e4bd2af224145cc4980db7fcbc93295a7d0a80c1eaa649c6aebf4057d0b0159f47e6a6379d4b545b49305f28a37') +_distdir="IO-Socket-INET6-$pkgver" + +build() { + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor" \ + PERL_MB_OPT="--installdirs vendor" \ + MODULEBUILDRC=/dev/null + + cd "$_distdir" + /usr/bin/perl Makefile.PL + make + ) +} + +check() { + cd "$_distdir" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make test + ) +} + +package() { + cd "$_distdir" + make DESTDIR="$pkgdir" install + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} + +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: +# vim:set ts=2 sw=2 et: diff --git a/perl/perl-io-socket-ssl/PKGBUILD b/perl/perl-io-socket-ssl/PKGBUILD new file mode 100644 index 0000000000..e730940c23 --- /dev/null +++ b/perl/perl-io-socket-ssl/PKGBUILD @@ -0,0 +1,31 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Eric Bélanger + +pkgname=perl-io-socket-ssl +pkgver=2.060 +pkgrel=1 +pkgdesc="Nearly transparent SSL encapsulation for IO::Socket::INET" +arch=('any') +license=('GPL' 'PerlArtistic') +url="http://search.cpan.org/dist/IO-Socket-SSL/" +depends=('perl-net-ssleay' 'perl' 'perl-uri') +checkdepends=('perl-io-socket-inet6') +options=('!emptydirs') +source=(http://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-${pkgver}.tar.gz) +sha512sums=('1a1e29f8a4b912bd3643509356c66b3a567ae41bb0ac9eb30f6ca97eb68bf9507e20c0fb8512f5dfd309accd6cfba61811b8d637f5e991aaa0a250a906fcb95c') + +build() { + cd IO-Socket-SSL-${pkgver} + yes | perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd IO-Socket-SSL-${pkgver} + make test || warning "TLS 1.3 related errors" +} + +package() { + cd IO-Socket-SSL-${pkgver} + make DESTDIR="${pkgdir}" install +} diff --git a/perl/perl-locale-gettext/PKGBUILD b/perl/perl-locale-gettext/PKGBUILD new file mode 100644 index 0000000000..0109c0f5f6 --- /dev/null +++ b/perl/perl-locale-gettext/PKGBUILD @@ -0,0 +1,40 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Giovanni Scafora +# Contributor: Mark Rosenstand +# Contributor: Paul Mattal + +pkgname=perl-locale-gettext +_realname=Locale-gettext +pkgver=1.07 +pkgrel=6 +pkgdesc="Permits access from Perl to the gettext() family of functions" +arch=('x86_64' 'powerpc64le') +license=('GPL' 'PerlArtistic') +url="http://search.cpan.org/dist/${_realname}/" +depends=('gettext' 'perl') +options=(!emptydirs) +source=("http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/${_realname}-${pkgver}.tar.gz") +md5sums=('bc652758af65c24500f1d06a77415019') + +build() { + cd "${srcdir}/${_realname}-${pkgver}" + + # install module in vendor directories. + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "${srcdir}/${_realname}-${pkgver}" + + make test +} + +package() { + cd "${srcdir}/${_realname}-${pkgver}" + make install DESTDIR="${pkgdir}" + + # remove perllocal.pod and .packlist + find "${pkgdir}" -name perllocal.pod -delete + find "${pkgdir}" -name .packlist -delete +} diff --git a/perl/perl-lwp-mediatypes/PKGBUILD b/perl/perl-lwp-mediatypes/PKGBUILD new file mode 100644 index 0000000000..2da1861b9a --- /dev/null +++ b/perl/perl-lwp-mediatypes/PKGBUILD @@ -0,0 +1,31 @@ +# POWER Maintainer: Alexander Baldeck +# $Id$ +# Maintainer: Eric Bélanger + +pkgname=perl-lwp-mediatypes +pkgver=6.02 +pkgrel=5 +pkgdesc="Guess the media type of a file or a URL" +arch=('any') +url="https://metacpan.org/release/LWP-MediaTypes" +depends=('perl') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/LWP-MediaTypes-${pkgver}.tar.gz) +sha1sums=('f56891f4e718a5f1f16f09ae37d32e454095cbed') + +build() { + cd "${srcdir}/LWP-MediaTypes-${pkgver}" + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "${srcdir}/LWP-MediaTypes-${pkgver}" + make test +} + +package() { + cd "${srcdir}/LWP-MediaTypes-${pkgver}" + make DESTDIR="$pkgdir" install +} diff --git a/perl/perl-mailtools/PKGBUILD b/perl/perl-mailtools/PKGBUILD new file mode 100644 index 0000000000..e179d3db1e --- /dev/null +++ b/perl/perl-mailtools/PKGBUILD @@ -0,0 +1,30 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Felix Yan + +pkgname=perl-mailtools +pkgver=2.20 +pkgrel=2 +pkgdesc="Various e-mail related modules" +arch=('any') +url="https://metacpan.org/release/MailTools" +license=('PerlArtistic' 'GPL') +depends=('perl-timedate') +options=('!emptydirs') +source=("http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-$pkgver.tar.gz") +sha512sums=('fb9a330c5b5795d68fc0e5bb6c5f1d7d525e8e1e87996f6fac7120e46bc22897c9f0c23f121866cb10d7ce4ffd9ac979b31602dbec379a8d15e8257a2c725a5e') + +build() { + cd MailTools-$pkgver + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd MailTools-$pkgver + make test +} + +package() { + cd MailTools-$pkgver + make DESTDIR="$pkgdir" install +} diff --git a/perl/perl-mime-charset/PKGBUILD b/perl/perl-mime-charset/PKGBUILD new file mode 100644 index 0000000000..f35b3215f4 --- /dev/null +++ b/perl/perl-mime-charset/PKGBUILD @@ -0,0 +1,41 @@ +# POWER Maintainer: Alexander Baldeck +# $Id$ +# Maintainer: Rémy Oudompheng +# Contributor: John D Jones III AKA jnbek +# Generator : CPANPLUS::Dist::Arch 1.32 + +pkgname='perl-mime-charset' +_dist="MIME-Charset" +pkgver='1.012.2' +pkgrel=4 +pkgdesc="Charset Information for MIME" +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl') +checkdepends=('perl-test-pod') +url='https://metacpan.org/release/MIME-Charset' +source=("http://search.cpan.org/CPAN/authors/id/N/NE/NEZUMI/${_dist}-${pkgver}.tar.gz") +md5sums=('71440416376248c31aa3bef753fae28d') +sha512sums=('2273bf0b86eb042e5aa8bcf958eefefde7dce6701eea5ae8c0fe9997e7d3e90d837a7791ade30f84536a15116175c796daee60da6625f409d214844dfedfde4d') + +build() { + cd "${srcdir}/${_dist}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + perl Makefile.PL + make +} + +check() { + cd "${srcdir}/${_dist}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 + make test +} + +package() { + cd "${srcdir}/${_dist}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + make install INSTALLDIRS=vendor DESTDIR="$pkgdir" +} diff --git a/perl/perl-module-build/PKGBUILD b/perl/perl-module-build/PKGBUILD new file mode 100644 index 0000000000..450d5706eb --- /dev/null +++ b/perl/perl-module-build/PKGBUILD @@ -0,0 +1,33 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Felix Yan +# Contributor: Jan Alexander Steffens (heftig) +# Contributor: Alan Young + +pkgname=perl-module-build +pkgver=0.4229 +pkgrel=1 +pkgdesc="Build, test, and install Perl modules" +arch=('any') +url="http://search.cpan.org/dist/Module-Build" +license=('PerlArtistic' 'GPL') +depends=('perl' 'perl-cpan-meta' 'perl-inc-latest') +checkdepends=('perl-par-dist' 'perl-archive-zip') +options=('!emptydirs') +source=(http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/Module-Build-$pkgver.tar.gz) +sha512sums=('51e0d73cecf450062121c3223b1a4c6f8a8c260fc2345d1c1a5e13ddcbd2b7bc2578411ac254420e27720b9e00a8efc9a9daa3159e9cba5338a188734b35c738') + +build() { + cd Module-Build-$pkgver + perl Build.PL installdirs=vendor + perl Build +} + +check() { + cd Module-Build-$pkgver + perl Build test +} + +package() { + cd Module-Build-$pkgver + perl Build install destdir="$pkgdir" +} diff --git a/perl/perl-net-ssleay/PKGBUILD b/perl/perl-net-ssleay/PKGBUILD new file mode 100644 index 0000000000..26b854417f --- /dev/null +++ b/perl/perl-net-ssleay/PKGBUILD @@ -0,0 +1,52 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Levente Polyak +# Contributor: Giovanni Scafora +# Contributor: Manolis Tzanidakis + +pkgname=perl-net-ssleay +_cpanname=Net-SSLeay +pkgver=1.85 +pkgrel=2 +pkgdesc='Perl extension for using OpenSSL' +url='https://search.cpan.org/dist/Net-SSLeay/' +arch=(x86_64 powerpc64le) +license=('custom:BSD') +depends=('openssl') +makedepends=('chrpath') +replaces=('net-ssleay') +provides=('net-ssleay') +options=('!emptydirs') +source=(https://www.cpan.org/authors/id/M/MI/MIKEM/${_cpanname}-${pkgver}.tar.gz) +sha512sums=('74e0f2f56b707f1ff845c78c1fa7ce26a71b8f943bb99e994d4e065d1f42259fe4cd1a6a17d333459727534158f9541f116dbc8515122380807d9450b0faa26b') + +prepare() { + cd ${_cpanname}-${pkgver} + sed -i \ + -e "/\$opts->{optimize} = '-O2 -g';/d" \ + inc/Module/Install/PRIVATE/Net/SSLeay.pm +} + +build() { + cd ${_cpanname}-${pkgver} + export OPTIMIZE="${CFLAGS}" + export OPENSSL_PREFIX=/usr + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd ${_cpanname}-${pkgver} + make test +} + +package() { + cd ${_cpanname}-${pkgver} + + make install DESTDIR="${pkgdir}" + install -Dm 644 README "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + # strip rpath + find "${pkgdir}" -name '*.so' -exec chrpath -d '{}' \; +} + +# vim: ts=2 sw=2 et: diff --git a/perl/perl-par-dist/PKGBUILD b/perl/perl-par-dist/PKGBUILD new file mode 100644 index 0000000000..3d02dab208 --- /dev/null +++ b/perl/perl-par-dist/PKGBUILD @@ -0,0 +1,32 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Felix Yan +# Contributor: TDY +# Contributor: François Charette + +pkgname=perl-par-dist +pkgver=0.49 +pkgrel=4 +pkgdesc="Perl bindings to create and manipulate PAR distributions" +arch=('any') +url="http://search.cpan.org/dist/PAR-Dist/" +license=('GPL' 'PerlArtistic') +depends=('perl') +options=('!emptydirs') +source=("http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/PAR-Dist-$pkgver.tar.gz") +md5sums=('bd852113974544f3c8c107ab4055cf8c') + +build() { + cd "$srcdir/PAR-Dist-$pkgver" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$srcdir/PAR-Dist-$pkgver" + make test +} + +package() { + cd "$srcdir/PAR-Dist-$pkgver" + make install DESTDIR="$pkgdir" +} diff --git a/perl/perl-parse-yapp/PKGBUILD b/perl/perl-parse-yapp/PKGBUILD new file mode 100644 index 0000000000..0eed036c15 --- /dev/null +++ b/perl/perl-parse-yapp/PKGBUILD @@ -0,0 +1,27 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Sergej Pupykin +# Maintainer: Charles Mauch + +pkgname=perl-parse-yapp +pkgver=1.21 +pkgrel=1 +pkgdesc="Perl/CPAN Module Parse::Yapp : Generates OO LALR parser modules" +arch=("any") +url="http://search.cpan.org/dist/Parse-Yapp" +license=("GPL" "PerlArtistic") +depends=('perl') +source=("https://cpan.metacpan.org/authors/id/W/WB/WBRASWELL/Parse-Yapp-$pkgver.tar.gz") +sha256sums=('3810e998308fba2e0f4f26043035032b027ce51ce5c8a52a8b8e340ca65f13e5') + +build() { + cd "$srcdir"/Parse-Yapp-$pkgver + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +package() { + cd "$srcdir"/Parse-Yapp-$pkgver + make install DESTDIR="$pkgdir" + find "$pkgdir" -name '.packlist' -delete + find "$pkgdir" -name '*.pod' -delete +} diff --git a/perl/perl-perl4-corelibs/PKGBUILD b/perl/perl-perl4-corelibs/PKGBUILD new file mode 100644 index 0000000000..8d534be18c --- /dev/null +++ b/perl/perl-perl4-corelibs/PKGBUILD @@ -0,0 +1,31 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: + +pkgname=perl-perl4-corelibs +pkgver=0.004 +pkgrel=3 +pkgdesc="Libraries historically supplied with Perl 4" +arch=('any') +url="https://metacpan.org/release/Perl4-CoreLibs" +license=('PerlArtistic' 'GPL') +depends=('perl') +makedepends=('perl-module-build') +options=('!emptydirs') +source=("http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Perl4-CoreLibs-$pkgver.tar.gz") +sha512sums=('71083f1640e95559ee4bc5a7f1bbe6beacec048a073e211ab7f6ee4de26463f6ae3d87e99e00a41ea8f2f93a5e96367bafe907ef3367e400de35123c22eb7b88') + +build() { + cd Perl4-CoreLibs-$pkgver + perl Build.PL + ./Build +} + +check() { + cd Perl4-CoreLibs-$pkgver + ./Build test +} + +package() { + cd Perl4-CoreLibs-$pkgver + ./Build install installdirs=vendor destdir="$pkgdir" +} diff --git a/perl/perl-sgmls/PKGBUILD b/perl/perl-sgmls/PKGBUILD new file mode 100644 index 0000000000..27da54f6ee --- /dev/null +++ b/perl/perl-sgmls/PKGBUILD @@ -0,0 +1,53 @@ +# POWER Maintainer: Alexander Baldeck +# $Id$ +# Maintainer: Sergej Pupykin +# Contributor: Sergej Pupykin + +_cpanname=SGMLSpm +pkgname=perl-sgmls +epoch=1 +pkgver=1.1 +pkgrel=5 +pkgdesc="A Post-Processor for SGMLS and NSGMLS" +arch=('any') +url="http://search.cpan.org/dist/SGMLSpm" +license=('GPL' 'PerlArtistic') +depends=('perl') +options=('!emptydirs' 'docs') +source=(http://search.cpan.org/CPAN/authors/id/R/RA/RAAB/SGMLSpm-$pkgver.tar.gz) +md5sums=('746c74ae969992cedb1a2879b4168090') + +prepare() { + cd "$srcdir/$_cpanname-$pkgver" + find . -type f -exec chmod 0644 {} \; +} + +prepareEnvironment() { + cd "$srcdir/$_cpanname-$pkgver" + export \ + PERL_MM_USE_DEFAULT=1 \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$pkgdir"'" \ + PERL_MB_OPT="--installdirs vendor --destdir '"$pkgdir"'" \ + MODULEBUILDRC=/dev/null +} + +build() { + prepareEnvironment + /usr/bin/perl Makefile.PL + make +} + +check() { + prepareEnvironment + make test +} + +package() { + prepareEnvironment + make install + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete + + # FS#51874 + ln -sv /usr/bin/vendor_perl/sgmlspl.pl $pkgdir/usr/bin/sgmlspl +} diff --git a/perl/perl-socket6/PKGBUILD b/perl/perl-socket6/PKGBUILD new file mode 100644 index 0000000000..9770e39808 --- /dev/null +++ b/perl/perl-socket6/PKGBUILD @@ -0,0 +1,31 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Felix Yan +# Contributor: Florian Pritz + +pkgname=perl-socket6 +pkgver=0.29 +pkgrel=1 +pkgdesc="A getaddrinfo/getnameinfo support module" +arch=(x86_64 powerpc64le) +url='http://search.cpan.org/dist/Socket6' +license=('PerlArtistic' 'GPL') +depends=('perl') +options=('!emptydirs') +source=(http://search.cpan.org/CPAN/authors/id/U/UM/UMEMOTO/Socket6-$pkgver.tar.gz) +sha512sums=('51d05a04563519010f515a50fb1082c4e72eb4537137ad55f117458c71ec8429a5674083bd68adcbbf2e57632a1cb1bf60693ea98364e7f96c826ff8c9655b33') + +build() { + cd Socket6-$pkgver + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd Socket6-$pkgver + make test +} + +package() { + cd Socket6-$pkgver + make DESTDIR="$pkgdir" install +} diff --git a/perl/perl-term-readkey/PKGBUILD b/perl/perl-term-readkey/PKGBUILD new file mode 100644 index 0000000000..37f02a6c30 --- /dev/null +++ b/perl/perl-term-readkey/PKGBUILD @@ -0,0 +1,36 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Felix Yan +# Contributor: kevin +# Contributor: Wael Nasreddine +# Contributor: Francois Charette + +pkgname=perl-term-readkey +_realname=TermReadKey +pkgver=2.38 +pkgrel=1 +pkgdesc="Provides simple control over terminal driver modes" +arch=('x86_64' 'powerpc64le') +license=('custom') +depends=('perl' 'glibc') +url="http://search.cpan.org/~jstowe/${_realname}/" +options=('!emptydirs') +source=(http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/${_realname}-$pkgver.tar.gz) +sha512sums=('fb09f013f9f0d8a4397e39f6f3db7a6d023259219af8f76744094e396437a01b19141b3cdb39a158d3b518903fb010088bc37406763bfbeb3fcab810bb0bb157') + +build() { + cd "${srcdir}/TermReadKey-$pkgver" + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "${srcdir}/TermReadKey-$pkgver" + make test +} + +package() { + cd "${srcdir}/TermReadKey-$pkgver" + make DESTDIR="${pkgdir}" install + install -d "${pkgdir}/usr/share/licenses/$pkgname/" + head -7 README > "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/perl/perl-text-charwidth/PKGBUILD b/perl/perl-text-charwidth/PKGBUILD new file mode 100644 index 0000000000..8a9592636c --- /dev/null +++ b/perl/perl-text-charwidth/PKGBUILD @@ -0,0 +1,32 @@ +# POWER Maintainer: Alexander Baldeck +# $Id$ +# Maintainer: Sergej Pupykin +# Maintainer: Charles Mauch + +pkgname=perl-text-charwidth +pkgver=0.04 +pkgrel=16 +pkgdesc="Perl/CPAN Module Text::CharWidth" +arch=("x86_64" "powerpc64le") +url="http://search.cpan.org/dist/Text-CharWidth" +license=("GPL" "PerlArtistic") +options=('!emptydirs') +source=("https://www.cpan.org/authors/id/K/KU/KUBOTA/Text-CharWidth-${pkgver}.tar.gz") +sha256sums=('abded5f4fdd9338e89fd2f1d8271c44989dae5bf50aece41b6179d8e230704f8') + +build() { + cd Text-CharWidth-${pkgver} + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + + make +} + +package() { + cd Text-CharWidth-${pkgver} + + make install DESTDIR="$pkgdir" + + find "$pkgdir" -name '.packlist' -delete + find "$pkgdir" -name '*.pod' -delete +} diff --git a/perl/perl-text-wrapi18n/PKGBUILD b/perl/perl-text-wrapi18n/PKGBUILD new file mode 100644 index 0000000000..83a8077302 --- /dev/null +++ b/perl/perl-text-wrapi18n/PKGBUILD @@ -0,0 +1,33 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Thorsten Töpper +# Contributor: Aaron Griffin + +pkgname=perl-text-wrapi18n +_realname=Text-WrapI18N +pkgver=0.06 +pkgrel=8 +pkgdesc="Line wrapping module with support for multibyte, fullwidth, and combining characters and languages without whitespaces between words" +arch=('any') +license=('GPL' 'PerlArtistic') +url="http://search.cpan.org/dist/${_realname}/" +depends=('perl-text-charwidth') +options=('!emptydirs') +source=("http://search.cpan.org/CPAN/authors/id/K/KU/KUBOTA/${_realname}-${pkgver}.tar.gz") +md5sums=('0799c16a00926e6c18d400c2e2861d5f') + +build() { + cd ${srcdir}/${_realname}-${pkgver} + # install module in vendor directories. + perl Makefile.PL INSTALLDIRS=vendor + make + make test +} + +package() { + cd ${srcdir}/${_realname}-${pkgver} + make DESTDIR=${pkgdir} install + + # remove perllocal.pod, .packlist, and empty dirs: + find ${pkgdir} -name '.packlist' -delete + find ${pkgdir} -name 'perllocal.pod' -delete +} diff --git a/perl/perl-timedate/PKGBUILD b/perl/perl-timedate/PKGBUILD new file mode 100644 index 0000000000..33c2ebf2f6 --- /dev/null +++ b/perl/perl-timedate/PKGBUILD @@ -0,0 +1,34 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Felix Yan +# Contributor: Kevin Piche +# Contributor: Manolis Tzanidakis + +pkgname=perl-timedate +pkgver=2.30 +pkgrel=5 +pkgdesc="Date formating subroutines" +arch=('any') +license=('PerlArtistic') +url="http://search.cpan.org/dist/TimeDate/" +depends=('perl') +replaces=('timedate') +provides=('timedate') +options=('!emptydirs') +source=("https://www.cpan.org/authors/id/G/GB/GBARR/TimeDate-$pkgver.tar.gz") +md5sums=('b1d91153ac971347aee84292ed886c1c') + +build() { + cd TimeDate-$pkgver + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd TimeDate-$pkgver + make test +} + +package() { + cd TimeDate-$pkgver + make install DESTDIR="$pkgdir" +} diff --git a/perl/perl-try-tiny/PKGBUILD b/perl/perl-try-tiny/PKGBUILD new file mode 100644 index 0000000000..bf9f47b972 --- /dev/null +++ b/perl/perl-try-tiny/PKGBUILD @@ -0,0 +1,33 @@ +# POWER Maintainer: Alexander Baldeck +# $Id$ +# Maintainer: Felix Yan + +pkgname=perl-try-tiny +pkgver=0.30 +pkgrel=2 +pkgdesc="Minimal try/catch with proper localization of \$@" +arch=('any') +url="http://search.cpan.org/dist/Try-Tiny" +license=('MIT') +depends=('perl') +options=('!emptydirs') +source=("http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Try-Tiny-${pkgver}.tar.gz") +sha512sums=('f523736ab0504ca0f7150be312e62988c4b9473a9e8469b0746dc8364945e2922c64c92e95e6c2b5792c5d6399dabea3d00aa45c065155b95519d5658a07216c') + +build() { + cd Try-Tiny-${pkgver} + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd Try-Tiny-${pkgver} + make test +} + +package() { + cd Try-Tiny-${pkgver} + make DESTDIR="$pkgdir" install + # upstream typo :/ + install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/perl/perl-unicode-linebreak/PKGBUILD b/perl/perl-unicode-linebreak/PKGBUILD new file mode 100644 index 0000000000..6cd706a0b2 --- /dev/null +++ b/perl/perl-unicode-linebreak/PKGBUILD @@ -0,0 +1,52 @@ +# POWER Maintainer: Alexander Baldeck +# $ID$ +# Maintainer: Rémy Oudompheng + +pkgname=perl-unicode-linebreak +_dist=Unicode-LineBreak +pkgver=2018.003 +pkgrel=1 +pkgdesc="UAX #14 Unicode Line Breaking Algorithm" +arch=('x86_64' 'powerpc64le') +url="https://metacpan.org/release/${_dist}" +license=('PerlArtistic' 'GPL') +depends=('perl' 'perl-mime-charset' 'libthai') +checkdepends=('perl-test-pod') +options=('!emptydirs') +source=(https://cpan.metacpan.org/authors/id/N/NE/NEZUMI/${_dist}-${pkgver}.tar.gz + LineBreakTest-8.0.0.txt::https://www.unicode.org/Public/8.0.0/ucd/auxiliary/LineBreakTest.txt + GraphemeBreakTest-8.0.0.txt::https://www.unicode.org/Public/8.0.0/ucd/auxiliary/GraphemeBreakTest.txt) +# Checksums from https://cpan.metacpan.org/authors/id/N/NE/NEZUMI/CHECKSUMS +md5sums=('736dcb04f6a250bd28e4279f2b8592af' + '8bd863892b8b963331779873130ae45a' + '4356c6f90a74769e2d82487a01822cab') +sha256sums=('860c92ff3e710f0a1ca3e7067dba3734540dfb5cb932936536225f7ffca571b1' + '149b14ab93b06c887a958fb16d0ad01193063ef69cc14f10338ae4d0accd6c28' + '0cedd6e0f5cadf57ce9cfc96beccfd083b0faa0809a631a777cd25f0316bfabb') + +prepare() { + # Copy Unicode 8.0 test files. Later versions do not pass. + cp -av "${srcdir}/LineBreakTest-8.0.0.txt" "${srcdir}/${_dist}-${pkgver}/test-data/LineBreakTest.txt" + cp -av "${srcdir}/GraphemeBreakTest-8.0.0.txt" "${srcdir}/${_dist}-${pkgver}/test-data/GraphemeBreakTest.txt" +} + +build() { + cd "${srcdir}/${_dist}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + perl Makefile.PL + make +} + +check() { + cd "${srcdir}/${_dist}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 + make test +} + +package() { + cd "${srcdir}/${_dist}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + make install INSTALLDIRS=vendor DESTDIR="$pkgdir" +} diff --git a/perl/perl-unicode-string/PKGBUILD b/perl/perl-unicode-string/PKGBUILD new file mode 100644 index 0000000000..9a5eaf3303 --- /dev/null +++ b/perl/perl-unicode-string/PKGBUILD @@ -0,0 +1,34 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Simon Perry +# Contributor: James Rayner +# Contributor: Andrew Simmons + +pkgname=perl-unicode-string +_realname=Unicode-String +pkgver=2.10 +pkgrel=3 +pkgdesc="String of Unicode characters for perl (UCS2/UTF16)" +arch=('arm' 'armv6h' 'armv7h' 'i686' 'x86_64' 'powerpc64le') +license=('PerlArtistic') +url="http://search.cpan.org/dist/${_realname}/" +depends=('perl') +options=(!emptydirs) +source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/GAAS/${_realname}-${pkgver}.tar.gz) +sha256sums=('894a110ece479546af8afec0972eec7320c86c4dea4e6b354dff3c7526ba9b68') + +build() { + cd "${srcdir}/${_realname}-${pkgver}" + # in stall module in vendor directories. + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "${srcdir}/${_realname}-${pkgver}" + make test +} + +package() { + cd "${srcdir}/${_realname}-${pkgver}" + make install DESTDIR="${pkgdir}" +} diff --git a/perl/perl-uri/PKGBUILD b/perl/perl-uri/PKGBUILD new file mode 100644 index 0000000000..f4035b3cd9 --- /dev/null +++ b/perl/perl-uri/PKGBUILD @@ -0,0 +1,35 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Felix Yan +# Contributor: Manolis Tzanidakis +# Contributor: Firmicus + +pkgname=perl-uri +pkgver=1.76 +pkgrel=1 +pkgdesc="Uniform Resource Identifiers (absolute and relative)" +arch=('any') +url="http://search.cpan.org/dist/URI/" +license=('PerlArtistic') +depends=('perl') +checkdepends=('perl-test-needs') +provides=('perl-uri-escape=3.30') +options=('!emptydirs') +source=("https://cpan.metacpan.org/authors/id/O/OA/OALDERS/URI-$pkgver.tar.gz") +sha512sums=('1fcb02692bdf5f223c2878569615d153b3c4c5adc04c33aee23f3f015e08b4895b03536ef3a8c7cb7a334c2faa056e5e46c805d56d810704cba63d96136e0a83') + +build() { + cd URI-$pkgver + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd URI-$pkgver + make test +} + +package() { + cd URI-$pkgver + make install DESTDIR="$pkgdir" +} +# vim: ts=2 sw=2 et ft=sh diff --git a/perl/perl-xml-parser/PKGBUILD b/perl/perl-xml-parser/PKGBUILD new file mode 100644 index 0000000000..1939b7d2d4 --- /dev/null +++ b/perl/perl-xml-parser/PKGBUILD @@ -0,0 +1,30 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Eric Bélanger + +pkgname=perl-xml-parser +pkgver=2.44 +pkgrel=7 +pkgdesc="Expat-based XML parser module for perl" +arch=('x86_64' 'powerpc64le') +license=('GPL' 'PerlArtistic') +url="http://search.cpan.org/dist/XML-Parser/" +depends=('perl' 'expat') +options=('!emptydirs') +source=("http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/XML-Parser-${pkgver}.tar.gz") +sha1sums=('0ab6b932713ec1f9927a1b1c619b6889a5c12849') + +build() { + cd XML-Parser-${pkgver} + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd XML-Parser-${pkgver} + make test +} + +package() { + cd XML-Parser-${pkgver} + make DESTDIR="${pkgdir}" install +} diff --git a/perl/perl-yaml/PKGBUILD b/perl/perl-yaml/PKGBUILD new file mode 100644 index 0000000000..7c96a4eaa3 --- /dev/null +++ b/perl/perl-yaml/PKGBUILD @@ -0,0 +1,33 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Felix Yan +# Contributor: Jan de Groot +# Contributor: Charles Mauch + +pkgname=perl-yaml +pkgver=1.27 +pkgrel=1 +pkgdesc="Perl/CPAN Module YAML : YAML Aint Markup Language" +arch=('any') +url="http://search.cpan.org/dist/YAML/" +license=('GPL' 'PerlArtistic') +depends=('perl') +checkdepends=('perl-test-deep' 'perl-test-yaml') +options=('!emptydirs') +source=(http://www.cpan.org/authors/id/T/TI/TINITA/YAML-${pkgver}.tar.gz) +sha512sums=('f82de359939f139211df1c63226a17c0ecb00833c8e72986e901507626ef19f3bb3dd7678c83abb9aeb8857ca921e7698e2c0cb0620de5e4a8d3b963ee040e66') + +build() { + cd YAML-${pkgver} + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd YAML-${pkgver} + make test +} + +package() { + cd YAML-${pkgver} + make DESTDIR="${pkgdir}" install +} diff --git a/perl/CVE-2016-2381_duplicate_env.diff b/perl/perl/CVE-2016-2381_duplicate_env.diff similarity index 100% rename from perl/CVE-2016-2381_duplicate_env.diff rename to perl/perl/CVE-2016-2381_duplicate_env.diff diff --git a/perl/PKGBUILD b/perl/perl/PKGBUILD similarity index 100% rename from perl/PKGBUILD rename to perl/perl/PKGBUILD diff --git a/perl/detect-old-perl-modules.hook b/perl/perl/detect-old-perl-modules.hook similarity index 100% rename from perl/detect-old-perl-modules.hook rename to perl/perl/detect-old-perl-modules.hook diff --git a/perl/detect-old-perl-modules.sh b/perl/perl/detect-old-perl-modules.sh similarity index 100% rename from perl/detect-old-perl-modules.sh rename to perl/perl/detect-old-perl-modules.sh diff --git a/perl/perlbin.csh b/perl/perl/perlbin.csh similarity index 100% rename from perl/perlbin.csh rename to perl/perl/perlbin.csh diff --git a/perl/perlbin.fish b/perl/perl/perlbin.fish similarity index 100% rename from perl/perlbin.fish rename to perl/perl/perlbin.fish diff --git a/perl/perlbin.sh b/perl/perl/perlbin.sh similarity index 100% rename from perl/perlbin.sh rename to perl/perl/perlbin.sh