Skip to content

Commit 96f026e

Browse files
committed
closer to external distro
1 parent 7e4ac26 commit 96f026e

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

Makefile.PL

+33-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,42 @@
11
use strict;
22
use warnings;
33
use ExtUtils::MakeMaker;
4+
use PDL::Core::Dev;
5+
6+
my $package_name = "PDL::Opt::Simplex";
7+
(my $repo = $package_name) =~ s#::#-#g;
8+
$repo = "PDLPorters/$repo";
49
WriteMakefile(
5-
NAME => "PDL::Opt::Simplex",
10+
NAME => $package_name,
11+
VERSION_FROM => 'Simplex.pm',
12+
AUTHOR => 'PerlDL Developers <pdl-general@lists.sourceforge.net>',
13+
CONFIGURE_REQUIRES => {
14+
'ExtUtils::MakeMaker' => 0,
15+
'PDL' => '2.094',
16+
},
17+
PREREQ_PM => {
18+
'PDL' => '2.094',
19+
},
620
PM => {
721
'Simplex.pm' => '$(INST_LIBDIR)/Simplex.pm',
822
'Demo.pm' => '$(INST_LIB)/PDL/Demos/Simplex.pm',
923
},
10-
NO_MYMETA => 1,
24+
META_MERGE => {
25+
"meta-spec" => { version => 2 },
26+
resources => {
27+
homepage => 'http://pdl.perl.org/',
28+
bugtracker => {web=>"https://github.com/$repo/issues"},
29+
repository => {
30+
url => "git://github.com/$repo.git",
31+
type => 'git',
32+
web => "https://github.com/$repo",
33+
},
34+
x_IRC => 'irc://irc.perl.org/#pdl',
35+
},
36+
},
1137
);
38+
39+
sub MY::postamble {
40+
my $oneliner = PDL::Core::Dev::_oneliner(qq{exit if \$ENV{DESTDIR}; use PDL::Doc; eval { PDL::Doc::add_module(shift); }});
41+
qq|\ninstall :: pure_install\n\t$oneliner \$(NAME)\n|;
42+
}

0 commit comments

Comments
 (0)