Skip to content

Commit

Permalink
debian packaging: replace %Module directive in header for older sip v…
Browse files Browse the repository at this point in the history
…ersions in squeeze and lucid (following 61e101d)
  • Loading branch information
jef-n committed Jun 11, 2013
1 parent a6f9f56 commit 0f3f440
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions debian/rules
Expand Up @@ -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)
Expand Down

0 comments on commit 0f3f440

Please sign in to comment.