commit:     954e1b7f8712b5a963ef150599fe13c52c2fd324
Author:     Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Thu Dec  7 08:29:23 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Dec  7 18:44:46 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=954e1b7f

dev-python/pyside6-tools: add 6.6.1

Signed-off-by: Huang Rui <vowstar <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/34159
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 dev-python/pyside6-tools/Manifest                  |  1 +
 .../pyside6-tools/pyside6-tools-6.6.1.ebuild       | 68 ++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/dev-python/pyside6-tools/Manifest 
b/dev-python/pyside6-tools/Manifest
index 0ec535214c60..25f3658fc0cf 100644
--- a/dev-python/pyside6-tools/Manifest
+++ b/dev-python/pyside6-tools/Manifest
@@ -1 +1,2 @@
 DIST pyside-setup-everywhere-src-6.6.0.tar.xz 14054860 BLAKE2B 
3d01707796c8711de6c5bfc39bb677ee1f5c24014f8f61d9cccb5ec58982e9765e69b0a623e93276f1336975cf18a228d8397f6c8fce051875962e25ba64ac2f
 SHA512 
58463e9b08ee6264d05293d25aa6e41b091016489abf513fc8303e5cccde26af1a24bf9520a94fad4fdc679bf367eb8c6b3d84a21c6c175dd1382cd1ca32b8ae
+DIST pyside-setup-everywhere-src-6.6.1.tar.xz 13887704 BLAKE2B 
14a75cb6d20dced9b1edf79b8bb40ce44ecb7642f45743e59bc2d55b3e6fa5a742a0a0e5712b8f8cd4d908cc0f5103ac823390db968f42d0782818242c6f77e5
 SHA512 
3516f3e4595f1ba4ebbc680c5a94f9f939e04c0a3257720ebdd7ed12307bb007d1c73824029f51ec71c41a335268f34834250a5e87b3c4356d9e0a6f1d6b1f71

diff --git a/dev-python/pyside6-tools/pyside6-tools-6.6.1.ebuild 
b/dev-python/pyside6-tools/pyside6-tools-6.6.1.ebuild
new file mode 100644
index 000000000000..58c17ed640c3
--- /dev/null
+++ b/dev-python/pyside6-tools/pyside6-tools-6.6.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# TODO: Add PyPy once officially supported. See also:
+#     https://bugreports.qt.io/browse/PYSIDE-535
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit cmake python-r1
+
+MY_PN="pyside-setup-everywhere-src"
+
+DESCRIPTION="PySide development tools (pyside6-lupdate with support for 
Python)"
+HOMEPAGE="https://wiki.qt.io/PySide6";
+SRC_URI="https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-${PV}-src/${MY_PN}-${PV}.tar.xz";
+S="${WORKDIR}/${MY_PN}-${PV}/sources/pyside-tools"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+       ~dev-python/pyside6-${PV}[quick,${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       cmake_src_prepare
+
+       python_copy_sources
+}
+
+src_configure() {
+       pyside-tools_configure() {
+               local mycmakeargs=(
+                       # If this is enabled cmake just makes copies of 
/lib64/qt6/bin/*
+                       -DNO_QT_TOOLS=yes
+               )
+               cmake_src_configure
+       }
+
+       python_foreach_impl pyside-tools_configure
+}
+
+src_compile() {
+       pyside-tools_compile() {
+               cmake_src_compile
+       }
+
+       python_foreach_impl pyside-tools_compile
+}
+
+src_install() {
+       pyside-tools_install() {
+               # This replicates the contents of the PySide6 pypi wheel
+               DESTDIR="${BUILD_DIR}" cmake_build install
+               cp __init__.py "${BUILD_DIR}/usr/bin" || die
+               rm -r  "${BUILD_DIR}/usr/bin/qtpy2cpp_lib/tests" || die
+               python_moduleinto PySide6/scripts
+               python_domodule "${BUILD_DIR}/usr/bin/."
+       }
+
+       python_foreach_impl pyside-tools_install
+
+       einstalldocs
+}

Reply via email to