~ubuntu-branches/ubuntu/oneiric/foomatic-gui/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Christian Perrier
  • Date: 2007-02-01 21:28:40 UTC
  • mfrom: (2.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20070201212840-myriguntibrp8qos
Tags: 0.7.7
* Non-maintainer upload to fix pending l10n issues
* Debconf translation:
  - German. Closes: #397870
  - Danish. Closes: #400787
  - Spanish. Closes: #402237
  - Galician. Closes: #405392
  - Portuguese. Closes: #408178

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# Uncomment this to turn on verbose mode.
6
6
#export DH_VERBOSE=1
7
7
 
8
 
PYTHON = python
9
 
THISPYTHON = $(shell readlink /usr/bin/python)
10
 
ifeq ($(THISPYTHON),python2.3)
11
 
        OTHERPYTHON = python2.4
12
 
else
13
 
        OTHERPYTHON = python2.3
14
 
endif
15
 
 
 
8
PYVERS = $(shell pyversions -r debian/control)
16
9
CFLAGS = -Wall -g
17
10
 
18
11
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
39
32
 
40
33
        # Add here commands to compile the package.
41
34
        make translate
42
 
        $(PYTHON) setup.py build
 
35
        (set -e; for v in $(PYVERS); do $$v setup.py build; done)
 
36
        python2.4 setup.py build_scripts --executable=/usr/bin/python --force
43
37
        #/usr/bin/docbook-to-man debian/foomatic-gui.sgml > foomatic-gui.1
44
38
 
45
39
        touch build-stamp
52
46
 
53
47
        # Add here commands to clean up after the build process.
54
48
        rm -f `find -name '*.py[co]' -o -name '*~'`
55
 
        $(PYTHON) setup.py clean -a
 
49
        (for v in $(PYVERS); do $$v setup.py clean -a; done)
56
50
        chmod +x printconf
57
51
        make clean
58
52
 
65
59
        dh_installdirs
66
60
 
67
61
        # Add here commands to install the package into debian/tmp
68
 
        $(PYTHON) setup.py install --prefix=$(CURDIR)/debian/tmp/usr --no-compile
 
62
        (set -e; for v in $(PYVERS); do $$v setup.py install --prefix=$(CURDIR)/debian/tmp/usr --no-compile; done)
 
63
        python2.4 setup.py install_scripts --force --install-dir=$(CURDIR)/debian/tmp/usr/bin
69
64
 
70
65
# Build architecture-dependent files here.
71
66
binary-arch: build install
79
74
        dh_installdocs -i
80
75
        dh_installexamples -i
81
76
        dh_install --list-missing -i --sourcedir $(CURDIR)/debian/tmp
82
 
        cp $(CURDIR)/debian/python-foomatic/usr/lib/$(THISPYTHON)/site-packages/foomatic/*.py $(CURDIR)/debian/python-foomatic/usr/lib/$(OTHERPYTHON)/site-packages/foomatic/
83
77
        dh_installmenu -i
84
78
        dh_installdebconf -i    
85
79
#       dh_installlogrotate
96
90
        dh_compress -i
97
91
        dh_fixperms -i
98
92
#       dh_perl
 
93
        dh_pycentral -i -p python-foomatic
99
94
        dh_python -i
100
95
#       dh_makeshlibs
101
96
        dh_installdeb -i