~ubuntu-branches/ubuntu/trusty/libyaml-libyaml-perl/trusty-security

« back to all changes in this revision

Viewing changes to .pc/disable-update.sh.patch/LibYAML/Makefile.PL

  • Committer: Package Import Robot
  • Author(s): gregor herrmann, Salvatore Bonaccorso, gregor herrmann
  • Date: 2013-10-11 18:37:51 UTC
  • mfrom: (5.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20131011183751-d8t2kt15prglf5db
Tags: 0.41-1
[ Salvatore Bonaccorso ]
* Change Vcs-Git to canonical URI (git://anonscm.debian.org)
* Change search.cpan.org based URIs to metacpan.org based URIs

[ gregor herrmann ]
* New upstream release.
* Update years of copyright.
* Add patch to disable maintainer helper script.
* Drop build dependency on not (yet) used libyaml-dev.
* Declare compliance with Debian Policy 3.9.4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
use ExtUtils::MakeMaker;
 
2
use strict;
 
3
use Config;
 
4
 
 
5
if (-d '../.git') {
 
6
    system("./update.sh") == 0
 
7
        or die "update.sh failed";
 
8
}
 
9
 
 
10
my $obj_files = join ' ', map {
 
11
    my $c = $_;
 
12
    $c =~ s/\.c$/$Config::Config{_o}/;
 
13
    $c;
 
14
} glob("*.c"), 'LibYAML.c';
 
15
 
 
16
my $DEFINE = $^O eq 'MSWin32'
 
17
? '-DHAVE_CONFIG_H -DYAML_DECLARE_EXPORT'
 
18
: '-DHAVE_CONFIG_H';
 
19
WriteMakefile(
 
20
    NAME => 'YAML::XS::LibYAML',
 
21
    PREREQ_PM => {},
 
22
    # CCFLAGS => '-ansi -pedantic -Wall',
 
23
    # CCFLAGS => '-ansi -Wall',
 
24
    # CCFLAGS => '-pedantic -Wall',
 
25
    # CCFLAGS => '-Wall',
 
26
    DEFINE => $DEFINE,
 
27
    LIBS => [''], # e.g., '-lm'
 
28
    INC => '-I.',
 
29
    OBJECT => $obj_files,
 
30
    ABSTRACT_FROM => 'lib/YAML/XS/LibYAML.pm',
 
31
    AUTHOR => 'Ingy döt Net <ingy@cpan.org>',
 
32
);