Files
haikuports/dev-perl/termreadkey/termreadkey-2.38.recipe
2025-12-24 17:49:38 +01:00

56 lines
1.4 KiB
Bash

SUMMARY="A perl module for simple terminal control"
DESCRIPTION="Term::ReadKey is a compiled perl module dedicated to providing simple control over \
terminal driver modes (cbreak, raw, cooked, etc.,) support for non-blocking reads, if the \
architecture allows, and some generalized handy functions for working with terminals. One of the \
main goals is to have the functions as portable as possible, so you can just plug in \"use \
Term::ReadKey\" on any architecture and have a good likelihood of it working."
HOMEPAGE="https://metacpan.org/pod/Term::ReadKey"
COPYRIGHT="1994-1999 Kenneth Albanowski.
2001-2016 Jonathan Stowe and others"
LICENSE="Artistic"
REVISION="2"
SOURCE_URI="https://cpan.metacpan.org/authors/id/J/JS/JSTOWE/TermReadKey-$portVersion.tar.gz"
CHECKSUM_SHA256="5a645878dc570ac33661581fbb090ff24ebce17d43ea53fd22e105a856a47290"
SOURCE_DIR="TermReadKey-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
termreadkey$secondaryArchSuffix = $portVersion
"
if [ -n "$secondaryArchSuffix" ]; then
PROVIDES+="
termreadkey = $portVersion
"
fi
REQUIRES="
haiku$secondaryArchSuffix
vendor_perl
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:perl
"
BUILD()
{
perl Makefile.PL PREFIX=$prefix
make
}
INSTALL()
{
make pure_install
}
TEST()
{
make test
}