summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl-5.14.3/debian/cpanplus_definstalldirs.diff
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-16 03:05:19 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-16 03:05:19 +0200
commitc527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch)
treebb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-devtools/perl/perl-5.14.3/debian/cpanplus_definstalldirs.diff
downloadpoky-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.14.3/debian/cpanplus_definstalldirs.diff')
-rw-r--r--meta/recipes-devtools/perl/perl-5.14.3/debian/cpanplus_definstalldirs.diff56
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.14.3/debian/cpanplus_definstalldirs.diff b/meta/recipes-devtools/perl/perl-5.14.3/debian/cpanplus_definstalldirs.diff
new file mode 100644
index 0000000000..7df28606b7
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl-5.14.3/debian/cpanplus_definstalldirs.diff
@@ -0,0 +1,56 @@
1Upstream-Status:Inappropriate [debian patches]
2From 66517b14790aa6410fd37e411dd62521e1e02b7f Mon Sep 17 00:00:00 2001
3From: Niko Tyni <ntyni@debian.org>
4Date: Mon, 6 Jul 2009 21:58:41 +0300
5Subject: Configure CPANPLUS to use the site directories by default.
6
7Bug-Debian: http://bugs.debian.org/533707
8
9The core modules usually default to INSTALLDIRS=perl (ExtUtils::MakeMaker)
10or installdirs=core (Module::Build), so we need to explicitly ask for
11the site destination to get upgraded versions into /usr/local.
12
13See also the sister patch, debian/cpan_definstalldirs .
14
15Patch-Name: debian/cpanplus_definstalldirs.diff
16---
17 cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm | 30 +++++++++++++++++++++++++++
18 1 files changed, 30 insertions(+), 0 deletions(-)
19 create mode 100644 cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm
20
21diff --git a/cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm b/cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm
22new file mode 100644
23index 0000000..5e6e11e
24--- /dev/null
25+++ b/cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm
26@@ -0,0 +1,30 @@
27+### minimal pod, so you can find it with perldoc -l, etc
28+=pod
29+
30+=head1 NAME
31+
32+CPANPLUS::Config::System
33+
34+=head1 DESCRIPTION
35+
36+This is a CPANPLUS configuration file that sets appropriate default
37+settings on Debian systems.
38+
39+The only preconfigured settings are C<makemakerflags> (set to
40+C<INSTALLDIRS=site>) and C<buildflags> (set to C<--installdirs site>).
41+
42+These settings will not have any effect if
43+C</etc/perl/CPANPLUS/Config/System.pm> is present.
44+
45+=cut
46+
47+
48+package CPANPLUS::Config::System;
49+
50+sub setup {
51+ my $conf = shift;
52+ $conf->set_conf( makemakerflags => 'INSTALLDIRS=site' );
53+ $conf->set_conf( buildflags => '--installdirs site' );
54+}
55+
56+1;