[libcommon-sense-perl] 01/02: fix installation in vendor arch lib directory
Damyan Ivanov
dmn at moszumanska.debian.org
Thu May 15 13:40:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
dmn pushed a commit to branch master
in repository libcommon-sense-perl.
commit 8a8ad2af23594174f0d7624c0fd6f3d4e3390a77
Author: Damyan Ivanov <dmn at debian.org>
Date: Thu May 15 13:37:49 2014 +0000
fix installation in vendor arch lib directory
rationale: we want /usr/lib/<triplet>, i.e. controlled by perl config
---
debian/patches/install-in-verdor-arch.patch | 11 +++++++++++
debian/patches/series | 1 +
debian/rules | 3 ++-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/debian/patches/install-in-verdor-arch.patch b/debian/patches/install-in-verdor-arch.patch
new file mode 100644
index 0000000..a197f1c
--- /dev/null
+++ b/debian/patches/install-in-verdor-arch.patch
@@ -0,0 +1,11 @@
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -10,7 +10,7 @@ WriteMakefile(
+ VERSION_FROM => "sense.pm.PL",
+ PM => {
+ "sense.pm" => '$(INST_ARCHLIBDIR)/sense.pm',
+- "sense.pod" => '$(INST_LIBDIR)/sense.pod',
++ "sense.pod" => '$(INST_ARCHLIBDIR)/sense.pod',
+ },
+ clean => { FILES => "sense.pm" },
+ );
diff --git a/debian/patches/series b/debian/patches/series
index 5766d01..a93026e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+install-in-verdor-arch.patch
pod-encoding.patch
diff --git a/debian/rules b/debian/rules
index 7564722..2bb9e57 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,7 @@ TMP = $(CURDIR)/debian/$(PACKAGE)
# better save than sorry, and better consistent with other packages ...
PERL_CURRENT := $(shell perl -MConfig -e 'print "$$Config{revision}.$$Config{patchlevel}.$$Config{subversion}"')
PERL_NEXT := $(shell perl -MConfig -e 'print "$$Config{revision}.$$Config{patchlevel}." . ($$Config{subversion} + 1)')
+ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
%:
dh $@
@@ -14,7 +15,7 @@ PERL_NEXT := $(shell perl -MConfig -e 'print "$$Config{revision}.$$Config{pat
override_dh_auto_install:
dh_auto_install
pod2man --utf8 --section 3pm \
- $(TMP)/usr/lib/perl5/common/sense.pod > \
+ $(TMP)$(ARCHLIB)/common/sense.pod > \
$(TMP)/usr/share/man/man3/common::sense.3pm
override_dh_gencontrol:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcommon-sense-perl.git
More information about the Pkg-perl-cvs-commits
mailing list