r12488 - /trunk/libpoe-component-client-keepalive-perl/debian/rules
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Thu Jan 10 21:10:00 UTC 2008
Author: dmn
Date: Thu Jan 10 21:10:00 2008
New Revision: 12488
URL: http://svn.debian.org/wsvn/?sc=1&rev=12488
Log:
Stop setting VENDORARCH&co and remove usr/lib/perl5 if it is created by buggy MakeMaker
Modified:
trunk/libpoe-component-client-keepalive-perl/debian/rules
Modified: trunk/libpoe-component-client-keepalive-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libpoe-component-client-keepalive-perl/debian/rules?rev=12488&op=diff
==============================================================================
--- trunk/libpoe-component-client-keepalive-perl/debian/rules (original)
+++ trunk/libpoe-component-client-keepalive-perl/debian/rules Thu Jan 10 21:10:00 2008
@@ -23,15 +23,8 @@
build-stamp:
dh_testdir
- # As this is a architecture independent package, we are not
- # supposed to install stuff to /usr/lib. MakeMaker creates
- # the dirs, we prevent this by setting the INSTALLVENDORARCH
- # and VENDORARCHEXP environment variables.
-
# Add commands to compile the package here
- $(PERL) Makefile.PL INSTALLDIRS=vendor \
- INSTALLVENDORARCH=/usr/share/perl5/ \
- VENDORARCHEXP=/usr/share/perl5/
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
$(MAKE)
$(MAKE) test
@@ -52,8 +45,10 @@
dh_testroot
dh_clean -k
- # Add commands to install the package into debian/$PACKAGE_NAME here
+ # Add commands to install the package into $(TMP) here
$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+
+ [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
touch $@
More information about the Pkg-perl-cvs-commits
mailing list