dev-python/pyside6-tools: add 6.7.0

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
Andrew Ammerlaan
2024-04-12 17:32:07 +02:00
parent 2ddc8356ab
commit a89c7fe3c9
2 changed files with 77 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
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
@@ -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
}