From 71b0d69b67dcdf12f2a34d08b7001638ac61ac27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 25 Jan 2025 16:24:39 +0100 Subject: [PATCH] http_cookies: new perl module recipe --- .../http_cookies/http_cookies-6.11.recipe | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 dev-perl/http_cookies/http_cookies-6.11.recipe diff --git a/dev-perl/http_cookies/http_cookies-6.11.recipe b/dev-perl/http_cookies/http_cookies-6.11.recipe new file mode 100644 index 000000000..04cec371d --- /dev/null +++ b/dev-perl/http_cookies/http_cookies-6.11.recipe @@ -0,0 +1,64 @@ +SUMMARY="HTTP cookie jars" +DESCRIPTION="This class is for objects that represent a \"cookie jar\" -- that is, a database of \ +all the HTTP cookies that a given LWP::UserAgent object knows about. +Cookies are a general mechanism which server side connections can use to both store and retrieve \ +information on the client side of the connection. For more information about cookies refer to \ +Cookie Spec and Cookie Central. This module also implements the new style cookies described in \ +RFC 2965. The two variants of cookies are supposed to be able to coexist happily. +Instances of the class HTTP::Cookies are able to store a collection of Set-Cookie2: and \ +Set-Cookie: headers and are able to use this information to initialize Cookie-headers in \ +HTTP::Request objects. The state of a HTTP::Cookies object can be saved in and restored from files." +HOMEPAGE="https://metacpan.org/pod/HTTP::Cookies" +COPYRIGHT="2002 by Gisle Aas" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/HTTP-Cookies-$portVersion.tar.gz" +CHECKSUM_SHA256="8c9a541a4a39f6c0c7e3d0b700b05dfdb830bd490a1b1942a7dedd1b50d9a8c8" +SOURCE_DIR="HTTP-Cookies-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + http_cookies = $portVersion + " +REQUIRES=" + haiku + http_date + http_message + vendor_perl + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:make + cmd:perl + " + +TEST_REQUIRES=" + http_date + http_message + 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 +}