mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
text_glob: new perl module recipe
This commit is contained in:
50
dev-perl/text_glob/text_glob-0.11.recipe
Normal file
50
dev-perl/text_glob/text_glob-0.11.recipe
Normal file
@@ -0,0 +1,50 @@
|
||||
SUMMARY="Match globbing patterns against text"
|
||||
DESCRIPTION="Text::Glob implements glob(3) style matching that can be used to match against text, \
|
||||
rather than fetching names from a filesystem. If you want to do full file globbing use the \
|
||||
File::Glob module instead."
|
||||
HOMEPAGE="https://metacpan.org/pod/Text::Glob"
|
||||
COPYRIGHT="2002, 2003, 2006, 2007 Richard Clamp"
|
||||
LICENSE="Artistic"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/R/RC/RCLAMP/Text-Glob-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="069ccd49d3f0a2dedb115f4bdc9fbac07a83592840953d1fcdfc39eb9d305287"
|
||||
SOURCE_DIR="Text-Glob-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
text_glob = $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