mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
54 lines
1.2 KiB
Bash
54 lines
1.2 KiB
Bash
SUMMARY="Associate user-defined magic to variables from Perl"
|
|
DESCRIPTION="Magic is Perl's way of enhancing variables. This mechanism lets the user add extra \
|
|
data to any variable and hook syntactical operations (such as access, assignment or destruction) \
|
|
that can be applied to it. With this module, you can add your own magic to any variable without \
|
|
having to write a single line of XS."
|
|
HOMEPAGE="https://metacpan.org/pod/Variable::Magic"
|
|
COPYRIGHT="2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2022,2024 Vincent Pit"
|
|
LICENSE="Artistic"
|
|
REVISION="2"
|
|
SOURCE_URI="https://cpan.metacpan.org/authors/id/V/VP/VPIT/Variable-Magic-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="9f7853249c9ea3b4df92fb6b790c03a60680fc029f44c8bf9894dccf019516bd"
|
|
SOURCE_DIR="Variable-Magic-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
variable_magic$secondaryArchSuffix = $portVersion
|
|
"
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
PROVIDES+="
|
|
variable_magic = $portVersion
|
|
"
|
|
fi
|
|
REQUIRES="
|
|
haiku
|
|
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
|
|
}
|