1 |
commit: a5fee4da5688875bea041c7c1a6b69af6a317660 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 7 11:05:19 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 7 11:05:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5fee4da |
7 |
|
8 |
dev-python/pyside2-tools: add 5.15.7 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
dev-python/pyside2-tools/Manifest | 1 + |
13 |
.../pyside2-tools/pyside2-tools-5.15.7.ebuild | 77 ++++++++++++++++++++++ |
14 |
2 files changed, 78 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pyside2-tools/Manifest b/dev-python/pyside2-tools/Manifest |
17 |
index a69f8b0496e6..91dcf6569b36 100644 |
18 |
--- a/dev-python/pyside2-tools/Manifest |
19 |
+++ b/dev-python/pyside2-tools/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST pyside-setup-opensource-src-5.15.5.tar.xz 3577972 BLAKE2B ee16ce18ec4103add41ad89b658012cb2e8695bda51269d3cd1614c2b6d029c0eaba5e592d5e58b6267e1ddc020a938d3ccd2fbc9461cc5bf202f3bdbf6b5d62 SHA512 61b987ec823e9a89f2a07a1991d47f36eb45e3ce416aa6e0032a58ba3d623ac26224cb0f43a2db76850bce7290d12fae610de06405350362caac7860ba99f0c3 |
22 |
DIST pyside-setup-opensource-src-5.15.6.tar.xz 3580388 BLAKE2B 8a3b15d073bcbb0c6734f500ca906e56387cb8fc4bfcfd996304d71b54edd5f4568976049519ed26aa718bee9e43f59a0c4ef53837d5a341219b991a8527a800 SHA512 99a0c1a05e722cbf33128cf25742e61b92e151fdc05b79db9bafe778e024a0c6fc2886ee3d0b923ff681c55916f5c0eea4197f174432587fd662fba4390b26f4 |
23 |
+DIST pyside-setup-opensource-src-5.15.7.tar.xz 3581144 BLAKE2B 95b5720a5273c96b00bdf86b36734970991a29cf0db1e6fb2c00d7e671fbc4459b4434abc91a8a47ec5d8ba694bcdae5b57a52448908fdca25c348f9ee2b6c81 SHA512 9c551b47581e4f2671c4378f1a2c0d9e565b08edee74244a7704a2c94eef1e1041d23f0e388c07bdd61067e986340907cf80f4527257a9a706f7f07c497834c6 |
24 |
|
25 |
diff --git a/dev-python/pyside2-tools/pyside2-tools-5.15.7.ebuild b/dev-python/pyside2-tools/pyside2-tools-5.15.7.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..2b597317dea9 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pyside2-tools/pyside2-tools-5.15.7.ebuild |
30 |
@@ -0,0 +1,77 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+# TODO: Add PyPy once officially supported. See also: |
37 |
+# https://bugreports.qt.io/browse/PYSIDE-535 |
38 |
+PYTHON_COMPAT=( python3_{8..11} ) |
39 |
+CMAKE_IN_SOURCE_BUILD=1 |
40 |
+ |
41 |
+inherit cmake python-r1 |
42 |
+ |
43 |
+MY_P=pyside-setup-opensource-src-${PV} |
44 |
+ |
45 |
+DESCRIPTION="PySide development tools (pyside2-lupdate with support for Python)" |
46 |
+HOMEPAGE="https://wiki.qt.io/PySide2" |
47 |
+SRC_URI="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${PV}-src/${MY_P}.tar.xz" |
48 |
+S="${WORKDIR}/${MY_P}/sources/${PN}" |
49 |
+ |
50 |
+LICENSE="GPL-2" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
53 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
54 |
+ |
55 |
+RDEPEND="${PYTHON_DEPS} |
56 |
+ ~dev-python/pyside2-${PV}[${PYTHON_USEDEP}] |
57 |
+" |
58 |
+DEPEND="${RDEPEND}" |
59 |
+ |
60 |
+DOCS=( README.md ) |
61 |
+ |
62 |
+# the tools conflict with tools from QT |
63 |
+PATCHES=( |
64 |
+ "${FILESDIR}/${PN}-5.15.1-dont-install-tools.patch" |
65 |
+) |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ cmake_src_prepare |
69 |
+ |
70 |
+ python_copy_sources |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ # The tests are only related to the tools that we don't install |
75 |
+ local mycmakeargs=( |
76 |
+ -DBUILD_TESTS=OFF |
77 |
+ ) |
78 |
+ |
79 |
+ pyside-tools_configure() { |
80 |
+ local mycmakeargs=( |
81 |
+ "${mycmakeargs[@]}" |
82 |
+ -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" |
83 |
+ ) |
84 |
+ CMAKE_USE_DIR="${BUILD_DIR}" cmake_src_configure |
85 |
+ } |
86 |
+ |
87 |
+ python_foreach_impl pyside-tools_configure |
88 |
+} |
89 |
+ |
90 |
+src_compile() { |
91 |
+ pyside-tools_compile() { |
92 |
+ CMAKE_USE_DIR="${BUILD_DIR}" cmake_src_compile |
93 |
+ } |
94 |
+ |
95 |
+ python_foreach_impl pyside-tools_compile |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ pyside-tools_install() { |
100 |
+ python_doexe "${BUILD_DIR}/pylupdate/pyside2-lupdate" |
101 |
+ } |
102 |
+ |
103 |
+ python_foreach_impl pyside-tools_install |
104 |
+ |
105 |
+ doman pylupdate/pyside2-lupdate.1 |
106 |
+ einstalldocs |
107 |
+} |