File: rules

package info (click to toggle)
pyqt5webengine 5.15.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 372 kB
  • sloc: python: 1,260; makefile: 19; sh: 13
file content (25 lines) | stat: -rwxr-xr-x 1,079 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/make -f

export QT_SELECT=5
export BASE_CONFIGURE_ARGS={interpreter} /usr/bin/sip-build --verbose --no-make \
	--build-dir {build_dir} \
	--qmake-setting 'QMAKE_CXXFLAGS += "$(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)"' \
	--qmake-setting 'QMAKE_LFLAGS += "$(shell dpkg-buildflags --get LDFLAGS)"'

export PYBUILD_NAME=pyqt5.qtwebengine
export PYBUILD_SYSTEM=custom
export PYBUILD_CONFIGURE_ARGS=$(BASE_CONFIGURE_ARGS) --pep484-pyi
export PYBUILD_CONFIGURE_ARGS_python3-dbg=$(BASE_CONFIGURE_ARGS)
export PYBUILD_BEFORE_BUILD_python3-dbg=sed -i 's/-isystem/-I/' {build_dir}/*/Makefile  # See bug #755767
export PYBUILD_BUILD_ARGS=$(MAKE) -C {build_dir}
export PYBUILD_INSTALL_ARGS=$(MAKE) -C {build_dir} install INSTALL_ROOT={destdir}

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_strip:
	dh_strip -ppython3-pyqt5.qtwebengine --dbg-package=python3-pyqt5.qtwebengine-dbg

override_dh_installdocs:
	dh_installdocs -ppython3-pyqt5.qtwebengine-dbg --link-doc=python3-pyqt5.qtwebengine
	dh_installdocs --remaining-packages