mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
also, rebuild against quickjs 0.20240113, upgrade to apkbuild-cpan template 4, and remove `.` from include directories to avoid accidentally using vendored quickjs headers.
49 lines
1.1 KiB
Perl
49 lines
1.1 KiB
Perl
#!/usr/bin/env perl
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use ExtUtils::MakeMaker::CPANfile;
|
|
|
|
use Config;
|
|
|
|
use File::Temp;
|
|
use File::Slurper;
|
|
use File::Spec;
|
|
use File::Which;
|
|
use Cwd;
|
|
|
|
WriteMakefile(
|
|
NAME => 'JavaScript::QuickJS',
|
|
VERSION_FROM => 'lib/JavaScript/QuickJS.pm', # finds $VERSION
|
|
($] >= 5.005 ? ## Add these new keywords supported since 5.005
|
|
(ABSTRACT_FROM => 'lib/JavaScript/QuickJS.pm', # retrieve abstract from module
|
|
AUTHOR => [
|
|
'Felipe Gasper (FELIPE)',
|
|
],
|
|
) : ()
|
|
),
|
|
INC => '-Wall --std=c99',
|
|
LICENSE => "perl_5",
|
|
|
|
PMLIBDIRS => ['lib'],
|
|
|
|
LIBS => "-lm -ldl -lpthread -lquickjs",
|
|
|
|
META_MERGE => {
|
|
'meta-spec' => { version => 2 },
|
|
resources => {
|
|
repository => {
|
|
type => 'git',
|
|
url => 'git://github.com/FGasper/p5-JavaScript-QuickJS.git',
|
|
web => 'https://github.com/FGasper/p5-JavaScript-QuickJS',
|
|
},
|
|
bugtracker => {
|
|
web => 'https://github.com/FGasper/p5-JavaScript-QuickJS/issues',
|
|
},
|
|
},
|
|
},
|
|
);
|
|
|
|
1;
|