[Python-modules-commits] r12748 - in packages/python-djvulibre/trunk/debian (changelog rules)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Sun Apr 25 19:56:26 UTC 2010


    Date: Sunday, April 25, 2010 @ 19:56:23
  Author: jwilk
Revision: 12748

Rewrite debian/rules using overrides.

Modified:
  packages/python-djvulibre/trunk/debian/changelog
  packages/python-djvulibre/trunk/debian/rules

Modified: packages/python-djvulibre/trunk/debian/changelog
===================================================================
--- packages/python-djvulibre/trunk/debian/changelog	2010-04-25 19:38:15 UTC (rev 12747)
+++ packages/python-djvulibre/trunk/debian/changelog	2010-04-25 19:56:23 UTC (rev 12748)
@@ -7,8 +7,9 @@
     + In order to work around bug #541314, disable automatic cythoning sources
       with setup.py. [setup-disable-auto-cython.diff]
     + Cython sources manually in debian/rules.
+  * Rewrite debian/rules using overrides.
 
- -- Jakub Wilk <jwilk at debian.org>  Sun, 25 Apr 2010 21:35:14 +0200
+ -- Jakub Wilk <jwilk at debian.org>  Sun, 25 Apr 2010 21:55:19 +0200
 
 python-djvulibre (0.1.17-1) unstable; urgency=low
 

Modified: packages/python-djvulibre/trunk/debian/rules
===================================================================
--- packages/python-djvulibre/trunk/debian/rules	2010-04-25 19:38:15 UTC (rev 12747)
+++ packages/python-djvulibre/trunk/debian/rules	2010-04-25 19:56:23 UTC (rev 12748)
@@ -5,62 +5,41 @@
 
 PYTHONPATH = $(wildcard $(CURDIR)/build/lib.*-$(shell pyversions -dv))
 
-.PHONY: build
-build: build-arch
-# build does not depend on build-indep due to #544781/#374029
-
-.PHONY: build-arch
-build-arch: build/stamp
-
+.PHONY: override_dh_auto_build
+override_dh_auto_build: build/stamp
+	
 build/stamp: $(C_FILES)
-	dh build -s
+	dh_auto_build
 	touch $(@)
 
 %.c: %.pyx
 	cython $(<)
 
-.PHONY: build-indep
-build-indep: doc/stamp
+.PHONY: override_dh_auto_install
+ifneq ($(shell dh_listpackages | grep -x -F python-djvu-doc),)
+override_dh_auto_install: doc/stamp
+endif
+override_dh_auto_install:
+	dh_auto_install
 
 doc/stamp: build/stamp
 	$(MAKE) -C doc/ html PYTHONPATH=$(PYTHONPATH):$(CURDIR)
 	touch $(@)
 
-.PHONY: clean
-clean: 
-	dh clean
+.PHONY: override_dh_auto_clean
+override_dh_auto_clean: 
 	rm -Rf doc/build/ doc/stamp
 	rm -Rf build/
 	find . -type f -name '*.py[co]' -or -name '*.so' -or -name '*.c' -delete
 	rm -Rf *.egg-info/
 
-.PHONY: install
-install:
-	dh install
-
-.PHONY: install-arch
-install-arch: build-arch
-	dh install -s
-
-.PHONY: install-indep
-install-indep: build-indep
-	dh install -i
-
-.PHONY: binary
-binary: install-arch install-indep
-	dh binary
-
-.PHONY: binary-arch
-binary-arch: build-arch install-arch
-	dh binary-arch
-
-.PHONY: binary-indep
-binary-indep: build-indep install-indep
-	dh binary-indep
-
 .PHONY: override_dh_strip
 override_dh_strip:
 	dh_strip --dbg-package=python-djvu-dbg
 	cd debian/*-dbg/usr/lib/debug/usr/lib && mv pyshared pymodules
 
+.PHONY: build build-arch build-indep binary binary-arch binary-indep clean
+build build-arch build-indep binary binary-arch binary-indep clean:
+	dh $(@)
+
 # vim:ts=4 sw=4 noet




More information about the Python-modules-commits mailing list