~ubuntu-branches/ubuntu/trusty/mercurial/trusty-security

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Tristan Seligmann
  • Date: 2013-12-08 02:03:54 UTC
  • Revision ID: package-import@ubuntu.com-20131208020354-2vh3dwrrg9s0923n
Tags: 2.8.1-2
* Pass -f to rm so that repeated builds succeed (Closes: #731623).
* Fix installation in the case where there is more than one supported
  version of Python (Closes: #729153).
  - Thanks to Faheem Mitha <faheem@faheem.info> for the patch.
* Make test-shelve.t more lenient. This should hopefully fix the
  semi-intermittent build failures on some architectures with slower
  buildds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
        dh $@ --with python2,bash-completion
9
9
 
10
10
PYVERS=$(shell pyversions -vs)
 
11
PYVER_DEFAULT=$(shell pyversions -vd)
11
12
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
12
13
 
13
14
override_dh_auto_build:
77
78
                debian/cacerts.hgrc \
78
79
                $(CURDIR)/debian/mercurial-common/etc/mercurial/hgrc.d/cacerts.rc
79
80
        # Move templates and help installed by setup.py to their FHS-correct location
80
 
        mv $(CURDIR)/debian/mercurial-common/usr/lib/python*/dist-packages/mercurial/templates $(CURDIR)/debian/mercurial-common/usr/lib/python*/dist-packages/mercurial/help $(CURDIR)/debian/mercurial-common/usr/share/mercurial
81
 
        mv $(CURDIR)/debian/mercurial-common/usr/lib/python*/dist-packages/mercurial/locale $(CURDIR)/debian/mercurial-common/usr/share
 
81
        mv $(CURDIR)/debian/mercurial-common/usr/lib/python$(PYVER_DEFAULT)/dist-packages/mercurial/templates \
 
82
           $(CURDIR)/debian/mercurial-common/usr/lib/python$(PYVER_DEFAULT)/dist-packages/mercurial/help \
 
83
           $(CURDIR)/debian/mercurial-common/usr/share/mercurial
 
84
        mv $(CURDIR)/debian/mercurial-common/usr/lib/python$(PYVER_DEFAULT)/dist-packages/mercurial/locale \
 
85
           $(CURDIR)/debian/mercurial-common/usr/share
 
86
        # If more than one Python version is supported, clean up the templates
 
87
        # and help installed for the other versions
 
88
        -rm -rf $(CURDIR)/debian/mercurial-common/usr/lib/python*/dist-packages/mercurial/templates \
 
89
                $(CURDIR)/debian/mercurial-common/usr/lib/python*/dist-packages/mercurial/help \
 
90
                $(CURDIR)/debian/mercurial-common/usr/lib/python*/dist-packages/mercurial/locale \
82
91
        # remove arch-dependent python stuff
83
92
        find debian/mercurial-common/usr/lib \
84
93
                -name '*.so' ! -type d -delete , \
96
105
 
97
106
override_dh_clean:
98
107
        dh_clean
99
 
        rm tests/test-check-pyflakes.t
 
108
        -rm -f tests/test-check-pyflakes.t
100
109
 
101
110
mercurial/__version__.py:
102
111
        @echo "$@ is missing (you probably call 'make clean' directly)."