Files
haikuports/dev-perl/libwww_perl/libwww_perl-6.81.recipe
2025-12-25 20:40:43 +01:00

102 lines
2.8 KiB
Bash

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="ab30552f194e8b5ae3ac0885132fd1d4ea04c4c7fe6555765b98f01af70c1736"
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
}