forked from cpan-authors/YAML-Syck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
46 lines (35 loc) · 1.25 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
use strict;
use lib '.';
use inc::Module::Install;
my $bad;
if (eval { require YAML; $YAML::VERSION < 0.60 }) {
print "*** Pre-0.60 version of YAML.pm ($YAML::VERSION) detected.\n";
$bad++;
}
if (eval { require YAML::Syck; $YAML::Syck::VERSION < 0.60 }) {
print "*** Pre-0.60 version of YAML::Syck ($YAML::Syck::VERSION) detected.\n";
$bad++;
}
if ($bad and !is_admin()) {
print << '_';
*** WARNING ***
YAML::Syck version >=0.60 breaks compatibility with earlier versions of
YAML::Syck and YAML.pm (<0.60) when serializing blessed references.
See the COMPATIBILITY file for more information.
_
exit() unless prompt("Continue installing YAML::Syck?", 'y') =~ /^y/i;
}
name 'YAML-Syck';
license 'MIT';
all_from 'lib/YAML/Syck.pm';
cc_inc_paths '.';
cc_files (glob("*.c"), (-e 'Syck.c' ? () : 'Syck.c'));
# cc_optimize_flags '-g3';
can_cc or die "This module requires a C compiler";
include_deps 'Test::More';
build_requires 'Devel::Leak' if defined $ENV{'AUTOMATED_TESTING'};
homepage 'http://search.cpan.org/dist/YAML-Syck';
repository 'http://github.com/toddr/YAML-Syck';
bugtracker 'https://rt.cpan.org/Public/Dist/Display.html?Name=YAML-Syck';
tests 't/*.t t/*/*.t';
WriteAll;