summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua>2017-12-23 22:31:37 +0200
committerPatrice Clement <monsieurp@gentoo.org>2017-12-24 18:12:24 +0100
commit5858b9d7b5d16b36391de6fa768b37ebc828f0da (patch)
tree9fc4ce0abc6bb78a83be4912717f2576e026a926 /dev-python/PythonQt
parentnet-misc/tigervnc: change zlib slot dependency. (diff)
downloadgentoo-5858b9d7b5d16b36391de6fa768b37ebc828f0da.tar.gz
gentoo-5858b9d7b5d16b36391de6fa768b37ebc828f0da.tar.bz2
gentoo-5858b9d7b5d16b36391de6fa768b37ebc828f0da.zip
dev-python/PythonQt: prevent using with Qt greater then 5.7
1. Added Python 3.6 to PYTHON_COMPAT. 2. Restricted Qt dependencies to 5.7 (wrt #634544) Package-Manager: Portage-2.3.13, Repoman-2.3.3 Closes: https://github.com/gentoo/gentoo/pull/6610
Diffstat (limited to 'dev-python/PythonQt')
-rw-r--r--dev-python/PythonQt/PythonQt-3.1-r1.ebuild88
1 files changed, 88 insertions, 0 deletions
diff --git a/dev-python/PythonQt/PythonQt-3.1-r1.ebuild b/dev-python/PythonQt/PythonQt-3.1-r1.ebuild
new file mode 100644
index 000000000000..efab4efcc45e
--- /dev/null
+++ b/dev-python/PythonQt/PythonQt-3.1-r1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+MY_P=${PN}${PV}
+
+inherit qmake-utils python-single-r1
+
+DESCRIPTION="A dynamic Python binding for the Qt framework"
+HOMEPAGE="http://pythonqt.sourceforge.net/"
+SRC_URI="mirror://sourceforge/pythonqt/pythonqt/${P}/${MY_P}.zip"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc +extensions webkit"
+
+RDEPEND="${PYTHON_DEPS}
+ <dev-qt/qtcore-5.9:5
+ <dev-qt/qtgui-5.9:5
+ <dev-qt/qtwidgets-5.9:5
+ extensions? (
+ <dev-qt/designer-5.9:5
+ <dev-qt/qtdeclarative-5.9:5[widgets]
+ <dev-qt/qtmultimedia-5.9:5[widgets]
+ <dev-qt/qtnetwork-5.9:5
+ <dev-qt/qtopengl-5.9:5
+ <dev-qt/qtprintsupport-5.9:5
+ <dev-qt/qtsql-5.9:5
+ <dev-qt/qtsvg-5.9:5
+ <dev-qt/qtxml-5.9:5
+ <dev-qt/qtxmlpatterns-5.9:5
+ webkit? ( <dev-qt/qtwebkit-5.9:5 )
+ )"
+DEPEND="${RDEPEND}
+ <dev-qt/qtxml-5.9:5
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+S="${WORKDIR}/${MY_P}"
+
+REQUIRED_USE="webkit? ( extensions ) ${PYTHON_REQUIRED_USE}"
+
+# Bring uitools back, backport other fixes from trunk
+PATCHES=( "${FILESDIR}/${P}-commit-433-441.patch" )
+
+src_prepare() {
+ default
+
+ if ! use extensions ; then
+ sed -i '/SUBDIRS/s/extensions//' PythonQt.pro || die "sed for extensions"
+ fi
+ if ! use webkit ; then
+ # Remove webkit support if not used
+ sed -i '/qtHaveModule(webkit):CONFIG += PythonQtWebKit/d' \
+ extensions/PythonQt_QtAll/PythonQt_QtAll.pro \
+ || die "sed for webkit"
+ fi
+
+ # Unset python version to use python-config
+ sed -i "/unix:PYTHON_VERSION=/s/2.7//" build/python.prf \
+ || die "sed for python version"
+}
+
+src_configure() {
+ eqmake5 PREFIX="${ED%/}"/usr
+}
+
+src_install() {
+ einstalldocs
+
+ # Includes
+ insinto /usr/include/PythonQt
+ doins -r src/*.h
+ insinto /usr/include/PythonQt/gui
+ doins -r src/gui/*.h
+
+ if use extensions ; then
+ insinto /usr/include/PythonQt/extensions/PythonQt_QtAll
+ doins -r extensions/PythonQt_QtAll/*.h
+ fi
+
+ # Libraries
+ dolib.so lib/libPythonQt*
+}