From 5e7499e32fdb9786ae3b77baa8567f6cf7ef259b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 30 Nov 2024 18:46:43 +0100 Subject: [PATCH] text_glob: new perl module recipe --- dev-perl/text_glob/text_glob-0.11.recipe | 50 ++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 dev-perl/text_glob/text_glob-0.11.recipe diff --git a/dev-perl/text_glob/text_glob-0.11.recipe b/dev-perl/text_glob/text_glob-0.11.recipe new file mode 100644 index 000000000..a5a1f0cfa --- /dev/null +++ b/dev-perl/text_glob/text_glob-0.11.recipe @@ -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 +}