diff --git a/dev-perl/net_http/net_http-6.23.recipe b/dev-perl/net_http/net_http-6.23.recipe new file mode 100644 index 000000000..8478c8eac --- /dev/null +++ b/dev-perl/net_http/net_http-6.23.recipe @@ -0,0 +1,58 @@ +SUMMARY="Low-level HTTP connection (client)" +DESCRIPTION="The Net::HTTP class is a low-level HTTP client. An instance of the Net::HTTP class \ +represents a connection to an HTTP server. The HTTP protocol is described in RFC 2616. The \ +Net::HTTP class supports HTTP/1.0 and HTTP/1.1. +Net::HTTP is a sub-class of one of IO::Socket::IP (IPv6+IPv4), IO::Socket::INET6 (IPv6+IPv4), or \ +IO::Socket::INET (IPv4 only). You can mix the methods described below with reading and writing \ +from the socket directly. This is not necessary a good idea, unless you know what you are doing." +HOMEPAGE="https://metacpan.org/pod/Net::HTTP" +COPYRIGHT="2001 by Gisle Aas" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/Net-HTTP-$portVersion.tar.gz" +CHECKSUM_SHA256="0d65c09dd6c8589b2ae1118174d3c1a61703b6ecfc14a3442a8c74af65e0c94e" +SOURCE_DIR="Net-HTTP-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + net_http = $portVersion + " +REQUIRES=" + haiku + uri + vendor_perl + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:make + cmd:perl + " + +TEST_REQUIRES=" + uri + " + +BUILD() +{ + perl Makefile.PL PREFIX=$prefix + make +} + +INSTALL() +{ + make pure_install + + # remove architecture-specific files + cd $prefix + rm -r $(perl -V:vendorarch | cut -d\' -f2 | cut -d/ -f5-) + # cut extracts the quoted string and strips the prefix (which is perl's and not ours) +} + +TEST() +{ + make test +}