summaryrefslogtreecommitdiffstats
path: root/dilos/dependencies/sip4-tqt/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'dilos/dependencies/sip4-tqt/debian/rules')
-rwxr-xr-xdilos/dependencies/sip4-tqt/debian/rules44
1 files changed, 6 insertions, 38 deletions
diff --git a/dilos/dependencies/sip4-tqt/debian/rules b/dilos/dependencies/sip4-tqt/debian/rules
index 2786cf6f6..41fc234a9 100755
--- a/dilos/dependencies/sip4-tqt/debian/rules
+++ b/dilos/dependencies/sip4-tqt/debian/rules
@@ -12,9 +12,12 @@ DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
&& echo xz || echo bzip2)
endif
+export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+export DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
+export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
export DH_OPTIONS
-PY2_PROVIDES=sip-tqt-api-7.0, sip-tqt-api-7.1
PY3_PROVIDES=sip-tqt-py3api-7.0, sip-tqt-py3api-7.1
PYDIST=sip $(shell python -c "a=[i.strip() for i in '$(PY3_PROVIDES)'.split(',')]; print sorted(a, reverse=True)[0]")
@@ -28,12 +31,9 @@ else
CFLAGS += -O2 -g
endif
-PYTHONS := $(shell pyversions -vr) $(shell py3versions -vd)
-
-DEB_PYTHON_SYSTEM = $(if $(wildcard /usr/bin/dh_python2),,pysupport)
-DH_PYTHON2 = $(if $(wildcard /usr/bin/dh_python2),dh_python2,dh_pysupport)
+PYTHONS := $(shell py3versions -vd)
--include /usr/share/python/python.mk
+-include /usr/share/python3/python.mk
ifeq (,$(py_sitename))
py_sitename = site-packages
py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
@@ -92,7 +92,6 @@ install-arch: build
dh_testdir
dh_testroot
dh_prep -a
- echo "python:Provides=$(PY2_PROVIDES)" >> debian/python-sip-tqt.substvars
echo "python3:Provides=$(PY3_PROVIDES)" >> debian/python3-sip-tqt.substvars
dh_installdirs -a
# This is needed to enforce that the install-arch-% rules are
@@ -104,16 +103,10 @@ install-arch: build
$(MAKE) -f debian/rules install-arch-$$p;\
done
-# for i in $$(find debian/python-sip-tqt-dbg -name '*.so'); do \
-# b=$$(basename $$i .so); \
-# mv $$i $$(dirname $$i)/$${b}_d.so; \
-# done
# for i in $$(find debian/python3-sip-tqt-dbg -name '*.so'); do \
# b=$$(basename $$i .so); \
# mv $$i $$(dirname $$i)/$${b}_d.so; \
# done
-# find debian/python-sip-tqt-dbg ! -type d ! -name '*_d.*' | xargs rm -f
-# find debian/python-sip-tqt-dbg -depth -empty -exec rmdir {} \;
# find debian/python3-sip-tqt-dbg ! -type d ! -name '*_d.*' | xargs rm -f
# find debian/python3-sip-tqt-dbg -depth -empty -exec rmdir {} \;
@@ -134,21 +127,6 @@ install-arch-3.%:
mkdir -p debian/python3-sip-tqt-dev/usr/lib/python3.$*/dist-packages
install -m 644 -o root -g root sip_tqt_distutils.py debian/python3-sip-tqt-dev/usr/lib/python3.$*/dist-packages
-install-arch-%:
- $(MAKE) -C build-$* install DESTDIR=$(CURDIR)/debian/tmp
-# $(MAKE) -C dbg-build-$* install DESTDIR=$(CURDIR)/debian/python-sip-tqt-dbg
- mkdir -p debian/python-sip-tqt/usr/lib/python$*/$(call py_sitename,$*)/
- install -m 644 -o root -g root debian/sip_tqt_config.py debian/python-sip-tqt/usr/lib/python$*/$(call py_sitename,$*)/sip_tqt_config.py
- install -m 644 -o root -g root build-$*/sip_tqt_config.py debian/python-sip-tqt/usr/lib/python$*/$(call py_sitename,$*)/sip_tqt_config_nd.py
-# install -m 644 -o root -g root dbg-build-$*/sip_tqt_config.py debian/python-sip-tqt-dbg/usr/lib/python$*/$(call py_sitename,$*)/sip_tqt_config_d.py
- mkdir -p debian/python-sip-tqt-dev$$(python$* -c 'from distutils import sysconfig; print (sysconfig.get_python_inc())')
- install -m 644 -o root -g root siplib/sip-tqt.h debian/python-sip-tqt-dev$$(python$* -c 'from distutils import sysconfig; print (sysconfig.get_python_inc())')/
-# mkdir -p debian/python-sip-tqt-dev$$(python$*-dbg -c 'from distutils import sysconfig; print (sysconfig.get_python_inc())')
-# ln -s ../$$(python$* -c 'from distutils import sysconfig; print (sysconfig.get_python_inc())' | xargs basename)/sip-tqt.h \
-# debian/python-sip-tqt-dev/$$(python$*-dbg -c 'from distutils import sysconfig; print (sysconfig.get_python_inc())')/sip-tqt.h
- mkdir -p debian/python-sip-tqt-dev/usr/lib/python$*/$(call py_sitename,$*)
- install -m 644 -o root -g root sip_tqt_distutils.py debian/python-sip-tqt-dev/usr/lib/python$*/$(call py_sitename,$*)
-
# Must not depend on anything. This is to be called by
# binary-arch/binary-indep
@@ -163,24 +141,14 @@ binary-common:
dh_link
# don't call strip twice, it's in binary-common
ifneq (,$(findstring -a, $(DH_OPTIONS)))
- DH_OPTIONS= dh_strip -ppython-sip-tqt-dev
- DH_OPTIONS= dh_strip -ppython-sip-tqt -Npython-sip-tqt-dev --dbg-package=python-sip-tqt-dbg
DH_OPTIONS= dh_strip -ppython3-sip-tqt-dev
DH_OPTIONS= dh_strip -ppython3-sip-tqt -Npython3-sip-tqt-dev --dbg-package=python3-sip-tqt-dbg
- rm -rf debian/python-sip-tqt-dbg/usr/share/doc/python-sip-tqt-dbg
-# mkdir -p debian/python-sip-tqt-dbg/usr/share/doc
-# ln -s python-sip-tqt debian/python-sip-tqt-dbg/usr/share/doc/python-sip-tqt-dbg
rm -rf debian/python3-sip-tqt-dbg/usr/share/doc/python3-sip-tqt-dbg
# mkdir -p debian/python3-sip-tqt-dbg/usr/share/doc
# ln -s python3-sip-tqt debian/python3-sip-tqt-dbg/usr/share/doc/python3-sip-tqt-dbg
endif
dh_compress -X.inv
dh_fixperms
-ifneq (dh_pysupport,${DH_PYTHON2})
- ${DH_PYTHON2} --no-dbg-cleaning
-else
- ${DH_PYTHON2}
-endif
dh_python3 --no-dbg-cleaning
dh_installdeb
dh_shlibdeps