commit: f32efbb9a1b9a78d84bf5fc897e34e65d2a396b5 Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> AuthorDate: Thu Nov 28 19:07:45 2019 +0000 Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> CommitDate: Thu Nov 28 19:28:16 2019 +0000 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=f32efbb9
dev-python: drop broken and unmaintained pyside2 ebuilds See https://bugs.gentoo.org/624682#c63 Signed-off-by: Davide Pesavento <pesa <AT> gentoo.org> dev-python/pyside-tools/metadata.xml | 8 -- dev-python/pyside-tools/pyside-tools-9999.ebuild | 110 ---------------- dev-python/pyside/files/rpath.cmake | 10 -- dev-python/pyside/metadata.xml | 33 ----- dev-python/pyside/pyside-9999.ebuild | 153 ----------------------- dev-python/shiboken/Manifest | 1 - dev-python/shiboken/metadata.xml | 15 --- dev-python/shiboken/shiboken-5.12.4.ebuild | 104 --------------- 8 files changed, 434 deletions(-) diff --git a/dev-python/pyside-tools/metadata.xml b/dev-python/pyside-tools/metadata.xml deleted file mode 100644 index 17237689..00000000 --- a/dev-python/pyside-tools/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>[email protected]</email> - <name>Gentoo Qt Project</name> - </maintainer> -</pkgmetadata> diff --git a/dev-python/pyside-tools/pyside-tools-9999.ebuild b/dev-python/pyside-tools/pyside-tools-9999.ebuild deleted file mode 100644 index 98a451e5..00000000 --- a/dev-python/pyside-tools/pyside-tools-9999.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 2009-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -CMAKE_IN_SOURCE_BUILD="1" -PYTHON_COMPAT=( python2_7 python3_{5,6} ) - -inherit cmake-utils python-r1 virtualx git-r3 - -DESCRIPTION="PySide development tools (lupdate, rcc, uic)" -HOMEPAGE="https://wiki.qt.io/PySide2" -EGIT_REPO_URI="https://code.qt.io/pyside/pyside-tools.git" -EGIT_BRANCH="5.9" - -# Although "LICENSE-uic" suggests the "pyside2uic" directory to be dual-licensed -# under the BSD 3-clause and GPL v2 licenses, this appears to be an oversight; -# all files in this (and every) directory are licensed only under the GPL v2. -LICENSE="GPL-2" -SLOT="2" -KEYWORDS="" -IUSE="test" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -# The "pyside2uic" package imports both the "PySide2.QtGui" and -# "PySide2.QtWidgets" C extensions and hence requires "gui" and "widgets". -RDEPEND=" - ${PYTHON_DEPS} - >=dev-python/pyside-${PV}:${SLOT}[gui,widgets,${PYTHON_USEDEP}] - >=dev-python/shiboken-${PV}:${SLOT}[${PYTHON_USEDEP}] - dev-qt/qtcore:5 -" -DEPEND="${RDEPEND} - test? ( virtual/pkgconfig ) -" - -src_prepare() { - cmake-utils_src_prepare - - python_copy_sources - - preparation() { - pushd "${BUILD_DIR}" >/dev/null || die - - if python_is_python3; then - # Remove Python 2-specific paths. - rm -rf pyside2uic/port_v2 || die - - # Generate proper Python 3 test interfaces with the "-py3" option. - sed -i -e 's:${PYSIDERCC_EXECUTABLE}:"${PYSIDERCC_EXECUTABLE} -py3":' \ - tests/rcc/CMakeLists.txt || die - else - # Remove Python 3-specific paths. - rm -rf pyside2uic/port_v3 || die - fi - - # Force testing against the current Python version. - sed -i -e "/pkg-config/ s:shiboken2:&-${EPYTHON}:" \ - tests/rcc/run_test.sh || die - - popd >/dev/null || die - } - python_foreach_impl preparation -} - -src_configure() { - configuration() { - local mycmakeargs=( - -DBUILD_TESTS=$(usex test) - ) - - # Find the previously installed "Shiboken2Config.*.cmake" and - # "PySide2Config.*.cmake" files specific to this Python version. - if python_is_python3; then - # Extension tag unique to the current Python 3.x version (e.g., - # ".cpython-34m" for CPython 3.4). - local EXTENSION_TAG="$("$(python_get_PYTHON_CONFIG)" --extension-suffix)" - EXTENSION_TAG="${EXTENSION_TAG%.so}" - - mycmakeargs+=( -DPYTHON_CONFIG_SUFFIX="${EXTENSION_TAG}" ) - else - mycmakeargs+=( -DPYTHON_CONFIG_SUFFIX="-python2.7" ) - fi - - CMAKE_USE_DIR="${BUILD_DIR}" cmake-utils_src_configure - } - python_foreach_impl configuration -} - -src_compile() { - compilation() { - CMAKE_USE_DIR="${BUILD_DIR}" cmake-utils_src_compile - } - python_foreach_impl compilation -} - -src_test() { - testing() { - local -x PYTHONDONTWRITEBYTECODE - CMAKE_USE_DIR="${BUILD_DIR}" virtx cmake-utils_src_test - } - python_foreach_impl testing -} - -src_install() { - installation() { - CMAKE_USE_DIR="${BUILD_DIR}" cmake-utils_src_install - } - python_foreach_impl installation -} diff --git a/dev-python/pyside/files/rpath.cmake b/dev-python/pyside/files/rpath.cmake deleted file mode 100644 index b896c878..00000000 --- a/dev-python/pyside/files/rpath.cmake +++ /dev/null @@ -1,10 +0,0 @@ -# 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 deleted file mode 100644 index 9c049859..00000000 --- a/dev-python/pyside/metadata.xml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>[email protected]</email> - <name>Gentoo Qt Project</name> - </maintainer> - <use> - <flag name="charts">Build QtCharts module</flag> - <flag name="concurrent">Build QtConcurrent module</flag> - <flag name="datavis">Build QtDataVisualization module</flag> - <flag name="declarative">Build QtQml, QtQuick, and QtQuickWidgets modules</flag> - <flag name="designer">Build QtDesigner and QtUiTools modules</flag> - <flag name="gui">Build QtGui module</flag> - <flag name="help">Build QtHelp module</flag> - <flag name="multimedia">Build QtMultimedia and QtMultimediaWidgets modules</flag> - <flag name="network">Build QtNetwork module</flag> - <flag name="opengl">Build QtOpenGL module</flag> - <flag name="printsupport">Build QtPrintSupport 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="testlib">Build QtTest module</flag> - <flag name="webchannel">Build QtWebChannel module</flag> - <flag name="webengine">Build QtWebEngine and QtWebEngineWidgets modules</flag> - <flag name="webkit">Build QtWebKit and QtWebKitWidgets modules</flag> - <flag name="websockets">Build QtWebSockets module</flag> - <flag name="widgets">Build QtWidgets module</flag> - <flag name="x11extras">Build QtX11Extras module</flag> - <flag name="xmlpatterns">Build QtXmlPatterns module</flag> - </use> -</pkgmetadata> diff --git a/dev-python/pyside/pyside-9999.ebuild b/dev-python/pyside/pyside-9999.ebuild deleted file mode 100644 index da6cd3bb..00000000 --- a/dev-python/pyside/pyside-9999.ebuild +++ /dev/null @@ -1,153 +0,0 @@ -# Copyright 2009-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 python3_{5,6} ) - -inherit cmake-utils python-r1 virtualx git-r3 - -DESCRIPTION="Python bindings for the Qt framework" -HOMEPAGE="https://wiki.qt.io/PySide2" -EGIT_REPO_URI="https://code.qt.io/pyside/pyside-setup.git" -EGIT_BRANCH="5.9" -EGIT_SUBMODULES=() - -# See "sources/pyside2/PySide2/licensecomment.txt" for licensing details. -LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 )" -SLOT="2" -KEYWORDS="" - -# TODO: speech -IUSE="charts concurrent datavis declarative designer gui help multimedia - network opengl printsupport script scripttools sql svg test testlib - webchannel webengine webkit websockets widgets x11extras xmlpatterns" - -# The requirements below were extracted from the output of -# 'grep "set(.*_deps" "${S}"/PySide2/Qt*/CMakeLists.txt' -REQUIRED_USE=" - ${PYTHON_REQUIRED_USE} - charts? ( widgets ) - datavis? ( gui ) - declarative? ( gui network ) - designer? ( widgets ) - help? ( widgets ) - multimedia? ( gui network ) - opengl? ( widgets ) - printsupport? ( widgets ) - scripttools? ( gui script widgets ) - sql? ( widgets ) - svg? ( widgets ) - testlib? ( widgets ) - webengine? ( gui network webchannel widgets ) - webkit? ( gui network printsupport widgets ) - websockets? ( network ) - widgets? ( gui ) - x11extras? ( gui ) -" - -# Minimum version of Qt required, derived from the CMakeLists.txt line: -# find_package(Qt5 ${QT_PV} REQUIRED COMPONENTS Core) -QT_PV="5.9.0:5" - -DEPEND=" - ${PYTHON_DEPS} - >=dev-python/shiboken-${PV}:${SLOT}[${PYTHON_USEDEP}] - >=dev-qt/qtcore-${QT_PV} - >=dev-qt/qtxml-${QT_PV} - charts? ( >=dev-qt/qtcharts-${QT_PV} ) - concurrent? ( >=dev-qt/qtconcurrent-${QT_PV} ) - datavis? ( >=dev-qt/qtdatavis3d-${QT_PV} ) - declarative? ( >=dev-qt/qtdeclarative-${QT_PV}[widgets?] ) - designer? ( >=dev-qt/designer-${QT_PV} ) - gui? ( >=dev-qt/qtgui-${QT_PV} ) - help? ( >=dev-qt/qthelp-${QT_PV} ) - multimedia? ( >=dev-qt/qtmultimedia-${QT_PV}[widgets?] ) - network? ( >=dev-qt/qtnetwork-${QT_PV} ) - opengl? ( >=dev-qt/qtopengl-${QT_PV} ) - printsupport? ( >=dev-qt/qtprintsupport-${QT_PV} ) - script? ( >=dev-qt/qtscript-${QT_PV} ) - sql? ( >=dev-qt/qtsql-${QT_PV} ) - svg? ( >=dev-qt/qtsvg-${QT_PV} ) - testlib? ( >=dev-qt/qttest-${QT_PV} ) - webchannel? ( >=dev-qt/qtwebchannel-${QT_PV} ) - webengine? ( >=dev-qt/qtwebengine-${QT_PV}[widgets] ) - webkit? ( >=dev-qt/qtwebkit-${QT_PV}[printsupport] ) - websockets? ( >=dev-qt/qtwebsockets-${QT_PV} ) - widgets? ( >=dev-qt/qtwidgets-${QT_PV} ) - x11extras? ( >=dev-qt/qtx11extras-${QT_PV} ) - xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} ) -" -RDEPEND="${DEPEND}" - -S=${WORKDIR}/${P}/sources/pyside2 - -src_prepare() { - if use prefix; then - cp "${FILESDIR}"/rpath.cmake . || die - sed -i -e '1iinclude(rpath.cmake)' CMakeLists.txt || die - fi - - cmake-utils_src_prepare -} - -src_configure() { - # See COLLECT_MODULE_IF_FOUND macros in CMakeLists.txt - local mycmakeargs=( - -DBUILD_TESTS=$(usex test) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Charts=$(usex !charts) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Concurrent=$(usex !concurrent) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5DataVisualization=$(usex !datavis) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Designer=$(usex !designer) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Gui=$(usex !gui) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Help=$(usex !help) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Multimedia=$(usex !multimedia) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5MultimediaWidgets=$(usex !multimedia yes $(usex !widgets)) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Network=$(usex !network) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5OpenGL=$(usex !opengl) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5PrintSupport=$(usex !printsupport) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Qml=$(usex !declarative) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Quick=$(usex !declarative) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5QuickWidgets=$(usex !declarative yes $(usex !widgets)) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Script=$(usex !script) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5ScriptTools=$(usex !scripttools) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Sql=$(usex !sql) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Svg=$(usex !svg) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Test=$(usex !testlib) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5UiTools=$(usex !designer) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebChannel=$(usex !webchannel) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngineWidgets=$(usex !webengine) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKit=$(usex !webkit) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKitWidgets=$(usex !webkit) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebSockets=$(usex !websockets) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=$(usex !widgets) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5X11Extras=$(usex !x11extras) - -DCMAKE_DISABLE_FIND_PACKAGE_Qt5XmlPatterns=$(usex !xmlpatterns) - ) - - configuration() { - local mycmakeargs=( - "${mycmakeargs[@]}" - -DPYTHON_EXECUTABLE="${PYTHON}" - ) - cmake-utils_src_configure - } - python_foreach_impl configuration -} - -src_compile() { - python_foreach_impl cmake-utils_src_compile -} - -src_test() { - local -x PYTHONDONTWRITEBYTECODE - python_foreach_impl virtx cmake-utils_src_test -} - -src_install() { - installation() { - cmake-utils_src_install - mv "${ED}"usr/$(get_libdir)/pkgconfig/${PN}2{,-${EPYTHON}}.pc || die - } - python_foreach_impl installation -} diff --git a/dev-python/shiboken/Manifest b/dev-python/shiboken/Manifest deleted file mode 100644 index bb7247a6..00000000 --- a/dev-python/shiboken/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST pyside-setup-everywhere-src-5.12.4.tar.xz 5481172 BLAKE2B e4572cde99efebde20395c13f49a6ffd0b89a0044822e3cc4034ef0316e9a359749817bcc8f2069b4a401d70c03a0ab60a3907ac1628776203db0e349e053e06 SHA512 cf836a73980dce7e1f66f061351426fbf9ede773ef94608d7ee90b2185554f333550c74c14ac572c7d0465c6aea2f793d9c6f1fe6278a73deb40e1fd6fb88076 diff --git a/dev-python/shiboken/metadata.xml b/dev-python/shiboken/metadata.xml deleted file mode 100644 index 27da5503..00000000 --- a/dev-python/shiboken/metadata.xml +++ /dev/null @@ -1,15 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>[email protected]</email> - </maintainer> - <maintainer type="project"> - <email>[email protected]</email> - <name>Gentoo Qt Project</name> - </maintainer> - <use> - <flag name="docstrings">Expose documentation as Python docstrings (recommended)</flag> - <flag name="numpy">Enable NumPy-based 2D array support</flag> - </use> -</pkgmetadata> diff --git a/dev-python/shiboken/shiboken-5.12.4.ebuild b/dev-python/shiboken/shiboken-5.12.4.ebuild deleted file mode 100644 index d1aac88a..00000000 --- a/dev-python/shiboken/shiboken-5.12.4.ebuild +++ /dev/null @@ -1,104 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -# TODO: Split the "/usr/bin/shiboken2" binding generator from the -# "/usr/lib64/libshiboken2-*.so" family of shared libraries. The former -# requires everything (including Clang) at runtime; the latter only requires -# Qt and Python at runtime. Note that "pip" separates these two as well. See: -# https://doc.qt.io/qtforpython/shiboken2/faq.html#is-there-any-runtime-dependency-on-the-generated-binding -# Once split, the PySide2 ebuild should be revised to require -# "/usr/bin/shiboken2" at build time and "libshiboken2-*.so" at runtime. - -PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) - -inherit cmake-utils llvm python-r1 - -MY_P=pyside-setup-everywhere-src-${PV} - -DESCRIPTION="Python binding generator for C++ libraries" -HOMEPAGE="https://wiki.qt.io/PySide2" -SRC_URI="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${PV}-src/${MY_P}.tar.xz" - -# The "sources/shiboken2/libshiboken" directory is triple-licensed under the -# GPL v2, v3+, and LGPL v3. All remaining files are licensed under the GPL v3 -# with version 1.0 of a Qt-specific exception enabling shiboken2 output to be -# arbitrarily relicensed. (TODO) -LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 ) GPL-3" -SLOT="2" -KEYWORDS="~amd64" -IUSE="+docstrings numpy test" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -# Minimal supported version of Qt. -QT_PV="$(ver_cut 1-2):5" - -RDEPEND="${PYTHON_DEPS} - >=dev-qt/qtcore-${QT_PV} - >=sys-devel/clang-6:= - docstrings? ( - >=dev-libs/libxml2-2.6.32 - >=dev-libs/libxslt-1.1.19 - >=dev-qt/qtxml-${QT_PV} - >=dev-qt/qtxmlpatterns-${QT_PV} - ) - numpy? ( dev-python/numpy[${PYTHON_USEDEP}] ) -" -DEPEND="${RDEPEND} - test? ( >=dev-qt/qttest-${QT_PV} ) -" - -S=${WORKDIR}/${MY_P}/sources/shiboken2 -DOCS=( AUTHORS ) - -# Ensure the path returned by get_llvm_prefix() contains clang as well. -llvm_check_deps() { - has_version "sys-devel/clang:${LLVM_SLOT}" -} - -src_prepare() { - #FIXME: File an upstream issue requesting a sane way to disable NumPy support. - if ! use numpy; then - sed -i -e '/print(os\.path\.realpath(numpy))/d' \ - libshiboken/CMakeLists.txt || die - fi - - # CMakeLists.txt assumes clang builtin includes are installed under - # LLVM_INSTALL_DIR. They are not on Gentoo. See bug 624682. - sed -i -e "s~clangPathLibDir = findClangLibDir()~clangPathLibDir = QStringLiteral(\"${EPREFIX}/usr/lib\")~" \ - ApiExtractor/clangparser/compilersupport.cpp || die - - cmake-utils_src_prepare -} - -src_configure() { - shiboken_configure() { - local mycmakeargs=( - -DBUILD_TESTS=$(usex test) - -DDISABLE_DOCSTRINGS=$(usex !docstrings) - -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" - -DPYTHON_EXECUTABLE="${PYTHON}" - -DUSE_PYTHON_VERSION="${EPYTHON#python}" - ) - # CMakeLists.txt expects LLVM_INSTALL_DIR as an environment variable. - LLVM_INSTALL_DIR="$(get_llvm_prefix)" cmake-utils_src_configure - } - python_foreach_impl shiboken_configure -} - -src_compile() { - python_foreach_impl cmake-utils_src_compile -} - -src_test() { - python_foreach_impl cmake-utils_src_test -} - -src_install() { - shiboken_install() { - cmake-utils_src_install - cp "${ED}/usr/$(get_libdir)"/pkgconfig/${PN}2{,-${EPYTHON}}.pc || die - } - python_foreach_impl shiboken_install -}
