[SCM] polybori: Polynomials over Boolean Rings branch, master, updated. upstream/0.8.2-36-g09c78c6

Alexander Dreyer adreyer at gmx.de
Tue Jan 1 22:42:35 UTC 2013


The following commit has been merged in the master branch:
commit 09c78c6b54f9cf6535315d943d9e8b095c3b6e21
Author: Alexander Dreyer <adreyer at gmx.de>
Date:   Tue Jan 1 23:29:58 2013 +0100

    Support multiple python-versions

diff --git a/debian/rules b/debian/rules
index 586e106..b677bc6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,13 +10,14 @@ SCONSPARFLAGS=$(subst parallel=,-j, $(NUMJOBS))
 %:
 	dh $@ --with python2
 
-TMPDEST=debian/tmp/
-PYTHON=/usr/bin/python$*
-PYTHONSITE=`/usr/bin/python$* -c 'import setuptools; print setuptools.distutils.sysconfig.get_python_lib() '`
+
+build-python%: TMPDEST=debian/tmp/
+build-python%: PYTHON=/usr/bin/python$*
+build-python%: PYTHONSITE=`/usr/bin/python$* -c 'import setuptools; print setuptools.distutils.sysconfig.get_python_lib() '`
 
 override_dh_auto_configure:
-	
-override_dh_auto_build:
+
+build-python%:	
 	scons $(SCONSPARFLAGS) prepare-install prepare-devel INSTALLDIR=$(TMPDEST)/usr/share/polybori \
 		PYINSTALLPREFIX=$(TMPDEST)/$(PYTHONSITE) MANDIR=$(TMPDEST)/usr/share/man \
 		PREFIX=$(TMPDEST)/usr EPREFIX=$(TMPDEST)/usr/bin \
@@ -28,9 +29,15 @@ override_dh_auto_build:
 		LIBRARY_VERSION="2.0.0" SHLIBVERSIONSUFFIX='-0.8.so.2.0.0' \
 		DEVEL_LIB_PREFIX=$(TMPDEST)/usr/lib/$(DEB_HOST_MULTIARCH) \
 		PKGCONFIGPATH=$(TMPDEST)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ TMPINSTALLDIR=$(TMPDEST)
-	
-override_dh_auto_install:
-	#	-mkdir -p $(TMPDEST)
+
+override_dh_auto_build: $(PYVERS:%=build-python%)
+
+install-python%: TMPDEST=debian/tmp/
+install-python%: PYTHON=/usr/bin/python$*
+install-python%: PYTHONSITE=`/usr/bin/python$* -c 'import setuptools; print setuptools.distutils.sysconfig.get_python_lib() '`
+
+
+install-python%:
 	scons $(SCONSPARFLAGS) install devel-install INSTALLDIR=$(TMPDEST)/usr/share/polybori \
 		PYINSTALLPREFIX=$(TMPDEST)/$(PYTHONSITE) MANDIR=$(TMPDEST)/usr/share/man \
 		PREFIX=$(TMPDEST)/usr EPREFIX=$(TMPDEST)/usr/bin \
@@ -42,9 +49,13 @@ override_dh_auto_install:
 		LIBRARY_VERSION="2.0.0" SHLIBVERSIONSUFFIX='-0.8.so.2.0.0' \
 		DEVEL_LIB_PREFIX=$(TMPDEST)/usr/lib/$(DEB_HOST_MULTIARCH) \
                 PKGCONFIGPATH=$(TMPDEST)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ TMPINSTALLDIR=$(TMPDEST)
-override_dh_auto_test:
+
+override_dh_auto_install: $(PYVERS:%=install-python%)
+
+test-python%:
 	ipbori/ipbori -t 
 
+override_dh_auto_test: $(PYVERS:%=test-python%)
 
 override_dh_clean:
 	rm -f doc/tutorial/tutorial.4ct

-- 
polybori: Polynomials over Boolean Rings



More information about the debian-science-commits mailing list