[libimager-perl] 01/02: Use $Config{vendorarch} to get library path in debian/rules.

gregor herrmann gregoa at debian.org
Mon Aug 11 17:08:17 UTC 2014


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libimager-perl.

commit 7839739a9a5430733a4ca6b7d498ddd1b4d480e5
Author: gregor herrmann <gregoa at debian.org>
Date:   Mon Aug 11 19:02:48 2014 +0200

    Use $Config{vendorarch} to get library path in debian/rules.
---
 debian/rules | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 5e4a897..8239533 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,8 @@
 PACKAGE = $(shell dh_listpackages)
 TMP     = $(CURDIR)/debian/$(PACKAGE)
 
+ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
+
 # this number comes from IMAGER_API_VERSION in imexttypes.h
 # it is used for the Provides: perl-imagerapi-XX relationship
 # it needs to be updated manually because of the implications on the archive
@@ -48,7 +50,7 @@ override_dh_auto_install:
 	dh_auto_install
 	# Imager::Font::Type1 is a wrapper around Imager::Font::T1
 	# which we don't build; cf. #638762
-	$(RM) -v $(TMP)/usr/lib/perl5/Imager/Font/Type1.pm \
+	$(RM) -v $(TMP)/$(ARCHLIB)/Imager/Font/Type1.pm \
 		$(TMP)/usr/share/man/man3/Imager::Font::Type1.3pm
 
 override_dh_installexamples:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libimager-perl.git



More information about the Pkg-perl-cvs-commits mailing list