[Python-modules-commits] r12896 - in packages/pythonmagick/trunk/debian (rules)

bzed at users.alioth.debian.org bzed at users.alioth.debian.org
Wed May 12 20:55:47 UTC 2010


    Date: Wednesday, May 12, 2010 @ 20:55:45
  Author: bzed
Revision: 12896

Use PYTHON_BIN... which seems to be accepted by autofuck.

Modified:
  packages/pythonmagick/trunk/debian/rules

Modified: packages/pythonmagick/trunk/debian/rules
===================================================================
--- packages/pythonmagick/trunk/debian/rules	2010-05-12 20:21:55 UTC (rev 12895)
+++ packages/pythonmagick/trunk/debian/rules	2010-05-12 20:55:45 UTC (rev 12896)
@@ -47,16 +47,15 @@
 configure-%-stamp: $(QUILT_STAMPFN) autotools-dev-stamp
 	dh_testdir
 	mkdir $(CURDIR)/$*
-	ln -s /usr/bin/python$* $(CURDIR)/$*/python
-	cd $(CURDIR)/$*; export PATH=$(CURDIR)/$*:$$PATH ;\
-	  $(CONFENV) $(CURDIR)/configure $(CONFFLAGS)
+	cd $(CURDIR)/$* ;\
+	  PYTHON_BIN=/usr/bin/python$* $(CONFENV) $(CURDIR)/configure $(CONFFLAGS)
 	touch $@
 
 build: $(PYTHONS:%=build-%-stamp) $(PYTHONS:%=build-%-dbg-stamp)
 build-%-stamp: configure-%-stamp
 	dh_testdir
 
-	cd $(CURDIR)/$*; export PATH=$(CURDIR)/$*:$$PATH ;\
+	cd $(CURDIR)/$* ;\
 	  $(MAKE)
 	touch $@
 
@@ -79,7 +78,7 @@
 
 install: $(PYTHONS:%=install-%-stamp) $(PYTHONS:%=install-%-dbg-stamp)
 install-%-stamp: build-%-stamp install-pre-stamp
-	cd $(CURDIR)/$*; export PATH=$(CURDIR)/$*:$$PATH ;\
+	cd $(CURDIR)/$* ;\
 	  case $* in *-dbg) $(MAKE) install DESTDIR=$(CURDIR)/debian/$(PACKAGE)-dbg;; \
 	                 *) $(MAKE) install DESTDIR=$(CURDIR)/debian/$(PACKAGE);; \
 	  esac




More information about the Python-modules-commits mailing list