diff options
author | 2016-11-14 00:26:42 +0200 | |
---|---|---|
committer | 2016-11-14 18:32:15 +0100 | |
commit | 389724bf6b1e5e61ec22b448184a919184180030 (patch) | |
tree | 860cd2c82cde8acfac0f80a7d8b37feca77bc4a7 /dev-python/PythonQt/PythonQt-9999.ebuild | |
parent | sci-physics/harminv: Removing EAPI 4 version 1.3.1 (diff) | |
download | gentoo-389724bf6b1e5e61ec22b448184a919184180030.tar.gz gentoo-389724bf6b1e5e61ec22b448184a919184180030.tar.bz2 gentoo-389724bf6b1e5e61ec22b448184a919184180030.zip |
dev-python/PythonQt: new ebuild
PythonQt is a dynamic Python binding for the Qt framework.
It offers an easy way to embed the Python scripting language
into your C++ Qt applications.
The focus of PythonQt is on embedding Python into
an existing C++ application, not on writing the whole
application completely in Python.
Base for ebuild from https://github.com/SpiderX/portage-overlay/tree/master/dev-python/PythonQt
Gentoo-Bug: https://bugs.gentoo.org/214331
Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/2634
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-python/PythonQt/PythonQt-9999.ebuild')
-rw-r--r-- | dev-python/PythonQt/PythonQt-9999.ebuild | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/dev-python/PythonQt/PythonQt-9999.ebuild b/dev-python/PythonQt/PythonQt-9999.ebuild new file mode 100644 index 000000000000..ce47fa770ef0 --- /dev/null +++ b/dev-python/PythonQt/PythonQt-9999.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +MY_P=${PN}${PV} + +inherit qmake-utils python-single-r1 subversion + +DESCRIPTION="A dynamic Python binding for the Qt framework" +HOMEPAGE="http://pythonqt.sourceforge.net/" +SRC_URI="" +ESVN_REPO_URI="https://pythonqt.svn.sourceforge.net/svnroot/pythonqt/trunk" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="" +IUSE="doc +extensions webkit" + +RDEPEND="${PYTHON_DEPS} + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + extensions? ( + dev-qt/designer:5 + dev-qt/qtdeclarative:5[widgets] + dev-qt/qtmultimedia:5[widgets] + dev-qt/qtnetwork:5 + dev-qt/qtopengl:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsql:5 + dev-qt/qtsvg:5 + dev-qt/qtxml:5 + dev-qt/qtxmlpatterns:5 + webkit? ( dev-qt/qtwebkit:5 ) + )" +DEPEND="${RDEPEND} + dev-qt/qtxml:5 + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +S="${WORKDIR}/${MY_P}" + +REQUIRED_USE="webkit? ( extensions ) ${PYTHON_REQUIRED_USE}" + +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* +} |