diff options
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.9.ebuild | 77 |
2 files changed, 79 insertions, 0 deletions
diff --git a/dev-python/pyside2-tools/Manifest b/dev-python/pyside2-tools/Manifest index a856cfe99815..703444890319 100644 --- a/dev-python/pyside2-tools/Manifest +++ b/dev-python/pyside2-tools/Manifest @@ -1,4 +1,6 @@ AUX pyside2-tools-5.15.1-dont-install-tools.patch 1782 BLAKE2B a9a1c3cb8d1e6feabbc752bb4bf0af30b645736b9895fe96063dc4a9d5668866523e567f723693b17c6da4101d28713cfa6ad8adadb78e6bb99756d7c69244a2 SHA512 c8b17db89f42a52f4191dda953d7228eafcafd6afb6d7b70527cef090ffd1f073970010a817bede941de10b4e40e41d35fb99b74091baeea6d237c08eb7f225f DIST pyside-setup-opensource-src-5.15.8.tar.xz 3582256 BLAKE2B eef6668c612c39eac4ea29db4eee0cc6eef72034babaa14525ca63cf6e02695df27bf8a6764110c4bcc77f55c7e9fb531074916a45d7ea324265e50d9a60d592 SHA512 78e19a8e8fa413bb784f16847d5774e4362409a2bd83567177b83f1391c37305d373155fb95ea569c6c483175e62a0d3f5d91a2fd5dae85d48c8047d242b9e22 +DIST pyside-setup-opensource-src-5.15.9.tar.xz 3581660 BLAKE2B 65d5317f9ea55385bbe093cf43c214655effd877feed6409acc4f6f65768dcde8c94c4f29157f8d7dcb36d442c649290764706834885b08ecf9934b383b3e2a4 SHA512 cc63d64b909f1fd98b64a0bba61b278b1a5b60059168287546ee36204ede2df4317eb4ce5638a268d387e6db40fec203631fc4a48e4116a6b4a30d675bf876d3 EBUILD pyside2-tools-5.15.8.ebuild 1653 BLAKE2B adbbbd888e4785543ae175f285f32b34a6d392b6d8f85ef9576968a700cb7284859e13f3b4b75e6e77a8544676ba0779870bab3c33f8ae9f66bad285dcb2a6f2 SHA512 6016c3ab4144ea89672e8981a337ea8a83f892ad5b713b6a79d2a08bf1137de240ad9193b8d1a07b9ccbfd83587f0304579e2fe308d158cea065f1700fb160dc +EBUILD pyside2-tools-5.15.9.ebuild 1656 BLAKE2B 473740bc6392674185a1ce05176cd37d7a534a5ca4cf6418587d8297f0598c27ddcb823f774ca5ce1fa89cd393e7ebdce572596baa59275f250576da2b23689b SHA512 a3bac308f16fdcb61116aafdea5d74894e93cd62ffe041acbe2a2e7125dff3924f30579a54f45c94e8f0e20c1ba7f178583948d6e3d94fc5ce9b2a12ca23e7ca MISC metadata.xml 512 BLAKE2B e06bacf79750f6cc22b41ade8840a01636793100a85cc469c19af1b4273ef33adb3dec755947057a892e88de4ac68e665fa0ccb265457dd09a502964bd991749 SHA512 d201e34b2d73fb308c6b5f14b2d0d292b453b5ef05c820efe429fcfa7259b23f17bc015c08b8f938a2df75f5b654cc1357632a786abfb555479e3f172feee3fd diff --git a/dev-python/pyside2-tools/pyside2-tools-5.15.9.ebuild b/dev-python/pyside2-tools/pyside2-tools-5.15.9.ebuild new file mode 100644 index 000000000000..81180b8926ab --- /dev/null +++ b/dev-python/pyside2-tools/pyside2-tools-5.15.9.ebuild @@ -0,0 +1,77 @@ +# 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_{9..11} ) +CMAKE_IN_SOURCE_BUILD=1 + +inherit cmake 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 ~arm64 ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + ~dev-python/pyside2-${PV}[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" + +DOCS=( README.md ) + +# the tools conflict with tools from QT +PATCHES=( + "${FILESDIR}/${PN}-5.15.1-dont-install-tools.patch" +) + +src_prepare() { + cmake_src_prepare + + python_copy_sources +} + +src_configure() { + # The tests are only related to the tools that we don't install + local mycmakeargs=( + -DBUILD_TESTS=OFF + ) + + pyside-tools_configure() { + local mycmakeargs=( + "${mycmakeargs[@]}" + -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" + ) + CMAKE_USE_DIR="${BUILD_DIR}" cmake_src_configure + } + + python_foreach_impl pyside-tools_configure +} + +src_compile() { + pyside-tools_compile() { + CMAKE_USE_DIR="${BUILD_DIR}" cmake_src_compile + } + + python_foreach_impl pyside-tools_compile +} + +src_install() { + pyside-tools_install() { + python_doexe "${BUILD_DIR}/pylupdate/pyside2-lupdate" + } + + python_foreach_impl pyside-tools_install + + doman pylupdate/pyside2-lupdate.1 + einstalldocs +} |