Files
haikuports/dev-perl/cgi/cgi-4.71.recipe
2025-12-24 09:27:42 +01:00

66 lines
1.5 KiB
Bash

SUMMARY="Handle Common Gateway Interface requests and responses"
DESCRIPTION="CGI.pm is a stable, complete and mature solution for processing and preparing HTTP \
requests and responses. Major features including processing form submissions, file uploads, \
reading and writing cookies, query string generation and manipulation, and processing and \
preparing HTTP headers.
CGI.pm performs very well in a vanilla CGI.pm environment and also comes with built-in support \
for mod_perl and mod_perl2 as well as FastCGI.
It has the benefit of having developed and refined over 20 years with input from dozens of \
contributors and being deployed on thousands of websites."
HOMEPAGE="https://metacpan.org/pod/CGI"
COPYRIGHT="1995-2007, Lincoln D. Stein"
LICENSE="Artistic v2.0"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/L/LE/LEEJO/CGI-$portVersion.tar.gz"
CHECKSUM_SHA256="9da85b30d9404d183da7ca7aedb83702cb07ed73c3078bf6f36c87f1e8a0196a"
SOURCE_DIR="CGI-$portVersion"
ARCHITECTURES="any"
PROVIDES="
cgi = $portVersion
"
REQUIRES="
haiku
html_parser
vendor_perl
uri
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
TEST_REQUIRES="
html_parser
test_warn
uri
"
BUILD()
{
perl Makefile.PL PREFIX=$prefix INSTALLDIRS=vendor
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
}