mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
variable_magic: new perl module recipe
This commit is contained in:
53
dev-perl/variable_magic/variable_magic-0.64.recipe
Normal file
53
dev-perl/variable_magic/variable_magic-0.64.recipe
Normal file
@@ -0,0 +1,53 @@
|
||||
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="1"
|
||||
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_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:perl
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
perl Makefile.PL PREFIX=$prefix
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make pure_install
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user