From d993571e2ee444d08f4e9e90d493ee37338657e3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 13 Apr 2024 12:04:20 +0100 Subject: gentoo auto-resync : 13:04:2024 - 12:04:19 --- dev-python/pyside6-tools/Manifest | 2 + .../pyside6-tools/pyside6-tools-6.7.0.ebuild | 76 ++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 dev-python/pyside6-tools/pyside6-tools-6.7.0.ebuild (limited to 'dev-python/pyside6-tools') diff --git a/dev-python/pyside6-tools/Manifest b/dev-python/pyside6-tools/Manifest index 4f05783ff2ab..ed52b7a1960d 100644 --- a/dev-python/pyside6-tools/Manifest +++ b/dev-python/pyside6-tools/Manifest @@ -1,3 +1,5 @@ DIST pyside-setup-everywhere-src-6.6.2.tar.xz 13975896 BLAKE2B b4572e58613e5446692e8c4cef28156fd0126ecda0c6334652ce49c6c7ce4614dbf2400c693addaa38e9b6cca9e331b9fe84c83ddb26e7014b8603afe2c54ad6 SHA512 1d23d27a4cbe74434ec5d391172416d324b4c92181401444821b456b4e27dabbdb3dcaad685a22b62c09f750555a4e626bbb6406a2fbde1cf4ec5c8bbb64cda5 +DIST pyside-setup-everywhere-src-6.7.0.tar.xz 14382456 BLAKE2B 607e496cdeb7e55166b4f0dc15662a8792c7d8925856e8edbb927dfdc33342d158f430e3433d3d4a78ea33740e333fb2422ea1f4332408c3c6214f92d31bdd0d SHA512 7801d564d8d359edec431dc0e6f170538b9fc6f834cb7ab8eff41c1989bffb619c446d4d62d65db2a5b7592c0bff5d450d42de2797726658fe1a8f53df8a4c14 EBUILD pyside6-tools-6.6.2.ebuild 1769 BLAKE2B e39ab8e2f78185ddda6c105e46a5c83f202d3519650c0f60841f52c4fe0f25f5fab5520902bb65eeab821ad76cd6e44bf65dfff09973202c2ca257933f250cbe SHA512 c03557c98b267a1753956268e810b03116e6b7b017ccaef071a7925a679bbabfa35ec9f25c76dde647c3a14ff2303c276389bf64a40c2311a406b1a934681c34 +EBUILD pyside6-tools-6.7.0.ebuild 1769 BLAKE2B 5f295757abefe2252ad1e68710ff45e5fdd7165f430633789ecd8f77d122d6ea8c58cd6c83accfb05ecfedf74644c561d04d103a82b35f8b7d5ec7d7f629bfb7 SHA512 fd5d96d82dae0fb6a76a4e4428aa3c46513c59bf743943449372f5f8ca5e735154992dece29b032cd4a3d4653a23b4ede1166fc14a8cfcc8745eed9331b4d270 MISC metadata.xml 402 BLAKE2B 28348df442d189eadb56e04dfda71c1d5a56868aae85611a7d77ecdc7651e34ce02563c8da1270aad55758e2dd4301de44434e0bbdb010ef484e240068602ede SHA512 a54866110e38c24d67d60286c64b63dc0b537c55eb201b84b9173b47710b6e8a840d9072ca46fbef969bf481e43e1d8824b20655d7fe6b300cfd5333c3f74a41 diff --git a/dev-python/pyside6-tools/pyside6-tools-6.7.0.ebuild b/dev-python/pyside6-tools/pyside6-tools-6.7.0.ebuild new file mode 100644 index 000000000000..397cdc6492c3 --- /dev/null +++ b/dev-python/pyside6-tools/pyside6-tools-6.7.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2024 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} ) + +LLVM_COMPAT=( {15..18} ) + +inherit cmake llvm-r1 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/shiboken6-${PV}[${PYTHON_USEDEP},${LLVM_USEDEP}] + ~dev-python/pyside6-${PV}[quick,${PYTHON_USEDEP},${LLVM_USEDEP}] +" +DEPEND="${RDEPEND} + $(llvm_gen_dep ' + sys-devel/clang:${LLVM_SLOT} + sys-devel/llvm:${LLVM_SLOT} + ') +" + +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 +} -- cgit v1.2.3