debian packaging: replace %Module directive in header for older sip versions in squeeze and lucid (following 61e101dd4)

This commit is contained in:
Juergen E. Fischer 2013-06-11 09:48:40 +02:00
parent a6f9f56309
commit 0f3f440cdf

8
debian/rules vendored
View File

@ -155,9 +155,17 @@ build: build-stamp
build-stamp: debian/build/CMakeCache.txt
dh_testdir
ifneq (,$(findstring $(DISTRIBUTION),"squeeze lucid"))
perl -0777 -i.bak -pe 's/^%Module\(name=(.*),\s*version=(\d+),\s*keyword_arguments="Optional"\s*\)/%Module $$1 $$2/m;' python/core/core.sip python/gui/gui.sip python/analysis/analysis.sip
endif
# Add here commands to compile the package.
$(MAKE) -C debian/build
ifneq (,$(findstring $(DISTRIBUTION),"squeeze lucid"))
for i in python/core/core.sip python/gui/gui.sip python/analysis/analysis.sip; do mv $$i.bak $$i; done
endif
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
# Code to run the package test suite - and ignore the outcome for now
-LD_LIBRARY_PATH=$(PWD)/debian/build/output/lib:$(LD_LIBRARY_PATH) $(TESTMAKE) -C debian/build $(DEB_TEST_TARGET)