r14028 - in /trunk/text-bidi/debian: changelog rules
gregoa-guest at users.alioth.debian.org
gregoa-guest at users.alioth.debian.org
Sat Feb 2 21:51:25 UTC 2008
Author: gregoa-guest
Date: Sat Feb 2 21:51:25 2008
New Revision: 14028
URL: http://svn.debian.org/wsvn/?sc=1&rev=14028
Log:
debian/rules:
- remove configure{,-stamp} targets
- use $(PERL) instead of hard-coded perl
- call make distclean in clean target conditionally
- create install-stamp target depending on build-stamp
- remove some unneeded dh_* calls
- use PREFIX and DESTDIR for make install
Modified:
trunk/text-bidi/debian/changelog
trunk/text-bidi/debian/rules
Modified: trunk/text-bidi/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/text-bidi/debian/changelog?rev=14028&op=diff
==============================================================================
--- trunk/text-bidi/debian/changelog (original)
+++ trunk/text-bidi/debian/changelog Sat Feb 2 21:51:25 2008
@@ -10,8 +10,15 @@
* Add debian/watch.
* debian/rules: delete /usr/share/perl5 only if it exists (closes: #463532).
* Set debhelper compatibility level to 6.
+ * debian/rules:
+ - remove configure{,-stamp} targets
+ - use $(PERL) instead of hard-coded perl
+ - call make distclean in clean target conditionally
+ - create install-stamp target depending on build-stamp
+ - remove some unneeded dh_* calls
+ - use PREFIX and DESTDIR for make install
- -- gregor herrmann <gregor+debian at comodo.priv.at> Sat, 02 Feb 2008 22:41:23 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at> Sat, 02 Feb 2008 22:42:09 +0100
text-bidi (0.03-3) unstable; urgency=low
Modified: trunk/text-bidi/debian/rules
URL: http://svn.debian.org/wsvn/trunk/text-bidi/debian/rules?rev=14028&op=diff
==============================================================================
--- trunk/text-bidi/debian/rules (original)
+++ trunk/text-bidi/debian/rules Sat Feb 2 21:51:25 2008
@@ -9,54 +9,43 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-
-
-
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- # Add here commands to configure the package.
-
- touch configure-stamp
-
+ifndef PERL
+PERL = /usr/bin/perl
+endif
build: build-stamp
-
-build-stamp: configure-stamp
+build-stamp:
dh_testdir
- # Add here commands to compile the package.
- perl Makefile.PL INSTALLDIRS=vendor
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
$(MAKE)
$(MAKE) test
-
touch $@
clean:
dh_testdir
dh_testroot
- rm -f build-stamp configure-stamp
+
+ dh_clean build-stamp install-stamp Makefile.old
# Add here commands to clean up after the build process.
- perl Makefile.PL
- #$(MAKE) swig-clean
- $(MAKE) clean
+ [ ! -f Makefile ] || $(MAKE) distclean
- dh_clean Makefile.old
-
-install: build
+install: install-stamp
+install-stamp: build-stamp
dh_testdir
dh_testroot
- dh_clean -k
+ dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/libtext-bidi-perl.
- $(MAKE) install PREFIX=$(CURDIR)/debian/libtext-bidi-perl/usr
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/libtext-bidi-perl PREFIX=/usr
[ ! -d $(CURDIR)/debian/libtext-bidi-perl/usr/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/libtext-bidi-perl/usr/share/perl5/
if [ ! -s $(CURDIR)/debian/libtext-bidi-perl/usr/lib/perl5/auto/Text/Bidi/private/private.bs ]; then \
rm $(CURDIR)/debian/libtext-bidi-perl/usr/lib/perl5/auto/Text/Bidi/private/private.bs; \
fi
+ touch $@
# Build architecture-independent files here.
binary-indep: build install
@@ -68,13 +57,10 @@
dh_testroot
dh_installchangelogs Changes
dh_installdocs
- dh_installman
- dh_link
dh_strip
dh_compress
dh_fixperms
dh_perl
- dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
@@ -82,4 +68,4 @@
dh_builddeb
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install
More information about the Pkg-perl-cvs-commits
mailing list