summaryrefslogtreecommitdiffstats
path: root/ubuntu/maverick/dependencies/python-tqt/debian/rules
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2014-01-18 15:58:50 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-01-18 15:58:50 +0100
commit7ced55348726b8185fcd561656371e6d7b4690f3 (patch)
tree6ee52488ef48655b6034170ed23551175aea1322 /ubuntu/maverick/dependencies/python-tqt/debian/rules
parent35cbc51a3b1ef1ad7a619826d3877b37f6da515b (diff)
downloadtde-packaging-7ced55348726b8185fcd561656371e6d7b4690f3.tar.gz
tde-packaging-7ced55348726b8185fcd561656371e6d7b4690f3.zip
Build python-tqt as python module on Debian and Ubuntu
Diffstat (limited to 'ubuntu/maverick/dependencies/python-tqt/debian/rules')
-rwxr-xr-xubuntu/maverick/dependencies/python-tqt/debian/rules12
1 files changed, 7 insertions, 5 deletions
diff --git a/ubuntu/maverick/dependencies/python-tqt/debian/rules b/ubuntu/maverick/dependencies/python-tqt/debian/rules
index b0acb35f6..b8b687940 100755
--- a/ubuntu/maverick/dependencies/python-tqt/debian/rules
+++ b/ubuntu/maverick/dependencies/python-tqt/debian/rules
@@ -53,7 +53,7 @@ build-%/configure-stamp:
| python$* ../configure.py \
-c -n /usr/include/tqscintilla \
-o /usr/lib -u -j $(SPLIT) \
- -d /usr/lib/python$*/$(call py_sitename,$*) \
+ -d /usr/lib/python$*/$(call py_sitename,$*)/python_tqt \
-l /usr/include/python$* \
-v /usr/share/sip/tqt \
-m /usr/lib/python$*/config \
@@ -67,7 +67,7 @@ dbg-build-%/configure-stamp:
| python$*-dbg ../configure.py \
-c -n /usr/include/tqscintilla \
-o /usr/lib -u -j $(SPLIT) \
- -d /usr/lib/python$*/$(call py_sitename,$*) \
+ -d /usr/lib/python$*/$(call py_sitename,$*)/python_tqt \
-l /usr/include/python$*_d \
-v /usr/share/sip/tqt \
-m /usr/lib/python$*/config_d \
@@ -92,7 +92,7 @@ install-indep: configure
dh_clean -k -i
dh_installdirs -i
for version in ${PYTHONS}; do\
- pylib=$$(python$$version -c 'from distutils import sysconfig; print sysconfig.get_python_lib()'); \
+ pylib=$$(python$$version -c 'from distutils import sysconfig; print sysconfig.get_python_lib()')/python_tqt; \
mkdir -p debian/python-tqt-dev/$$pylib;\
install -m 644 -o root -g root build-$$version/pyqtconfig.py debian/python-tqt-dev/$$pylib;\
done
@@ -107,8 +107,10 @@ install-arch: build
$(MAKE) -C build-$$version install DESTDIR=$(CURDIR)/debian/tmp;\
done
for version in ${PYTHONS}; do \
- pylib=$$(python$$version -c 'from distutils import sysconfig; print sysconfig.get_python_lib()'); \
+ pylib=$$(python$$version -c 'from distutils import sysconfig; print sysconfig.get_python_lib()')/python_tqt; \
$(MAKE) -C dbg-build-$$version install DESTDIR=$(CURDIR)/debian/python-tqt-dbg;\
+ mkdir -p debian/python-tqt/$$pylib;\
+ touch debian/python-tqt/$$pylib/__init__.py;\
mkdir -p debian/python-tqt-gl-dbg/$$pylib;\
mv debian/python-tqt-dbg/$$pylib/qtgl.so \
debian/python-tqt-gl-dbg/$$pylib/;\
@@ -158,7 +160,7 @@ endif
dh_compress -X.py -X.bmp -X.ui -X.sql
dh_fixperms
${DH_PYTHON2}
- dh_sip
+ dh_sip_tqt
dh_lintian
dh_installdeb
dh_shlibdeps