archive_extract, add perl module (#9386)

This commit is contained in:
Schrijvers Luc
2023-09-08 13:57:09 +00:00
committed by GitHub
parent 0be1904861
commit 7736895120
2 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
SUMMARY="A perl module for generic archive extraction"
DESCRIPTION="Archive::Extract is a generic archive extraction mechanism.
It allows you to extract .tgz, .tar, .gz and .zip files, using either perl modules or \
commandline tools"
HOMEPAGE="https://metacpan.org/pod/Archive::Extract"
COPYRIGHT="2006-2021 Andy Lester"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Archive-Extract-$portVersion.tar.gz"
CHECKSUM_SHA256="cffcf135cd0622287d3b02154f7d6716495449fcaed03966621948e25ea5f742"
SOURCE_DIR="Archive-Extract-$portVersion"
PATCHES="archive_extract-$portVersion.patchset"
ARCHITECTURES="any"
PROVIDES="
archive_extract = $portVersion
"
REQUIRES="
haiku
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
BUILD()
{
perl Makefile.PL PREFIX=$prefix
make
}
INSTALL()
{
make install DESTDIR="${DESTDIR}"
}

View File

@@ -0,0 +1,22 @@
From 01a14737b604bbe58981d6a7f058347f63d3e41a Mon Sep 17 00:00:00 2001
From: Begasus <begasus@gmail.com>
Date: Fri, 8 Sep 2023 12:43:19 +0200
Subject: Install in vendor_perl instead of site_perl
diff --git a/Makefile.PL b/Makefile.PL
index 509e74a..8826632 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -22,7 +22,7 @@ WriteMakefile1(
'Module::Load::Conditional' => 0.66,
'Locale::Maketext::Simple' => 0,
},
- INSTALLDIRS => ( $] >= 5.009005 && $] < 5.012 ? 'perl' : 'site' ),
+ INSTALLDIRS => ( $] >= 5.009005 && $] < 5.012 ? 'perl' : 'vendor' ),
AUTHOR => 'Jos Boumans <kane[at]cpan.org>',
ABSTRACT => 'Generic archive extracting mechanism'
);
--
2.42.0