~ubuntu-branches/ubuntu/vivid/gdebi/vivid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Dimitri John Ledkov, Barry Warsaw, Dimitri John Ledkov
  • Date: 2014-04-02 00:18:33 UTC
  • mfrom: (34.2.4 sid)
  • Revision ID: package-import@ubuntu.com-20140402001833-mc7pf7dr1l08ifrr
Tags: 0.9.5
[ Barry Warsaw ]
* New upstream release.
* Switched all command line scripts to Python 3 and dropped Dependencies
  on Python 3.  (LP: #1283574)
* Some whitespace cleanup.
* Removed some unnecessary shebang lines.
* Set the dpkg child process write file descriptor to 'inheritable'.

[ Dimitri John Ledkov ]
* Process all packages with dh_python3, to get correct dependencies.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
 
3
PY3VER=$(shell py3versions -dvr)
 
4
DH_VERBOSE=1
 
5
 
3
6
%:
4
 
        dh $@ --with python2
 
7
        dh $@ --with python3 --buildsystem pybuild
5
8
 
6
 
clean:
7
 
        dh $@
 
9
override_dh_auto_clean:
 
10
        dh_auto_clean
8
11
        rm -rf build GDebi/Version.py po/mo
9
12
 
10
13
override_dh_auto_test:
11
 
        xvfb-run nosetests
 
14
        xvfb-run -a python$(PY3VER) setup.py test
12
15
 
13
16
override_dh_auto_install:
14
 
        dh_auto_install -- --install-scripts=/usr/share/gdebi \
15
 
                --install-lib=/usr/share/gdebi
 
17
        PYBUILD_SYSTEM=custom \
 
18
        PYBUILD_INSTALL_ARGS="python{version} setup.py install \
 
19
                --install-layout=deb \
 
20
                --root=debian/tmp \
 
21
                --install-scripts=/usr/share/gdebi \
 
22
                --install-lib=/usr/share/gdebi" \
 
23
        dh_auto_install
16
24
 
17
 
override_dh_python2:
18
 
        dh_python2 /usr/share/gdebi
 
25
override_dh_python3:
 
26
        dh_python3 --shebang=/usr/bin/python3 /usr/share/gdebi