mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
data_dump: new perl module recipe
This commit is contained in:
50
dev-perl/data_dump/data_dump-1.25.recipe
Normal file
50
dev-perl/data_dump/data_dump-1.25.recipe
Normal file
@@ -0,0 +1,50 @@
|
||||
SUMMARY="Pretty printing of data structures"
|
||||
DESCRIPTION="This module provides a few functions that traverse their argument list and return a \
|
||||
string containing Perl code that, when evaled, produces a deep copy of the original arguments."
|
||||
HOMEPAGE="https://metacpan.org/pod/Data::Dump"
|
||||
COPYRIGHT="1998-2010 Gisle Aas
|
||||
1996-1998 Gurusamy Sarathy"
|
||||
LICENSE="Artistic"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/G/GA/GARU/Data-Dump-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="a4aa6e0ddbf39d5ad49bddfe0f89d9da864e3bc00f627125d1bc580472f53fbd"
|
||||
SOURCE_DIR="Data-Dump-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
data_dump = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
vendor_perl
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:perl
|
||||
"
|
||||
|
||||
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