From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 63F0915849D for ; Thu, 30 May 2024 15:35:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90F18E2A5D; Thu, 30 May 2024 15:35:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7532EE2A5D for ; Thu, 30 May 2024 15:35:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 77CF933FE60 for ; Thu, 30 May 2024 15:35:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D2B501BFA for ; Thu, 30 May 2024 15:35:21 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1717083290.831b6539afc7b5cdc19a5123b889a6fc1bef36d2.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyside2-tools/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pyside2-tools/Manifest dev-python/pyside2-tools/pyside2-tools-5.15.14.ebuild X-VCS-Directories: dev-python/pyside2-tools/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 831b6539afc7b5cdc19a5123b889a6fc1bef36d2 X-VCS-Branch: master Date: Thu, 30 May 2024 15:35:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a58a6b3f-c8b6-44ed-9ca8-7c1af907823e X-Archives-Hash: 21d1539dadb6072dc4361f78879eade7 commit: 831b6539afc7b5cdc19a5123b889a6fc1bef36d2 Author: Andrew Ammerlaan gentoo org> AuthorDate: Thu May 30 15:34:26 2024 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Thu May 30 15:34:50 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=831b6539 dev-python/pyside2-tools: add 5.15.14 Signed-off-by: Andrew Ammerlaan gentoo.org> dev-python/pyside2-tools/Manifest | 1 + .../pyside2-tools/pyside2-tools-5.15.14.ebuild | 84 ++++++++++++++++++++++ 2 files changed, 85 insertions(+) diff --git a/dev-python/pyside2-tools/Manifest b/dev-python/pyside2-tools/Manifest index e0d57a9d915f..4778a534d869 100644 --- a/dev-python/pyside2-tools/Manifest +++ b/dev-python/pyside2-tools/Manifest @@ -1 +1,2 @@ DIST pyside-setup-opensource-src-5.15.13.tar.xz 3585684 BLAKE2B be464e1a4a5e1523dbc214fdb7be7c5679f33835910d6c12ba464104f3582905f22dd3ae05cbfbb0a7b2d29748335e15d3069d25c754364f5abce85b8b6c8855 SHA512 559e1d474e382ec835cdf2bc69eb27113fdb920a96a63ab0ee022c2a9d2141e5919afd566cb82701e4d2130b142aa59fcbfd60db34823a4f03b879eee5d9e3a8 +DIST pyside-setup-opensource-src-5.15.14.tar.xz 3586520 BLAKE2B ef103cf3116af2c1378018d44abf3766fed6ba545d0e5f3ea6f720047a884edc1eac2dbfce4ddd806472f2ac6355166fd0cef5427f1f85e73306544306adf003 SHA512 c6ca15cc3a3051c00519d9ccb64d48977f8e5587938f97205fe96511ec7bca1a67308325bc1d61712475514c2a1b351fbac2c84f5cee923f55eb91869f49acd5 diff --git a/dev-python/pyside2-tools/pyside2-tools-5.15.14.ebuild b/dev-python/pyside2-tools/pyside2-tools-5.15.14.ebuild new file mode 100644 index 000000000000..ef9cae1f7c5f --- /dev/null +++ b/dev-python/pyside2-tools/pyside2-tools-5.15.14.ebuild @@ -0,0 +1,84 @@ +# 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..11} ) + +LLVM_COMPAT=( 15 ) + +inherit cmake llvm-r1 python-r1 + +MY_P=pyside-setup-opensource-src-${PV} + +DESCRIPTION="PySide development tools (pyside2-lupdate with support for Python)" +HOMEPAGE="https://wiki.qt.io/PySide2" +SRC_URI="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${PV}-src/${MY_P}.tar.xz" +S="${WORKDIR}/${MY_P}/sources/${PN}" + +LICENSE="GPL-2" +SLOT="5/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# Minimal supported version of Qt. +QT_PV="$(ver_cut 1-3)*:5" + +RDEPEND="${PYTHON_DEPS} + =dev-python/shiboken2-${QT_PV}[${PYTHON_USEDEP},${LLVM_USEDEP}] + =dev-python/pyside2-${QT_PV}[${PYTHON_USEDEP},${LLVM_USEDEP}] + !dev-python/pyside2-tools:0 +" +DEPEND="${RDEPEND} + $(llvm_gen_dep ' + sys-devel/clang:${LLVM_SLOT} + sys-devel/llvm:${LLVM_SLOT} + ') +" + +# the tools conflict with tools from QT +PATCHES=( + "${FILESDIR}/${PN}-5.15.11-no-copy-uic.patch" +) + +src_prepare() { + cmake_src_prepare + + python_copy_sources +} + +src_configure() { + pyside-tools_configure() { + local mycmakeargs=( + -DBUILD_TESTS=OFF + -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" + ) + 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 + dobin "${BUILD_DIR}/usr/bin/pyside2-lupdate" + python_moduleinto PySide2/scripts + python_domodule "${BUILD_DIR}/usr/bin/pyside_tool.py" + } + + python_foreach_impl pyside-tools_install + + einstalldocs +}