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