File tree 1 file changed +33
-2
lines changed
1 file changed +33
-2
lines changed Original file line number Diff line number Diff line change 1
1
use strict;
2
2
use warnings;
3
3
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 " ;
4
9
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
+ },
6
20
PM => {
7
21
' Simplex.pm' => ' $(INST_LIBDIR)/Simplex.pm' ,
8
22
' Demo.pm' => ' $(INST_LIB)/PDL/Demos/Simplex.pm' ,
9
23
},
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
+ },
11
37
);
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| \n install :: pure_install\n\t $oneliner \$ (NAME)\n | ;
42
+ }
You can’t perform that action at this time.
0 commit comments