1 |
commit: b11f0e7bab4a5e6eab63be824fd97d4adbf04e8f |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 17 23:49:50 2020 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 17 23:49:50 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b11f0e7b |
7 |
|
8 |
dev-python/PyQt5-sip: add 4.19.24 |
9 |
|
10 |
Package-Manager: Portage-3.0.3, Repoman-3.0.0 |
11 |
Signed-off-by: Davide Pesavento <pesa <AT> gentoo.org> |
12 |
|
13 |
dev-python/PyQt5-sip/Manifest | 1 + |
14 |
dev-python/PyQt5-sip/PyQt5-sip-4.19.24.ebuild | 90 +++++++++++++++++++++++++++ |
15 |
2 files changed, 91 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/PyQt5-sip/Manifest b/dev-python/PyQt5-sip/Manifest |
18 |
index 707324268f8..19581414f6a 100644 |
19 |
--- a/dev-python/PyQt5-sip/Manifest |
20 |
+++ b/dev-python/PyQt5-sip/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST sip-4.19.22.tar.gz 1050805 BLAKE2B 7382fdf74c5bb8b55bcedae74acdcb7b81ef06a64d129a9e6f11a5eb293900e37df513f1c4290f2299f49a5bd97e2a6b3c6bc32ddbf2eaf848bd5e5c5dc25edc SHA512 4d366e589945e589f69a3caf979076ef37e319ac0efdd8ec3cee4869da89e112832462215ca2e235036bacfade7efc4d530aa93e7492c283dc1b2503e08feea5 |
23 |
DIST sip-4.19.23.tar.gz 1053640 BLAKE2B 316c972a5cf7dd6464a418702e7d91192202330cf89a78d6ef480034ac8fc2f3f4cfedb85e6bc7d3d018bfe3d29ea767133db008dbfa521312e3aea2b96cff74 SHA512 a50c6202ebb6a5d1c98b6fc79925fa5d82236a944003854b057be9e2f7340d5cd689ba0e08f46f521736f3574c4089768c869bb8921e66b23944a31a832770f1 |
24 |
+DIST sip-4.19.24.tar.gz 1055461 BLAKE2B 6990b127a83fa57bc084eb9a1097f73c384b4fcf3d181479557fe2ffc66cde254bfbb5aef26f5ddd84dca346f54184952e7a111adf3b665f68571853e63b6575 SHA512 c9acf8c66da6ff24ffaeed254c11deabbc587cea0eb50164f2016199af30b85980f96a2d754ae5e7fe080f9076673b1abc82e2a6a41ff2ac442fb2b326fca1c0 |
25 |
|
26 |
diff --git a/dev-python/PyQt5-sip/PyQt5-sip-4.19.24.ebuild b/dev-python/PyQt5-sip/PyQt5-sip-4.19.24.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..d5d6640ea13 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/PyQt5-sip/PyQt5-sip-4.19.24.ebuild |
31 |
@@ -0,0 +1,90 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{6..9} ) |
38 |
+inherit python-r1 toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="Private sip module for PyQt5" |
41 |
+HOMEPAGE="https://www.riverbankcomputing.com/software/sip/intro" |
42 |
+ |
43 |
+MY_PN=sip |
44 |
+MY_P=${MY_PN}-${PV/_pre/.dev} |
45 |
+if [[ ${PV} == *_pre* ]]; then |
46 |
+ SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" |
47 |
+else |
48 |
+ SRC_URI="https://www.riverbankcomputing.com/static/Downloads/${MY_PN}/${PV}/${MY_P}.tar.gz" |
49 |
+fi |
50 |
+ |
51 |
+# Sub-slot based on SIP_API_MAJOR_NR from siplib/sip.h |
52 |
+SLOT="0/12" |
53 |
+LICENSE="|| ( GPL-2 GPL-3 SIP )" |
54 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
55 |
+IUSE="" |
56 |
+ |
57 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
58 |
+ |
59 |
+DEPEND="${PYTHON_DEPS}" |
60 |
+RDEPEND="${DEPEND} |
61 |
+ !<dev-python/PyQt5-5.12.2 |
62 |
+" |
63 |
+ |
64 |
+S=${WORKDIR}/${MY_P} |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ # Sub-slot sanity check |
68 |
+ local sub_slot=${SLOT#*/} |
69 |
+ local sip_api_major_nr=$(sed -nre 's:^#define SIP_API_MAJOR_NR\s+([0-9]+):\1:p' siplib/sip.h || die) |
70 |
+ if [[ ${sub_slot} != ${sip_api_major_nr} ]]; then |
71 |
+ eerror |
72 |
+ eerror "Ebuild sub-slot (${sub_slot}) does not match SIP_API_MAJOR_NR (${sip_api_major_nr})" |
73 |
+ eerror "Please update SLOT variable as follows:" |
74 |
+ eerror " SLOT=\"${SLOT%%/*}/${sip_api_major_nr}\"" |
75 |
+ eerror |
76 |
+ die "sub-slot sanity check failed" |
77 |
+ fi |
78 |
+ |
79 |
+ default |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ configuration() { |
84 |
+ local myconf=( |
85 |
+ "${PYTHON}" |
86 |
+ "${S}"/configure.py |
87 |
+ --sip-module PyQt5.sip |
88 |
+ --sysroot="${ESYSROOT}/usr" |
89 |
+ --no-tools |
90 |
+ AR="$(tc-getAR) cqs" |
91 |
+ CC="$(tc-getCC)" |
92 |
+ CFLAGS="${CFLAGS}" |
93 |
+ CFLAGS_RELEASE= |
94 |
+ CXX="$(tc-getCXX)" |
95 |
+ CXXFLAGS="${CXXFLAGS}" |
96 |
+ CXXFLAGS_RELEASE= |
97 |
+ LINK="$(tc-getCXX)" |
98 |
+ LINK_SHLIB="$(tc-getCXX)" |
99 |
+ LFLAGS="${LDFLAGS}" |
100 |
+ LFLAGS_RELEASE= |
101 |
+ RANLIB= |
102 |
+ STRIP= |
103 |
+ ) |
104 |
+ echo "${myconf[@]}" |
105 |
+ "${myconf[@]}" || die |
106 |
+ } |
107 |
+ python_foreach_impl run_in_build_dir configuration |
108 |
+} |
109 |
+ |
110 |
+src_compile() { |
111 |
+ python_foreach_impl run_in_build_dir default |
112 |
+} |
113 |
+ |
114 |
+src_install() { |
115 |
+ installation() { |
116 |
+ emake DESTDIR="${D}" install |
117 |
+ } |
118 |
+ python_foreach_impl run_in_build_dir installation |
119 |
+ |
120 |
+ einstalldocs |
121 |
+} |