~ubuntu-branches/ubuntu/trusty/debhelper/trusty

« back to all changes in this revision

Viewing changes to Debian/Debhelper/Buildsystem/perl_build.pm

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-07-01 11:20:37 UTC
  • mfrom: (1.4.66 sid)
  • Revision ID: package-import@ubuntu.com-20130701112037-wq16dfpyn731nrf9
Tags: 9.20130630ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Depend on dh-apparmor.
  - dh_installinit, autoscripts/postinst-upstart-replace: Prefer upstart
    jobs where they exist.
  - autoscripts/preinst-upstart-compatibility: Handle upgrades from older
    versions that created the /lib/init/upstart-job symlink.
  - autoscripts/postinst-init*: Only call update-rc.d when there's no
    upstart job.
  - autoscripts/*-init*: Test for /etc/init/*.conf where necessary.
  - dh_installinit: Add no-op --upstart-only option for compatibility.
  - dh_installudev: Change default rules.d symlink priority to 40.
  - dh_installchangelogs: Do not install upstream changelog in compat
    level 7.  This floods packages with huge upstream changelogs which
    take precious CD space.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        my @flags;
44
44
        $ENV{PERL_MM_USE_DEFAULT}=1;
45
45
        if ($ENV{CFLAGS} && ! compat(8)) {
46
 
                push @flags, "config=optimize=$ENV{CFLAGS} $ENV{CPPFLAGS}";
 
46
                push @flags, "--config", "optimize=$ENV{CFLAGS} $ENV{CPPFLAGS}";
47
47
        }
48
48
        if ($ENV{LDFLAGS} && ! compat(8)) {
49
 
                push @flags, "config=ld=$Config{ld} $ENV{CFLAGS} $ENV{LDFLAGS}";
 
49
                push @flags, "--config", "ld=$Config{ld} $ENV{CFLAGS} $ENV{LDFLAGS}";
50
50
        }
51
 
        $this->do_perl("Build.PL", "installdirs=vendor", @flags, @_);
 
51
        $this->do_perl("Build.PL", "--installdirs", "vendor", @flags, @_);
52
52
}
53
53
 
54
54
sub build {
64
64
sub install {
65
65
        my $this=shift;
66
66
        my $destdir=shift;
67
 
        $this->do_perl("Build", "install", "destdir=$destdir", "create_packlist=0", @_);
 
67
        $this->do_perl("Build", "install", "--destdir", "$destdir", "--create_packlist", 0, @_);
68
68
}
69
69
 
70
70
sub clean {
71
71
        my $this=shift;
72
72
        if (-e $this->get_sourcepath("Build")) {
73
 
                $this->do_perl("Build", "--allow_mb_mismatch", 1, "distclean", @_);
 
73
                $this->do_perl("Build", "distclean", "--allow_mb_mismatch", 1, @_);
74
74
        }
75
75
}
76
76