mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
extuils_libbuilder: bump version
The patch was upstreamed. Simplify Build.PL invocaton.
This commit is contained in:
65
dev-perl/extutils_libbuilder/extutils_libbuilder-0.09.recipe
Normal file
65
dev-perl/extutils_libbuilder/extutils_libbuilder-0.09.recipe
Normal file
@@ -0,0 +1,65 @@
|
||||
SUMMARY="A tool to build C libraries"
|
||||
DESCRIPTION="Some Perl modules need to ship C libraries together with their Perl code. Although \
|
||||
there are mechanisms to compile and link (or glue) C code in your Perl programs, there isn't a \
|
||||
clear method to compile standard, self-contained C libraries.
|
||||
This module main goal is to help in that task."
|
||||
HOMEPAGE="https://metacpan.org/pod/ExtUtils::LibBuilder"
|
||||
COPYRIGHT="2010 Alberto Simoes"
|
||||
LICENSE="Artistic"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/A/AM/AMBS/ExtUtils-LibBuilder-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="dbfac85d015874189a704fa0a2f001d13b5a0c7d89f36c06ff32d569720a6cfb"
|
||||
SOURCE_DIR="ExtUtils-LibBuilder-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
extutils_libbuilder = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
vendor_perl
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
module_build
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:perl
|
||||
"
|
||||
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
TEST_REQUIRES="
|
||||
haiku_x86_devel
|
||||
cmd:gcc_x86
|
||||
"
|
||||
else
|
||||
TEST_REQUIRES="
|
||||
cmd:gcc
|
||||
"
|
||||
fi
|
||||
|
||||
BUILD()
|
||||
{
|
||||
perl Build.PL --prefix=$prefix
|
||||
./Build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
./Build 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() {
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
export CC=gcc-x86
|
||||
export LD=gcc-x86
|
||||
fi
|
||||
./Build test
|
||||
}
|
||||
Reference in New Issue
Block a user