~crass/tryton/server

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Mathias Behrle
  • Date: 2013-11-25 16:29:03 UTC
  • Revision ID: git-v1:8fb66b8ec71195582867746dd396ebfa5d2305fb
Changing to buildsystem pybuild.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
 
3
# needed for pbuilder
 
4
export LC_ALL=C.UTF-8
 
5
 
 
6
export PYBUILD_DESTDIR_python2=debian/tryton-server
 
7
 
 
8
# Don't run tests for Tryton packages, they try to download dependencies from pypi
 
9
export PYBUILD_DISABLE_python2.7=test
 
10
 
3
11
%:
4
 
        dh ${@} --with python2,sphinxdoc
5
 
 
6
 
PACKAGE_NAME = $(shell python setup.py --name)
 
12
        dh ${@} --with python2,sphinxdoc --buildsystem=pybuild
7
13
 
8
14
override_dh_auto_clean:
9
15
        dh_auto_clean
10
16
        rm -rf build
11
17
 
12
18
override_dh_auto_build:
13
 
        mv $(PACKAGE_NAME).egg-info $(PACKAGE_NAME).hen-info
14
 
        mv PKG-INFO PKG-INFO.hen
15
19
        dh_auto_build
16
20
        sphinx-build doc build/html
17
21
 
18
 
override_dh_auto_install:
19
 
        dh_auto_install
20
 
        rm -rf *.egg-info
21
 
        mv $(PACKAGE_NAME).hen-info $(PACKAGE_NAME).egg-info
22
 
        mv PKG-INFO.hen PKG-INFO
23
 
 
24
22
override_dh_installinit:
25
23
        dh_installinit --update-rcd-params='defaults 21'
26
24