Skip to content
Permalink
Browse files

debian packaging: replace %Module directive in header for older sip v…

…ersions in squeeze and lucid (following 61e101d)
  • Loading branch information
jef-n committed Jun 11, 2013
1 parent a6f9f56 commit 0f3f440cdf0f194c5c1558b936b9058924a324c8
Showing with 8 additions and 0 deletions.
  1. +8 −0 debian/rules
@@ -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)

0 comments on commit 0f3f440

Please sign in to comment.
You can’t perform that action at this time.