summaryrefslogtreecommitdiff
path: root/dev-python/pyside
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pyside
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pyside')
-rw-r--r--dev-python/pyside/Manifest7
-rw-r--r--dev-python/pyside/files/qgtkstyle-1.2.2.patch33
-rw-r--r--dev-python/pyside/files/rpath.cmake10
-rw-r--r--dev-python/pyside/metadata.xml23
-rw-r--r--dev-python/pyside/pyside-1.2.2-r1.ebuild138
5 files changed, 211 insertions, 0 deletions
diff --git a/dev-python/pyside/Manifest b/dev-python/pyside/Manifest
new file mode 100644
index 000000000000..21578946b99a
--- /dev/null
+++ b/dev-python/pyside/Manifest
@@ -0,0 +1,7 @@
+AUX qgtkstyle-1.2.2.patch 1650 SHA256 e01a60c20de3ae33767d5948e20235220ac43e7f40e59372ec3cdcba6892bcda SHA512 ee039cc67bf00ab43d3c6355e7b3e01d753049b2384e23c1a15f78c119b2e85f16b7bb36f0b775bc7d544674161e94eb36265b6590e3b7e593da3b131004bccc WHIRLPOOL 900f90724bc0e071aebcdd11da5436e50f2d624490649f1121fba9474c5a87af05c95b4094dd862468ac1a817e439bb6bd5fa657ad645f47d0c2753cbab62fa8
+AUX rpath.cmake 393 SHA256 b89f3698d321e30afef0f7c32be009d5d926f92ba310ad44b384cdbc1a6a104d SHA512 b9f2d3b34fd31a7e289e3aa1c96110f92bc66f45e5bfaf796f86d52eb832e960caca0e314b87248d0a41c13c95f04402607cbb5ad7d0b3238d5bab5580c3a65f WHIRLPOOL 79dbd32a58b6bf8a408f8fef3dd918c1946c89c32731b515984cb0ed8230c63cd724150db636523484d525c2ebad1f78217c7ccb6a294221aa8d2ca8dcce6a1d
+DIST pyside-qt4.8+1.2.2.tar.bz2 3765472 SHA256 a1a9df746378efe52211f1a229f77571d1306fb72830bbf73f0d512ed9856ae1 SHA512 3a1d46c48ac71c3b138e1dc398d1d2a87aff558eace275303e233f78d03e32c6d53cf390db5e7112f44da9b17aa88ed16a30f6f83b2073c1f494e61b962e4c46 WHIRLPOOL 5ac5eb5032fbc791e955eb0b2b0f1443e43867408a7b6c41854db1cab466714509c035e8271f5b0b3078309be001d5bcea498601b97f540e7775e87bdbc1c0c8
+EBUILD pyside-1.2.2-r1.ebuild 3623 SHA256 72fe3d0791beb834556e6abae1a75535c5d5340cb59d8da207b5977a74213f37 SHA512 d60a5d3b508a349250c7c83e7a1def00ef95da84195ece367f46afe692d179f67021904ff7d1e48d8feedad5e5e7332099db720fab64c4a94caaec5ab6914cdf WHIRLPOOL a54ec6da9512c457bee64f05bb25d134f57082b85c197dd3722f17005b68e55cc1b47e603c0c76f2ff979073b7b43d3259fa2a288498a0ced320a96279cdf58b
+MISC ChangeLog 2966 SHA256 2d22b1332b23233fe7591772629c5bab5f5c2595dffe9f4eb3fada42ebf848f5 SHA512 0bbbe85f2998fd0d58cca5587b461024ab73a7a013e41b1001589a163ebaa076b8f3107b4cc580259ecea8a6838598f963465ae0d9b304a1261aeb0d19758fd7 WHIRLPOOL 13934904b14170e1611c5f0e6be1d668a63cdaf382bcf3d621ca0c122757564dad5fa4d4ae07da0d9ffd6e3c81d0c9437f931c11647f110654fbb6bf0d89195c
+MISC ChangeLog-2015 9770 SHA256 8011e6d7449833d213ce59aa850ae55df9adb2d72e2a85230ee3a8e77d8d0449 SHA512 b480030ca5569db690e961e963f589ff803b4a7a645c846d95db23309942e22024622edd9f616890fc22918ed02b665116318d1d2d598d92071f24ca0596f48c WHIRLPOOL a28185215a7b58e058a4d2284eda0a83c8dc3627c9822a3782e48515d4fac1b1d5972b7df2b27753a2a4221dc75d7069dce0e7c78631865dd3da310ae8fbbb78
+MISC metadata.xml 968 SHA256 2eb07a96993128e823eeeac7e8ade1a7707c38da5e630f3a3ef80eb70c4a946f SHA512 9d01808c11a691c0bdaceec69b067bbfe395cc1d1c6491a2cebf9269462c169f5ff2a6c511855fc760563356f1bba65f2b835de663f4ec11fe7eb2e3ed6dd680 WHIRLPOOL 84c16d0bb413fd14bdbcf2bc112bf88d23cdcdfda927e752228c773c6cb751f4c2fab1eda5b50ed259b390d5ef61eb21d700c70128b2741f91cd8933b832c84f
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-r1.ebuild b/dev-python/pyside/pyside-1.2.2-r1.ebuild
new file mode 100644
index 000000000000..41756cada3e5
--- /dev/null
+++ b/dev-python/pyside/pyside-1.2.2-r1.ebuild
@@ -0,0 +1,138 @@
+# Copyright 1999-2017 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
+}