~mhr3/dee/add-changesets

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Michael Terry
  • Date: 2012-11-05 20:42:44 UTC
  • mfrom: (130.1.122 ubuntu)
  • mto: This revision was merged to the branch mainline in revision 379.
  • Revision ID: michael.terry@canonical.com-20121105204244-w9cdwbrcnetho3bm
move debian/ packaging inline

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
 
 
4
# Uncomment this to turn on verbose mode.
 
5
#export DH_VERBOSE=1
 
6
 
 
7
%:
 
8
        dh --with python2 --with autoreconf $@
 
9
 
 
10
override_dh_auto_configure:
 
11
        dh_auto_configure -- --enable-gtk-doc
 
12
 
 
13
override_dh_install:
 
14
        # install the python3 gir override file as well
 
15
        PYTHON=python3 ./configure --prefix=/usr
 
16
        cd bindings/python/ && DESTDIR=../../debian/tmp make install && cd ../..
 
17
        rm debian/tmp/usr/lib/*.la
 
18
        rm debian/tmp/usr/lib/python*/dist-packages/gi/overrides/*.pyc
 
19
        rm debian/tmp/usr/lib/python*/dist-packages/gi/overrides/*.pyo
 
20
        dh_install --fail-missing
 
21
        dh_python2 -pgir1.2-dee-1.0
 
22
 
 
23
override_dh_gencontrol:
 
24
        dh_girepository
 
25
        dh_gencontrol
 
26
 
 
27
override_dh_strip:
 
28
        dh_strip --dbg-package=libdee-1.0-4-dbg
 
29
 
 
30
override_dh_auto_test:
 
31
 
 
32
.PHONY: override_dh_strip