~ubuntu-branches/ubuntu/raring/bzr-stats/raring-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2011-03-07 05:25:05 UTC
  • Revision ID: james.westby@ubuntu.com-20110307052505-1hjwycltc02hpezm
Tags: 0.1.0-2
* Switch to dh_python2. Closes: #616766
* Switch to debhelper 7, drop cdbs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
DEB_PYTHON_SYSTEM=pycentral
4
 
 
5
 
include /usr/share/cdbs/1/rules/debhelper.mk
6
 
include /usr/share/cdbs/1/class/python-distutils.mk
7
 
 
8
 
clean::
9
 
        -rm -rf build test*.tmp 
10
 
        find . -name "*.pyc" -print0 | xargs -0 rm -f
 
3
%:
 
4
        dh --with python2 --buildsystem=python_distutils $*
11
5
 
12
6
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
13
7
CONCURRENCY = BZR_CONCURRENCY=$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
14
8
endif
15
9
 
16
10
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
17
 
common-post-build-indep::
 
11
override_dh_auto_test:
18
12
        $(CONCURRENCY) BZR_PLUGINS_AT=stats@$(CURDIR) /usr/bin/bzr selftest -s bp.stats \
19
13
            -v --parallel=fork
20
14
endif