From cc805d54566e276fb05b5f63148774e015f140ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 25 Jan 2025 21:22:08 +0100 Subject: [PATCH] libwww_perl: new perl module recipe --- dev-perl/libwww_perl/libwww_perl-6.77.recipe | 101 +++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 dev-perl/libwww_perl/libwww_perl-6.77.recipe diff --git a/dev-perl/libwww_perl/libwww_perl-6.77.recipe b/dev-perl/libwww_perl/libwww_perl-6.77.recipe new file mode 100644 index 000000000..c208faf74 --- /dev/null +++ b/dev-perl/libwww_perl/libwww_perl-6.77.recipe @@ -0,0 +1,101 @@ +SUMMARY="The World-Wide Web library for Perl" +DESCRIPTION="The libwww-perl collection is a set of Perl modules which provides a simple and \ +consistent application programming interface (API) to the World-Wide Web. The main focus of the \ +library is to provide classes and functions that allow you to write WWW clients. The library also \ +contain modules that are of more general use and even classes that help you implement simple HTTP \ +servers. +Most modules in this library provide an object oriented API. The user agent, requests sent and \ +responses received from the WWW server are all represented by objects. This makes a simple and \ +powerful interface to these services. The interface is easy to extend and customize for your own \ +needs. +The main features of the library are: +* Contains various reusable components (modules) that can be used separately or together. +* Provides an object oriented model of HTTP-style communication. Within this framework we \ +currently support access to http, https, gopher, ftp, news, file, and mailto resources. +* Provides a full object oriented interface or a very simple procedural interface. +* Supports the basic and digest authorization schemes. +* Supports transparent redirect handling. +* Supports access through proxy servers. +* Provides parser for robots.txt files and a framework for constructing robots. +* Supports parsing of HTML forms. +* Implements HTTP content negotiation algorithm that can be used both in protocol modules and in \ +server scripts (like CGI scripts). +* Supports HTTP cookies. +* Some simple command line clients, for instance lwp-request and lwp-download." +HOMEPAGE="https://metacpan.org/pod/LWP" +COPYRIGHT="1995-2009, Gisle Aas + 1995, Martijn Koster" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/libwww-perl-$portVersion.tar.gz" +CHECKSUM_SHA256="94a907d6b3ea8d966ef43deffd4fa31f5500142b4c00489bfd403860a5f060e4" +SOURCE_DIR="libwww-perl-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + libwww_perl = $portVersion + cmd:lwp_download + cmd:lwp_dump + cmd:lwp_mirror + cmd:lwp_request + " +REQUIRES=" + haiku + encode_locale + file_listing + html_parser + http_cookies + http_negotiate + net_http + try_tiny + uri + vendor_perl + www_robotrules + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:make + cmd:perl + " + +TEST_REQUIRES=" + encode_locale + file_listing + html_parser + http_cookiejar + http_cookies + http_daemon + http_negotiate + net_http + test_fatal + test_needs + test_requiresinternet + try_tiny + uri + www_robotrules + " + +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 +}