[pkg-boost-commits] r14599 - boost/trunk/debian

Steven Michael Robbins smr at alioth.debian.org
Tue Sep 7 05:37:53 UTC 2010


Author: smr
Date: 2010-09-07 05:37:51 +0000 (Tue, 07 Sep 2010)
New Revision: 14599

Modified:
   boost/trunk/debian/rules
Log:
Replace "pyversions -rv" by a variable.

Modified: boost/trunk/debian/rules
===================================================================
--- boost/trunk/debian/rules	2010-09-07 04:07:26 UTC (rev 14598)
+++ boost/trunk/debian/rules	2010-09-07 05:37:51 UTC (rev 14599)
@@ -13,6 +13,8 @@
 SOVERSION = 1.44.0
 SHLIBS_VERSION = (>= 1.44.0-1)
 
+pyversions = $(shell pyversions -rv)
+
 # Boost libraries for which we want separate packages
 boost_libs := date-time filesystem graph-parallel graph iostreams math \
 	mpi mpi-python						       \
@@ -26,7 +28,7 @@
 boost_lib_test := prg_exec_monitor test_exec_monitor unit_test_framework
 
 # These are special cases for suffixes.  Generally come from --python-buildid, so begin with a dash.
-boost_suffixes_python := $(addprefix -py,$(subst .,,$(shell pyversions -rv)))
+boost_suffixes_python := $(addprefix -py,$(subst .,,$(pyversions)))
 boost_suffixes_mpi-python := $(boost_suffixes_python)
 
 # Files that are generated by filtering a template
@@ -160,7 +162,7 @@
 user-config.jam:
 	echo $(TOOLSET_CONFIG) > $@
 	echo $(MPI_CONFIG)     >> $@
-	for pyver in $(filter-out $(shell pyversions -dv),$(shell pyversions -rv)); do \
+	for pyver in $(filter-out $(shell pyversions -dv),$(pyversions)); do \
 		echo "using python : $$pyver : /usr ;" >> $@; \
 	done
 
@@ -169,7 +171,7 @@
 	dh_testdir
 
 	$(JAM) --without-python                        
-	for pyver in $(shell pyversions -rv); do \
+	for pyver in $(pyversions); do \
 	 	pyid=$$(echo $$pyver | tr -d .); \
 		echo "Building Boost.Python for python version $$pyver"; \
 	 	$(JAM) --with-python --with-mpi --python-buildid=py$$pyid python=$$pyver; \
@@ -229,7 +231,7 @@
 	@$(call cp_debhelper,libboost-mpi-python-dev,libboost-mpi-python$(PKGVERSION)-dev)
 
 	$(JAM) --prefix=$(CURDIR)/debian/tmp/usr install --without-python                        
-	for pyver in $(shell pyversions -rv); do \
+	for pyver in $(pyversions); do \
 		pyid=`echo $$pyver | tr -d .`; \
 		$(JAM) --prefix=$(CURDIR)/debian/tmp/usr install --with-python --with-mpi --python-buildid=py$$pyid python=$$pyver; \
 	done
@@ -281,7 +283,7 @@
 
 	# package libboost-mpi-python$(SOVERSION)
 	dh_install -plibboost-mpi-python$(SOVERSION)
-	for pyver in $(shell pyversions -rv); do \
+	for pyver in $(pyversions); do \
 		pyid=`echo $$pyver | tr -d .`; \
 		dh_install -plibboost-mpi-python$(SOVERSION) libs/mpi/build/__init__.py usr/lib/python$$pyver/site-packages/boost; \
 		dh_installdirs -plibboost-mpi-python$(SOVERSION) usr/lib/python$$pyver/site-packages/boost; \




More information about the pkg-boost-commits mailing list