summaryrefslogtreecommitdiff
path: root/dev-python/pyotherside
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-29 08:00:25 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-29 08:00:25 +0100
commitd855918b46ba8714cf1320fe63b55fd0ed1748a6 (patch)
tree4d7d0e86122a07796a660310d507f93e1b7747b9 /dev-python/pyotherside
parentb8325835c82367d22428eb41afa0f2d375338d3c (diff)
gentoo auto-resync : 29:06:2024 - 08:00:25
Diffstat (limited to 'dev-python/pyotherside')
-rw-r--r--dev-python/pyotherside/Manifest6
-rw-r--r--dev-python/pyotherside/files/pyotherside-1.6.0-qt6.5.patch34
-rw-r--r--dev-python/pyotherside/metadata.xml6
-rw-r--r--dev-python/pyotherside/pyotherside-1.6.0-r1.ebuild106
-rw-r--r--dev-python/pyotherside/pyotherside-1.6.0.ebuild66
5 files changed, 4 insertions, 214 deletions
diff --git a/dev-python/pyotherside/Manifest b/dev-python/pyotherside/Manifest
index 5c53bd2e4526..fc79c8bdf83e 100644
--- a/dev-python/pyotherside/Manifest
+++ b/dev-python/pyotherside/Manifest
@@ -1,7 +1,3 @@
-AUX pyotherside-1.6.0-qt6.5.patch 1745 BLAKE2B ed4b87ad3379b9a24534c44bf34e8b94f6aa14a90551cbfee8ee7bcc3ca15ff2e9a3e29b5de83567071132c4a56fdae99939b9c7e581a1516d5716927a660cb2 SHA512 2f214a6475742d205ef641495fc52857ff56fed056fce7e7b7303c3b00371d419de1472592c3da1f4d40889d7871840f2e0448548fdb54637070e70753d3e518
-DIST pyotherside-1.6.0.tar.gz 183645 BLAKE2B e2a12a9a96f3672a5e322c9f2e84d485b8086bdcacfc6586e0c23f6dd730d3e66cea66618540fd9a304480a9ab86386e2fe0136047c59f70bfa3b5cff9e8e76e SHA512 57835db9d65fae10e6b3ec8ab37793e316324e7a819a1045436adf9eabdee11ccf3090a4db0302283b236e77e5e0bd14cf92ed1430835ccc324e50085a872787
DIST pyotherside-1.6.1.tar.gz 184539 BLAKE2B 32c017b6d3a64a3125f779a0201ee15288fbcc84bf070442dc542df525f5994cee6b334d86ff2bbbcada39f645ac2e900a459d729c4f8c838d529fb33bdf1226 SHA512 ea672405b97d09b3c4f1266b1714da5e127c47f8f1c99caa282bd823261c06a0b02e7094185724863f339a0bd35d45426bdf6e8cb7d37a8a23d1d18e81939d9d
-EBUILD pyotherside-1.6.0-r1.ebuild 1965 BLAKE2B 798b2305c0feeae69a9699dad74e2238ed6737ec40bf2409eaeee2e613a5b7a905ac915e3c6b13f9348f916405e3dfbe10ecd59865bf093f3ff3480f62319215 SHA512 9506d25c5faa9521ed5956a0173bc1823d738d007df31eb8eaf71c0cd7c069e92aa93ad709479877a49ff9422832a8e1c88b62edc5a243a228b4d4f8ac102729
-EBUILD pyotherside-1.6.0.ebuild 1303 BLAKE2B aabb06d23f6b2a81f83b7f365b233d7ec6197c60a397a8399c395a723a95106daa8ec2a3f044933fef452a9e99e0cd23b2d74c3ad0b98c2c332145251114013b SHA512 e04da50c62fde18ef9a082fd85118d03f3446afb8724f1c1727fc43d0a644d375c551b039ea5dd33a94888ac78f789233557deb683d6bee9ed65c5f30e6c3d4b
EBUILD pyotherside-1.6.1.ebuild 1749 BLAKE2B 6b844b904b25ae43a746d52f028e0cdd060bf3629d7020c6aec5333aea1b25d02d1114270ff1906ab8249b57551bbf5d246f0280a237dbbb6bdb77a00f49fa79 SHA512 c2a27abaaf614c8c126f517f94fa6d6d970c3a3cec99b7c6dff1761353df014b0454484a3ea5ab9e1e77a7dad1d79225b5f64fd7ee8fdd18a97197e668f1bc80
-MISC metadata.xml 326 BLAKE2B c323223e1038b40f67b25b1f13a4f5fec61175ef0b73bd3ec3a4228bb51b0a41e0f27ca2f47ec9f2b595e07a83358c74f254054d06b4488ff25d2a1c046899b4 SHA512 9d4649f09f1a00a9aa4a8eeb4e535ceff6b924253cd3ac93a8c0d1f6fe2a94c02a7f14f5b722b7b39744ab7331cd3efb57dc59bcb7ab6fb5ce59f692c0f2718a
+MISC metadata.xml 321 BLAKE2B 713f2fd8fc80ffbe8c3fe517da4e2f6633f0a95f279ae1b0f8448aa3fcb0ef04ffc3f56fb42e3060dee09604de58efed48c5ac0caa12ed37d59c87f68bc60492 SHA512 f86cf33a5affa455d35fa26da3eaab0864eb35563aa50287f7276fae9a3b36c46292eed016200bba1dcf407cd5eef7f2da7c57d765a7d6df4850a1dfeb243fe1
diff --git a/dev-python/pyotherside/files/pyotherside-1.6.0-qt6.5.patch b/dev-python/pyotherside/files/pyotherside-1.6.0-qt6.5.patch
deleted file mode 100644
index 08844cc8338d..000000000000
--- a/dev-python/pyotherside/files/pyotherside-1.6.0-qt6.5.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 45044252aaf73262cd46443acd049e7afcdf072b Mon Sep 17 00:00:00 2001
-From: Thomas Perl <m@thp.io>
-Date: Sat, 2 Dec 2023 18:46:06 +0100
-Subject: [PATCH] Fix build error with Qt >= 6.5 (fixes #128)
-
---- a/src/qpython_priv.cpp
-+++ b/src/qpython_priv.cpp
-@@ -405,8 +405,25 @@ pyotherside_QObjectMethod_call(PyObject *callable_object, PyObject *args, PyObje
- }
-
- QVariant result;
-+#if QT_VERSION < QT_VERSION_CHECK(6, 5, 0)
-+ QGenericReturnArgument returnArg = Q_RETURN_ARG(QVariant, result);
-+#else
-+ /**
-+ * Starting with Qt 6.5, Q_RETURN_ARG() expands to a QMetaMethodReturnArgument,
-+ * whereas previously it returned a QGenericReturnArgument. Since we are using
-+ * the old, deprecated QMetaMethod::invoke() functions, and those take a
-+ * QGenericReturnArgument and not a QMetaMethodReturnArgument, we need to
-+ * create the QGenericReturnArgument ourselves by emulating what Q_RETURN_ARG()
-+ * does in old Qt versions before 6.5.
-+ *
-+ * See also:
-+ * https://bugreports.qt.io/browse/QTBUG-113147
-+ * https://github.com/thp/pyotherside/issues/128
-+ **/
-+ QGenericReturnArgument returnArg {QT_STRINGIFY(QVariant), &result};
-+#endif
- if (method.invoke(o, Qt::DirectConnection,
-- Q_RETURN_ARG(QVariant, result), genericArguments.value(0),
-+ returnArg, genericArguments.value(0),
- genericArguments.value(1), genericArguments.value(2),
- genericArguments.value(3), genericArguments.value(4),
- genericArguments.value(5), genericArguments.value(6),
diff --git a/dev-python/pyotherside/metadata.xml b/dev-python/pyotherside/metadata.xml
index 0e4ee229a9f4..b62c1e4a978e 100644
--- a/dev-python/pyotherside/metadata.xml
+++ b/dev-python/pyotherside/metadata.xml
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="person">
- <email>marecki@gentoo.org</email>
- <name>Marek Szuba</name>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
</maintainer>
<upstream>
<remote-id type="github">thp/pyotherside</remote-id>
diff --git a/dev-python/pyotherside/pyotherside-1.6.0-r1.ebuild b/dev-python/pyotherside/pyotherside-1.6.0-r1.ebuild
deleted file mode 100644
index 44c3228186f8..000000000000
--- a/dev-python/pyotherside/pyotherside-1.6.0-r1.ebuild
+++ /dev/null
@@ -1,106 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit multibuild qmake-utils python-single-r1
-
-DESCRIPTION="Asynchronous Python 3 Bindings for Qt"
-HOMEPAGE="https://github.com/thp/pyotherside https://thp.io/2011/pyotherside/"
-SRC_URI="https://github.com/thp/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="ISC"
-SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
-IUSE="qt5 qt6"
-
-REQUIRED_USE="${PYTHON_REQUIRED_USE}
- || ( qt5 qt6 )"
-
-RDEPEND="
- ${PYTHON_DEPS}
- qt5? (
- dev-qt/qtcore:5
- dev-qt/qtdeclarative:5
- dev-qt/qtgui:5
- dev-qt/qtopengl:5
- dev-qt/qtsvg:5
- )
- qt6? (
- dev-qt/qtbase:6[opengl]
- dev-qt/qtdeclarative:6[opengl]
- dev-qt/qtquick3d:6[opengl]
- dev-qt/qtsvg:6
- )"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-1.6.0-qt6.5.patch
-)
-
-pkg_setup() {
- MULTIBUILD_VARIANTS=( $(usev qt5) $(usev qt6) )
- python_setup
-}
-
-src_prepare() {
- default
- sed -i -e "s/qtquicktests//" pyotherside.pro || die
- multibuild_copy_sources
-}
-
-src_configure() {
- myconfigure() {
- pushd "${BUILD_DIR}" > /dev/null || die
-
- if [[ "${MULTIBUILD_VARIANT}" == qt5 ]]; then
- eqmake5
- elif [[ "${MULTIBUILD_VARIANT}" == qt6 ]]; then
- eqmake6
- else
- # This should never happen if REQUIRED_USE is enforced
- die "Neither Qt5 nor Qt6 support enabled, aborting"
- fi
- popd > /dev/null || die
- }
-
- multibuild_foreach_variant myconfigure
-}
-
-src_compile() {
- mycompile() {
- pushd "${BUILD_DIR}" > /dev/null || die
-
- emake
-
- popd > /dev/null || die
- }
-
- multibuild_foreach_variant mycompile
-}
-
-src_test() {
- mytest() {
- pushd "${BUILD_DIR}" > /dev/null || die
-
- QT_QPA_PLATFORM="offscreen" tests/tests || die
-
- popd > /dev/null || die
- }
-
- multibuild_foreach_variant mytest
-}
-
-src_install() {
- myinstall() {
- pushd "${BUILD_DIR}" > /dev/null || die
-
- emake install INSTALL_ROOT="${D}"
-
- popd > /dev/null || die
- }
-
- multibuild_foreach_variant myinstall
-}
diff --git a/dev-python/pyotherside/pyotherside-1.6.0.ebuild b/dev-python/pyotherside/pyotherside-1.6.0.ebuild
deleted file mode 100644
index f151aceda94f..000000000000
--- a/dev-python/pyotherside/pyotherside-1.6.0.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit qmake-utils python-single-r1
-
-DESCRIPTION="Asynchronous Python 3 Bindings for Qt"
-HOMEPAGE="https://github.com/thp/pyotherside https://thp.io/2011/pyotherside/"
-SRC_URI="https://github.com/thp/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="ISC"
-SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
-IUSE="+qt5 qt6"
-
-REQUIRED_USE="${PYTHON_REQUIRED_USE}
- ^^ ( qt5 qt6 )"
-
-# TODO: multibuild for both qt5 and qt6 if requested
-RDEPEND="
- ${PYTHON_DEPS}
- qt5? (
- dev-qt/qtcore:5
- dev-qt/qtdeclarative:5
- dev-qt/qtgui:5
- dev-qt/qtopengl:5
- dev-qt/qtsvg:5
- )
- qt6? (
- dev-qt/qtbase:6[opengl]
- dev-qt/qtdeclarative:6[opengl]
- dev-qt/qtquick3d:6[opengl]
- dev-qt/qtsvg:6
- )"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-1.6.0-qt6.5.patch
-)
-
-src_prepare() {
- default
- sed -i -e "s/qtquicktests//" pyotherside.pro || die
-}
-
-src_configure() {
- if use qt5; then
- eqmake5
- elif use qt6; then
- eqmake6
- else
- # This should never happen if REQUIRED_USE is enforced
- die "Neither Qt5 nor Qt6 support enabled, aborting"
- fi
-}
-
-src_test() {
- QT_QPA_PLATFORM="offscreen" tests/tests || die
-}
-
-src_install() {
- emake install INSTALL_ROOT="${D}"
-}