diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-25 01:00:59 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-25 01:00:59 +0000 |
commit | 2808be9288546424bc5e88a39631a6835e6bd388 (patch) | |
tree | 80c785026b9bcf673fbd94227390082ac8716acf /dev-python/pyside2-tools | |
parent | a7689c2abcff4374b84d95fb2df980ec9a566965 (diff) |
gentoo auto-resync : 25:03:2024 - 01:00:59
Diffstat (limited to 'dev-python/pyside2-tools')
-rw-r--r-- | dev-python/pyside2-tools/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pyside2-tools/pyside2-tools-5.15.13.ebuild | 80 |
2 files changed, 82 insertions, 0 deletions
diff --git a/dev-python/pyside2-tools/Manifest b/dev-python/pyside2-tools/Manifest index 23d9515bfe89..b328425a22bf 100644 --- a/dev-python/pyside2-tools/Manifest +++ b/dev-python/pyside2-tools/Manifest @@ -1,4 +1,6 @@ AUX pyside2-tools-5.15.11-no-copy-uic.patch 1343 BLAKE2B dbabe4c0a46b0f3ccb160df34626258154efaa69554507b87e0cebe638c93b9abc6d3cf6d72f0c90833d21646e9b44a2ea0bbebeb2f11f92a748adf4f9663277 SHA512 4dbc2bbca3c16aafeeba8d2384d15dd28d7f8611027850293f165af37f9cf0ba17b1617cee06125c2e37edb011ecdeb00feb84edb8cf6c901b9e32b6d9cba639 DIST pyside-setup-opensource-src-5.15.12.tar.xz 3585204 BLAKE2B a664555b5a98d5ebda39c8226062e12c2b3308e6d95866cd9268de6a8089aef5d0e7a4958821a8e84642f01bffe2a9323ba0752d33fc803d4eb4b29453e2f070 SHA512 843d7352bfb7c9765b5033939b2a6211148ad79a6012685b2d07775745edf04c8420359efb2a3ae4a8686de4daaeb7f531f73fd152f0a2fe7dd54de0080c3cf4 +DIST pyside-setup-opensource-src-5.15.13.tar.xz 3585684 BLAKE2B be464e1a4a5e1523dbc214fdb7be7c5679f33835910d6c12ba464104f3582905f22dd3ae05cbfbb0a7b2d29748335e15d3069d25c754364f5abce85b8b6c8855 SHA512 559e1d474e382ec835cdf2bc69eb27113fdb920a96a63ab0ee022c2a9d2141e5919afd566cb82701e4d2130b142aa59fcbfd60db34823a4f03b879eee5d9e3a8 EBUILD pyside2-tools-5.15.12.ebuild 1794 BLAKE2B 0024f3024a76c49a62c43e665bbcae3d10506d9ddbb5f9eae749a0f834ad1abbea579af0c889759ccb0a155d0c32d37f9cd2f8b5fee79325e98c37f9a1856c85 SHA512 59cc86c9319383e71ea007c0d44c4550418f30ba874dd346c507d2228ec6dfddaee3aedbe51fc68f3ae21094f1ad49e6a8cb6317694ceceea767cf1dc3ecf5a7 +EBUILD pyside2-tools-5.15.13.ebuild 1797 BLAKE2B 16a74cb31e3327fd2c39184046eb7201f3b81ead552c14386e822a49628b66f77f7e2f8c4becc087c35cdacb7ba070b865368a9adaff16c7c8d37ccc7d2e8000 SHA512 56e8981e67fbf24aa0bc33972d23d9385f26369064a5772b114164f7940e9a05da646fe76bebe377c2ee9bfb6fadc42d84528e560e1ca0dc4da6fd381116746d MISC metadata.xml 402 BLAKE2B 28348df442d189eadb56e04dfda71c1d5a56868aae85611a7d77ecdc7651e34ce02563c8da1270aad55758e2dd4301de44434e0bbdb010ef484e240068602ede SHA512 a54866110e38c24d67d60286c64b63dc0b537c55eb201b84b9173b47710b6e8a840d9072ca46fbef969bf481e43e1d8824b20655d7fe6b300cfd5333c3f74a41 diff --git a/dev-python/pyside2-tools/pyside2-tools-5.15.13.ebuild b/dev-python/pyside2-tools/pyside2-tools-5.15.13.ebuild new file mode 100644 index 000000000000..64147b29b56f --- /dev/null +++ b/dev-python/pyside2-tools/pyside2-tools-5.15.13.ebuild @@ -0,0 +1,80 @@ +# 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="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + ~dev-python/shiboken2-${PV}[${PYTHON_USEDEP},${LLVM_USEDEP}] + ~dev-python/pyside2-${PV}[${PYTHON_USEDEP},${LLVM_USEDEP}] +" +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 +} |