~barry/ubuntu/precise/dbus-python/python3-from-upstream

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Barry Warsaw
  • Date: 2012-01-14 03:29:49 UTC
  • Revision ID: barry@python.org-20120114032949-e213ux3hedna3cov
Try (somewhat unsuccessfully) to get the python-dbus-dbug package to install
_dbus_{_glib,}_bindings_d.so.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# Copyright � 2006 Sjoerd Simons <sjoerd@debian.org>
5
5
 
6
6
DH_VERBOSE=1
 
7
DEB_BUILD_OPTIONS=nocheck
7
8
 
8
9
# These are used for cross-compiling and for saving the configure script
9
10
# from having to guess our platform (since we know it already)
89
90
dbg-install-%:
90
91
        dh_testdir
91
92
        dh_testroot
92
 
        $(MAKE) -C build-$*-dbg install DESTDIR=$(CURDIR)/debian/python-dbus-$*-dbg
93
 
        find debian/python-dbus-$*-dbg ! -type d ! -name '*.so' -print0 | xargs -0 rm -f
94
 
        find debian/python-dbus-$*-dbg -depth -empty -exec rmdir {} \;
95
 
        for i in $$(find debian/python-dbus-$*-dbg -name '*.so'); do \
 
93
        case $* in \
 
94
                2.*) \
 
95
                        destdir=$(CURDIR)/debian/python-dbus-2-dbg; \
 
96
                        export destdir; \
 
97
                        ;; \
 
98
                3.*) \
 
99
                        destdir=$(CURDIR)/debian/python-dbus-3-dbg; \
 
100
                        export destdir; \
 
101
                        ;; \
 
102
        esac; \
 
103
        $(MAKE) -C build-$*-dbg install DESTDIR=$$destdir; \
 
104
        for i in $$(find $$destdir -name '*.so'); do \
96
105
                b=$$(basename $$i .so); \
97
106
                mv $$i $$(dirname $$i)/$${b}_d.so; \
98
 
        done
 
107
        done; \
 
108
        find $$destdir ! -type d ! -name '*.so' -print0 | xargs -0 rm -f; \
 
109
        find $$destdir -depth -empty -exec rmdir {} \;
99
110
 
100
111
install-arch: build-arch install-clean \
101
112
              $(PYVERS:%=install-%) $(PYVERS:%=dbg-install-%) \
145
156
binary-arch: build-arch install-arch
146
157
        dh_testdir
147
158
        dh_testroot
148
 
        dh_install -s
 
159
        dh_install -ppython-dbus-dbg --sourcedir=debian/python-dbus-2-dbg
 
160
        dh_install -Npython-dbus-dbg 
149
161
        dh_installdocs -s
150
162
        dh_installchangelogs ChangeLog -s
151
163
        dh_installexamples -s
154
166
        dh_link -s
155
167
        dh_compress -s -X.py -X.js
156
168
        dh_fixperms -s
157
 
        dh_python2 -s -v
158
 
        dh_python3 -s -v
 
169
        dh_python2 -s
 
170
        dh_python3 -s
159
171
        dh_installdeb -s
160
172
        dh_shlibdeps -s
161
173
        dh_gencontrol -s