mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
libwww_perl: new perl module recipe
This commit is contained in:
101
dev-perl/libwww_perl/libwww_perl-6.77.recipe
Normal file
101
dev-perl/libwww_perl/libwww_perl-6.77.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user