1 |
commit: 02f083936236b26158bfd6be33a985ebe7631c51 |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 27 19:24:39 2018 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 27 19:49:08 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02f08393 |
7 |
|
8 |
dev-python/PyQt5-sip: new package |
9 |
|
10 |
This is the private SIP module (sip.so) for PyQt5, required since PyQt5-5.11. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/668014 |
13 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
14 |
Signed-off-by: Davide Pesavento <pesa <AT> gentoo.org> |
15 |
|
16 |
dev-python/PyQt5-sip/Manifest | 1 + |
17 |
.../PyQt5-sip-4.19.14_pre1812231555.ebuild | 91 ++++++++++++++++++++++ |
18 |
dev-python/PyQt5-sip/metadata.xml | 18 +++++ |
19 |
3 files changed, 110 insertions(+) |
20 |
|
21 |
diff --git a/dev-python/PyQt5-sip/Manifest b/dev-python/PyQt5-sip/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..b9720f773e0 |
24 |
--- /dev/null |
25 |
+++ b/dev-python/PyQt5-sip/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST sip-4.19.14.dev1812231555.tar.gz 1020224 BLAKE2B e3df5a8b7829278987c5b368b8b6c28c04fc0b3bb3847451e48411ef9ba5cda932007613ad31f34381446ea02d62281b27ae4951babca5ec8b75f065aa296365 SHA512 decf2f7baacede27c42d359eb875a895c9a92b36a8e8a29f4666b3f98f570d821e80dbb32fd946ce230f726fafc4000af9b167df8cfd188bcd7f85fbc71bd4b1 |
28 |
|
29 |
diff --git a/dev-python/PyQt5-sip/PyQt5-sip-4.19.14_pre1812231555.ebuild b/dev-python/PyQt5-sip/PyQt5-sip-4.19.14_pre1812231555.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..457acbf3654 |
32 |
--- /dev/null |
33 |
+++ b/dev-python/PyQt5-sip/PyQt5-sip-4.19.14_pre1812231555.ebuild |
34 |
@@ -0,0 +1,91 @@ |
35 |
+# Copyright 1999-2018 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} ) |
41 |
+inherit python-r1 toolchain-funcs |
42 |
+ |
43 |
+DESCRIPTION="Private sip module for PyQt5" |
44 |
+HOMEPAGE="https://www.riverbankcomputing.com/software/sip/intro" |
45 |
+ |
46 |
+MY_P=sip-${PV/_pre/.dev} |
47 |
+if [[ ${PV} == *_pre* ]]; then |
48 |
+ SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" |
49 |
+else |
50 |
+ SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz" |
51 |
+fi |
52 |
+ |
53 |
+# Sub-slot based on SIP_API_MAJOR_NR from siplib/sip.h |
54 |
+SLOT="0/12" |
55 |
+LICENSE="|| ( GPL-2 GPL-3 SIP )" |
56 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
57 |
+IUSE="debug" |
58 |
+ |
59 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
60 |
+ |
61 |
+DEPEND="${PYTHON_DEPS}" |
62 |
+RDEPEND="${DEPEND}" |
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 |
+ if ! python_is_python3; then |
85 |
+ local CFLAGS="${CFLAGS} -fno-strict-aliasing" |
86 |
+ fi |
87 |
+ |
88 |
+ local myconf=( |
89 |
+ "${PYTHON}" |
90 |
+ "${S}"/configure.py |
91 |
+ $(usex debug --debug '') |
92 |
+ --sip-module PyQt5.sip |
93 |
+ --no-tools |
94 |
+ AR="$(tc-getAR) cqs" |
95 |
+ CC="$(tc-getCC)" |
96 |
+ CFLAGS="${CFLAGS}" |
97 |
+ CFLAGS_RELEASE= |
98 |
+ CXX="$(tc-getCXX)" |
99 |
+ CXXFLAGS="${CXXFLAGS}" |
100 |
+ CXXFLAGS_RELEASE= |
101 |
+ LINK="$(tc-getCXX)" |
102 |
+ LINK_SHLIB="$(tc-getCXX)" |
103 |
+ LFLAGS="${LDFLAGS}" |
104 |
+ LFLAGS_RELEASE= |
105 |
+ RANLIB= |
106 |
+ STRIP= |
107 |
+ ) |
108 |
+ echo "${myconf[@]}" |
109 |
+ "${myconf[@]}" || die |
110 |
+ } |
111 |
+ python_foreach_impl run_in_build_dir configuration |
112 |
+} |
113 |
+ |
114 |
+src_compile() { |
115 |
+ python_foreach_impl run_in_build_dir default |
116 |
+} |
117 |
+ |
118 |
+src_install() { |
119 |
+ installation() { |
120 |
+ emake DESTDIR="${D}" install |
121 |
+ } |
122 |
+ python_foreach_impl run_in_build_dir installation |
123 |
+ |
124 |
+ einstalldocs |
125 |
+} |
126 |
|
127 |
diff --git a/dev-python/PyQt5-sip/metadata.xml b/dev-python/PyQt5-sip/metadata.xml |
128 |
new file mode 100644 |
129 |
index 00000000000..9b8cb511f25 |
130 |
--- /dev/null |
131 |
+++ b/dev-python/PyQt5-sip/metadata.xml |
132 |
@@ -0,0 +1,18 @@ |
133 |
+<?xml version="1.0" encoding="UTF-8"?> |
134 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
135 |
+<pkgmetadata> |
136 |
+ <maintainer type="project"> |
137 |
+ <email>qt@g.o</email> |
138 |
+ <name>Gentoo Qt Project</name> |
139 |
+ </maintainer> |
140 |
+ <upstream> |
141 |
+ <maintainer status="active"> |
142 |
+ <email>phil@××××××××××××××××××.com</email> |
143 |
+ <name>Phil Thompson</name> |
144 |
+ </maintainer> |
145 |
+ <bugs-to>mailto:pyqt@××××××××××××××××××.com</bugs-to> |
146 |
+ <doc>http://pyqt.sourceforge.net/Docs/sip4/</doc> |
147 |
+ <remote-id type="pypi">SIP</remote-id> |
148 |
+ <remote-id type="sourceforge">pyqt</remote-id> |
149 |
+ </upstream> |
150 |
+</pkgmetadata> |