X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=507fa0c95aa26967e1998407ffba68f457718e84;hb=HEAD;hp=08560fb40eff28094ff62883451f9f240ea169bf;hpb=74b0ee997905290c58059ad517b91462503b1c10;p=perl%2Fmodules%2FScope-Upper.git diff --git a/Makefile.PL b/Makefile.PL index 08560fb..507fa0c 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -6,6 +6,28 @@ use ExtUtils::MakeMaker; use Config; +if ($Config{d_cplusplus}) { + print STDERR <<'FAILPLUSPLUS'; +Configuration aborted: C++ compilers are not supported + + Your perl has been built with a C++ compiler, which is then handed to + XS extensions as if it were a proper C compiler. This extension is + written in C, and naturally only supports C compilers, so it cannot be + built with your perl. + + Note that building perl with a C++ compiler is only supposed to be done + by core developers in order to check that the perl headers can be + included from C++ code. Its use in the wild is not supported by the + perl5 porters. If your vendor has built its perl binary with a C++ + compiler, please consider reporting this issue to them. + + This text will be displayed 10 seconds, and then the configuration + script will exit. +FAILPLUSPLUS + sleep 10; + exit 0; +} + my $pl = $Config{perl_patchlevel}; my $desc = $Config{git_describe}; for ($pl, $desc) { @@ -64,6 +86,14 @@ my $dist = 'Scope-Upper'; (my $file = $dist) =~ s{-}{/}g; $file = "lib/$file.pm"; +my $bug_web = "http://rt.cpan.org/Dist/Display.html?Name=$dist", +my $bug_mailto = 'bug-' . lc($dist) . '@rt.cpan.org'; + +my $repo_host = 'git.vpit.fr'; +my @repo_path = ('perl', 'modules', "$dist.git"); +my $repo_url = join '/', 'http:', '', $repo_host, @repo_path, ''; +my $repo_web = "http://$repo_host/?p=" . join('%2F', @repo_path); + my %PREREQ_PM = ( 'Exporter' => 0, 'XSLoader' => 0, @@ -79,6 +109,10 @@ my %BUILD_REQUIRES = ( ); my %META = ( + 'meta-spec' => { + version => '2', + url => 'http://search.cpan.org/perldoc?CPAN::Meta::Spec', + }, configure_requires => { 'Config' => 0, 'ExtUtils::MakeMaker' => 0, @@ -88,16 +122,23 @@ my %META = ( }, dynamic_config => 1, resources => { - bugtracker => "http://rt.cpan.org/Dist/Display.html?Name=$dist", + bugtracker => { + web => $bug_web, + mailto => $bug_mailto, + }, homepage => "http://search.cpan.org/dist/$dist/", license => 'http://dev.perl.org/licenses/', - repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git", + repository => { + type => 'git', + url => $repo_url, + web => $repo_web, + }, }, ); WriteMakefile( NAME => $name, - AUTHOR => 'Vincent Pit ', + AUTHOR => 'Vincent Pit ', LICENSE => 'perl', VERSION_FROM => $file, ABSTRACT_FROM => $file,