diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/pyside | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/pyside')
-rw-r--r-- | dev-python/pyside/Manifest | 5 | ||||
-rw-r--r-- | dev-python/pyside/files/qgtkstyle-1.2.2.patch | 33 | ||||
-rw-r--r-- | dev-python/pyside/files/rpath.cmake | 10 | ||||
-rw-r--r-- | dev-python/pyside/metadata.xml | 23 | ||||
-rw-r--r-- | dev-python/pyside/pyside-1.2.2-r2.ebuild | 138 |
5 files changed, 209 insertions, 0 deletions
diff --git a/dev-python/pyside/Manifest b/dev-python/pyside/Manifest new file mode 100644 index 000000000000..7974d6229f7f --- /dev/null +++ b/dev-python/pyside/Manifest @@ -0,0 +1,5 @@ +AUX qgtkstyle-1.2.2.patch 1650 BLAKE2B 2a4ca1585ced2341420b4b1857390be0ac462c7137f4ac780c810e853c92e907345d316863ed5e27b200531c40992ebd996cef55c4412b9adf9144aced7ff021 SHA512 ee039cc67bf00ab43d3c6355e7b3e01d753049b2384e23c1a15f78c119b2e85f16b7bb36f0b775bc7d544674161e94eb36265b6590e3b7e593da3b131004bccc +AUX rpath.cmake 393 BLAKE2B 5e67bc306f6f16b7ea10d223d41f77bd12d4dceae5d7aaa2dfe96caa989412e52accf66061bdf2fe3abf9bed193894f5dffa87280ac13be54a0849a13d3f36c4 SHA512 b9f2d3b34fd31a7e289e3aa1c96110f92bc66f45e5bfaf796f86d52eb832e960caca0e314b87248d0a41c13c95f04402607cbb5ad7d0b3238d5bab5580c3a65f +DIST pyside-qt4.8+1.2.2.tar.bz2 3765472 BLAKE2B bd28e196b01ddbbe6f005453ec7504d90b3f3789ab17faf1eedd78f5b05cefd1926f8df8261093d4acef429a04fa81bf9e02e83f01bfe2a3e58f18dd07568f57 SHA512 3a1d46c48ac71c3b138e1dc398d1d2a87aff558eace275303e233f78d03e32c6d53cf390db5e7112f44da9b17aa88ed16a30f6f83b2073c1f494e61b962e4c46 +EBUILD pyside-1.2.2-r2.ebuild 3617 BLAKE2B 059869cecc4e9e441d7e9fe5e3b3116cf76b7bd9cccd8418e05ae4b3e6dca98af6f20291d85e690b8d3e9933f2c32976c3f8f9d389e16428f7013cee5895b66b SHA512 81fabb94734f4a4b4f2e51c36fd8f39030a9d1ab22bd1b4f4d94a5943344bde5ed0ab975b8564a054406c75ff5557fcb9fdc294d9fcce3c49342f0afe11cd63b +MISC metadata.xml 968 BLAKE2B 2bf7a2cd99949a03cc20f02fd9efd971d961d085c96f7ed3271edf827e788344e942440948f33f56572c45537afdb5eae5efb7d9a230350bdfa49f20ec90f6f3 SHA512 9d01808c11a691c0bdaceec69b067bbfe395cc1d1c6491a2cebf9269462c169f5ff2a6c511855fc760563356f1bba65f2b835de663f4ec11fe7eb2e3ed6dd680 diff --git a/dev-python/pyside/files/qgtkstyle-1.2.2.patch b/dev-python/pyside/files/qgtkstyle-1.2.2.patch new file mode 100644 index 000000000000..d782276aba68 --- /dev/null +++ b/dev-python/pyside/files/qgtkstyle-1.2.2.patch @@ -0,0 +1,33 @@ +diff --git a/PySide/QtGui/CMakeLists.txt b/PySide/QtGui/CMakeLists.txt +index 6e14706..bd60775 100644 +--- a/PySide/QtGui/CMakeLists.txt ++++ b/PySide/QtGui/CMakeLists.txt +@@ -71,7 +71,6 @@ set(QtGui_OPTIONAL_SRC ) + set(QtGui_DROPPED_ENTRIES ) + check_qt_class(QtGui QAbstractPageSetupDialog QtGui_OPTIONAL_SRC QtGui_DROPPED_ENTRIES) + check_qt_class(QtGui QAbstractPrintDialog QtGui_OPTIONAL_SRC QtGui_DROPPED_ENTRIES) +-check_qt_class(QtGui QGtkStyle QtGui_OPTIONAL_SRC QtGui_DROPPED_ENTRIES) + check_qt_class(QtGui QPageSetupDialog QtGui_OPTIONAL_SRC QtGui_DROPPED_ENTRIES) + check_qt_class(QtGui QPrintDialog QtGui_OPTIONAL_SRC QtGui_DROPPED_ENTRIES) + check_qt_class(QtGui QPrintEngine QtGui_OPTIONAL_SRC QtGui_DROPPED_ENTRIES) +diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml +index 711d7cc..954aa54 100644 +--- a/PySide/QtGui/typesystem_gui_common.xml ++++ b/PySide/QtGui/typesystem_gui_common.xml +@@ -6996,16 +6996,6 @@ + <modify-function signature="exec()" rename="exec_" allow-thread="yes" /> + </object-type> + +- <object-type name="QGtkStyle"> +- <modify-function signature="standardPixmap(QStyle::StandardPixmap,const QStyleOption*,const QWidget*)const"> +- <modify-argument index="2"> +- <replace-default-expression with="0"/> +- </modify-argument> +- <modify-argument index="3"> +- <replace-default-expression with="0"/> +- </modify-argument> +- </modify-function> +- </object-type> + + <object-type name="QPageSetupDialog"> + <enum-type name="PageSetupDialogOption" flags="PageSetupDialogOptions"/> diff --git a/dev-python/pyside/files/rpath.cmake b/dev-python/pyside/files/rpath.cmake new file mode 100644 index 000000000000..b896c8789185 --- /dev/null +++ b/dev-python/pyside/files/rpath.cmake @@ -0,0 +1,10 @@ +# use, i.e. don't skip the full RPATH for the build tree +SET(CMAKE_SKIP_BUILD_RPATH FALSE) + +# when building, don't use the install RPATH already +# (but later on when installing) +SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) + +# add the automatically determined parts of the RPATH +# which point to directories outside the build tree to the install RPATH +SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) diff --git a/dev-python/pyside/metadata.xml b/dev-python/pyside/metadata.xml new file mode 100644 index 000000000000..fafc4012082c --- /dev/null +++ b/dev-python/pyside/metadata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>qt@gentoo.org</email> + <name>Gentoo Qt Project</name> + </maintainer> + <use> + <flag name="X">Build QtGui and QtTest modules</flag> + <flag name="declarative">Build QtDeclarative module</flag> + <flag name="designer">Build QtDesigner and QtUiTools modules</flag> + <flag name="help">Build QtHelp module</flag> + <flag name="multimedia">Build QtMultimedia module</flag> + <flag name="opengl">Build QtOpenGL module</flag> + <flag name="phonon">Build phonon module</flag> + <flag name="script">Build QtScript module</flag> + <flag name="scripttools">Build QtScriptTools module</flag> + <flag name="sql">Build QtSql module</flag> + <flag name="svg">Build QtSvg module</flag> + <flag name="webkit">Build QtWebKit module</flag> + <flag name="xmlpatterns">Build QtXmlPatterns module</flag> + </use> +</pkgmetadata> diff --git a/dev-python/pyside/pyside-1.2.2-r2.ebuild b/dev-python/pyside/pyside-1.2.2-r2.ebuild new file mode 100644 index 000000000000..317dd053bee2 --- /dev/null +++ b/dev-python/pyside/pyside-1.2.2-r2.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit cmake-utils multilib python-r1 virtualx + +MY_P="${PN}-qt4.8+${PV}" + +DESCRIPTION="Python bindings for the Qt framework" +HOMEPAGE="http://wiki.qt.io/PySide" +SRC_URI="http://download.qt-project.org/official_releases/${PN}/${MY_P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 arm ~arm64 ppc ppc64 x86 ~amd64-linux ~x86-linux" + +IUSE="X declarative designer help multimedia opengl phonon script scripttools sql svg test webkit xmlpatterns" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + declarative? ( X ) + designer? ( X ) + help? ( X ) + multimedia? ( X ) + opengl? ( X ) + phonon? ( X ) + scripttools? ( X script ) + sql? ( X ) + svg? ( X ) + test? ( X ) + webkit? ( X ) +" + +# Minimal supported version of Qt. +QT_PV="4.8.5:4" + +RDEPEND=" + ${PYTHON_DEPS} + >=dev-python/shiboken-${PV}:${SLOT}[${PYTHON_USEDEP}] + >=dev-qt/qtcore-${QT_PV}[ssl] + X? ( + >=dev-qt/qtgui-${QT_PV}[accessibility] + >=dev-qt/qttest-${QT_PV} + ) + declarative? ( >=dev-qt/qtdeclarative-${QT_PV} ) + designer? ( >=dev-qt/designer-${QT_PV} ) + help? ( >=dev-qt/qthelp-${QT_PV} ) + multimedia? ( >=dev-qt/qtmultimedia-${QT_PV} ) + opengl? ( >=dev-qt/qtopengl-${QT_PV} ) + phonon? ( media-libs/phonon[qt4] ) + script? ( >=dev-qt/qtscript-${QT_PV} ) + sql? ( >=dev-qt/qtsql-${QT_PV} ) + svg? ( >=dev-qt/qtsvg-${QT_PV}[accessibility] ) + webkit? ( >=dev-qt/qtwebkit-${QT_PV} ) + xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} ) +" +DEPEND="${RDEPEND} + >=dev-qt/qtgui-${QT_PV} +" + +S=${WORKDIR}/${MY_P} + +DOCS=( ChangeLog ) + +src_prepare() { + # Fix generated pkgconfig file to require the shiboken + # library suffixed with the correct python version. + sed -i -e '/^Requires:/ s/shiboken$/&@SHIBOKEN_PYTHON_SUFFIX@/' \ + libpyside/pyside.pc.in || die + + if use prefix; then + cp "${FILESDIR}"/rpath.cmake . || die + sed -i -e '1iinclude(rpath.cmake)' CMakeLists.txt || die + fi + + epatch "${FILESDIR}/qgtkstyle-${PV}.patch" # bug 530764 + + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_build test TESTS) + $(cmake-utils_use_disable X QtGui) + $(cmake-utils_use_disable X QtTest) + $(cmake-utils_use_disable declarative QtDeclarative) + $(cmake-utils_use_disable designer QtDesigner) + $(cmake-utils_use_disable designer QtUiTools) + $(cmake-utils_use_disable help QtHelp) + $(cmake-utils_use_disable multimedia QtMultimedia) + $(cmake-utils_use_disable opengl QtOpenGL) + $(cmake-utils_use_disable phonon) + $(cmake-utils_use_disable script QtScript) + $(cmake-utils_use_disable scripttools QtScriptTools) + $(cmake-utils_use_disable sql QtSql) + $(cmake-utils_use_disable svg QtSvg) + $(cmake-utils_use_disable webkit QtWebKit) + $(cmake-utils_use_disable xmlpatterns QtXmlPatterns) + ) + + if use phonon && has_version "media-libs/phonon[qt4]"; then + # bug 475786 + mycmakeargs+=( + -DQT_PHONON_INCLUDE_DIR="${EPREFIX}/usr/include/phonon" + -DQT_PHONON_LIBRARY_RELEASE="${EPREFIX}/usr/$(get_libdir)/libphonon.so" + ) + fi + + configuration() { + local mycmakeargs=( + -DPYTHON_SUFFIX="-${EPYTHON}" + "${mycmakeargs[@]}" + ) + cmake-utils_src_configure + } + python_foreach_impl configuration +} + +src_compile() { + python_foreach_impl cmake-utils_src_compile +} + +src_test() { + local PYTHONDONTWRITEBYTECODE + export PYTHONDONTWRITEBYTECODE + + VIRTUALX_COMMAND="cmake-utils_src_test" python_foreach_impl virtualmake +} + +src_install() { + installation() { + cmake-utils_src_install + mv "${ED}"usr/$(get_libdir)/pkgconfig/${PN}{,-${EPYTHON}}.pc || die + } + python_foreach_impl installation +} |