[Python-modules-commits] r3879 - in packages/notify-python/trunk/debian (changelog rules)
lool at users.alioth.debian.org
lool at users.alioth.debian.org
Thu Dec 6 15:44:49 UTC 2007
Date: Thursday, December 6, 2007 @ 15:44:47
Author: lool
Revision: 3879
* Rewrite build completely without the autotools CDBS class and configure,
make, and make install for each requested Python version; closes: #438928.
Modified:
packages/notify-python/trunk/debian/changelog
packages/notify-python/trunk/debian/rules
Modified: packages/notify-python/trunk/debian/changelog
===================================================================
--- packages/notify-python/trunk/debian/changelog 2007-12-06 15:07:24 UTC (rev 3878)
+++ packages/notify-python/trunk/debian/changelog 2007-12-06 15:44:47 UTC (rev 3879)
@@ -11,12 +11,13 @@
[ Loic Minier ]
* Add /svn to the Vcs-Svn URL to allow copy-paste in svn+ssh:// URLs. :-P
- * Sourceful upload causes rebuild for python2.5; closes: #438928.
* Depends on ${misc:Depends}.
* Fix usage of spaces versus tab in rules; the fix for #434714 was in place,
but had a syntax error; thanks Martin Pitt; closes: #434714.
* Ship some testsuite scripts as examples; thanks Sebastien Bacher;
closes: #440244.
+ * Rewrite build completely without the autotools CDBS class and configure,
+ make, and make install for each requested Python version; closes: #438928.
-- Loic Minier <lool at dooz.org> Thu, 06 Dec 2007 15:55:13 +0100
Modified: packages/notify-python/trunk/debian/rules
===================================================================
--- packages/notify-python/trunk/debian/rules 2007-12-06 15:07:24 UTC (rev 3878)
+++ packages/notify-python/trunk/debian/rules 2007-12-06 15:44:47 UTC (rev 3879)
@@ -1,14 +1,68 @@
#!/usr/bin/make -f
-DEB_PYTHON_SYSTEM := pysupport
-
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
-clean::
- rm -f src/pynotify.c
+CFLAGS += -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2)
-binary-install/python-notify::
- dh_pysupport -p$(cdbs_curpkg)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+configure_flags += --prefix=/usr --build=$(DEB_BUILD_GNU_TYPE)
+
+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+ configure_flags += --host=$(DEB_HOST_GNU_TYPE)
+endif
+
+PYVERS := $(shell pyversions --requested --version debian/control)
+
+build-%/configure-stamp: debian/stamp-patched
+ dh_testdir
+ mkdir -p build-$*
+ cd build-$* && \
+ PYTHON=/usr/bin/python$* CFLAGS="$(CFLAGS)" \
+ $(CURDIR)/configure $(configure_flags)
+ touch $@
+
+build-%/build-stamp: build-%/configure-stamp
+ dh_testdir
+ $(MAKE) -C build-$*
+ touch $@
+
+build: $(PYVERS:%=build-%/build-stamp)
+
+install-%: build-%/build-stamp
+ dh_testdir
+ dh_testroot
+ $(MAKE) -C build-$* install DESTDIR=$(CURDIR)/debian/python-notify
+
+install: build $(PYVERS:%=install-%)
+ dh_install
+
+clean:: reverse-patches
+ dh_testdir
+ dh_testroot
+ rm -Rf build-*
+ dh_clean src/pynotify.c
+
+binary-indep: install
+
+binary-arch: install
+ dh_testdir
+ dh_testroot
+ dh_installdocs -s AUTHORS NEWS
+ dh_installexamples -s
+ dh_installchangelogs -s ChangeLog
+ dh_strip -s
+ dh_link -s
+ dh_compress -s -X.py -X.glade
+ dh_fixperms -s
+ dh_pysupport -s
+ dh_installdeb -s
+ dh_shlibdeps -s
+ dh_gencontrol -s
+ dh_md5sums -s
+ dh_builddeb -s
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install
+.SECONDARY: $(PYVERS:%=build-%/configure-stamp) $(PYVERS:%=build-%/build-stamp)
More information about the Python-modules-commits
mailing list