Skip to content

Commit 4d3ad26

Browse files
committed
add repo metadata
1 parent 9784217 commit 4d3ad26

File tree

1 file changed

+38
-22
lines changed

1 file changed

+38
-22
lines changed

Makefile.PL

+38-22
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,46 @@ our ($cppg_cc, $cppg_cflags) = @cpp_opts{qw(CC CCFLAGS)};
2727

2828
our @cw_objs = map $_.'$(OBJ_EXT)', qw(opencv_wrapper);
2929

30+
my $package_name = 'PDL::OpenCV';
31+
(my $repo = $package_name) =~ s#::#-#g;
32+
$repo = "PDLPorters/$repo";
3033
%hash = (%hash,
31-
NAME => 'PDL::OpenCV',
32-
AUTHOR => 'Ingo Schmid',
33-
LICENSE => 'perl',
34-
CONFIGURE_REQUIRES => {
35-
'ExtUtils::CppGuess' => '0.22',
36-
'ExtUtils::MakeMaker' => '6.3002',
37-
'PDL' => '2.082', # pp_add_typemaps
38-
'Alien::OpenCV' => 0,
39-
},
40-
TEST_REQUIRES => {
41-
'Test::More' => '0.88',
42-
},
43-
PREREQ_PM => {
44-
'PDL' => '2.079',
45-
},
46-
MYEXTLIB => join(' ', @cw_objs),
47-
depend => {
48-
'$(OBJECT)'=>'opencv_wrapper.h wraplocal.h',
49-
'opencv_wrapper$(OBJ_EXT)'=>'opencv_wrapper.h',
50-
'opencv_wrapper.h wraplocal.h OpenCV.pm'=>'funclist.pl genpp.pl constlist.txt classes.pl', # .pm because that deps on .pd
51-
'OpenCV.pm OpenCV.c'=>'typemap',
52-
'$(FIRST_MAKEFILE)'=>'submodmf.pl',
34+
NAME => $package_name,
35+
AUTHOR => 'Ingo Schmid',
36+
LICENSE => 'perl',
37+
CONFIGURE_REQUIRES => {
38+
'ExtUtils::CppGuess' => '0.22',
39+
'ExtUtils::MakeMaker' => '6.3002',
40+
'PDL' => '2.082', # pp_add_typemaps
41+
'Alien::OpenCV' => 0,
42+
},
43+
TEST_REQUIRES => {
44+
'Test::More' => '0.88',
45+
},
46+
PREREQ_PM => {
47+
'PDL' => '2.079',
48+
},
49+
MYEXTLIB => join(' ', @cw_objs),
50+
depend => {
51+
'$(OBJECT)'=>'opencv_wrapper.h wraplocal.h',
52+
'opencv_wrapper$(OBJ_EXT)'=>'opencv_wrapper.h',
53+
'opencv_wrapper.h wraplocal.h OpenCV.pm'=>'funclist.pl genpp.pl constlist.txt classes.pl', # .pm because that deps on .pd
54+
'OpenCV.pm OpenCV.c'=>'typemap',
55+
'$(FIRST_MAKEFILE)'=>'submodmf.pl',
56+
},
57+
META_MERGE => {
58+
"meta-spec" => { version => 2 },
59+
resources => {
60+
homepage => 'http://pdl.perl.org/',
61+
bugtracker => {web=>"https://github.com/$repo/issues"},
62+
repository => {
63+
url => "git://github.com/$repo.git",
64+
type => 'git',
65+
web => "https://github.com/$repo",
66+
},
67+
x_IRC => 'irc://irc.perl.org/#pdl',
5368
},
69+
},
5470
);
5571
WriteMakefile(%hash);
5672

0 commit comments

Comments
 (0)