1 |
commit: 23893fc42a53f12bcb5056fe72f37b5ddcf3a3a9 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 27 12:52:57 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 27 12:54:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23893fc4 |
7 |
|
8 |
app-editors/qhexedit2: Revert "add SIP 5 patch" |
9 |
|
10 |
This reverts commit ee9e38d91f1b2b4a225df9e4e8bc1d83391d4ba7. |
11 |
|
12 |
Fails here with a different error. |
13 |
|
14 |
Bug: https://bugs.gentoo.org/815133 |
15 |
Bug: https://bugs.gentoo.org/820473 |
16 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
17 |
|
18 |
.../files/qhexedit2-0.8.6_p20190316-sip5.patch | 82 --------------------- |
19 |
.../qhexedit2/qhexedit2-0.8.6_p20190316-r1.ebuild | 86 ---------------------- |
20 |
2 files changed, 168 deletions(-) |
21 |
|
22 |
diff --git a/app-editors/qhexedit2/files/qhexedit2-0.8.6_p20190316-sip5.patch b/app-editors/qhexedit2/files/qhexedit2-0.8.6_p20190316-sip5.patch |
23 |
deleted file mode 100644 |
24 |
index 837c2af211f..00000000000 |
25 |
--- a/app-editors/qhexedit2/files/qhexedit2-0.8.6_p20190316-sip5.patch |
26 |
+++ /dev/null |
27 |
@@ -1,82 +0,0 @@ |
28 |
-https://github.com/Simsys/qhexedit2/pull/137 |
29 |
-https://src.fedoraproject.org/rpms/qhexedit2/blob/rawhide/f/sip5.patch |
30 |
-https://bugs.gentoo.org/815133 |
31 |
- |
32 |
-From ce17d35586de1b9fdc21e3f8450dd1d2b76d5bcc Mon Sep 17 00:00:00 2001 |
33 |
-From: Scott Talbert <swt@××××××.net> |
34 |
-Date: Mon, 18 Jan 2021 21:06:46 -0500 |
35 |
-Subject: [PATCH] Add support for building with sip 5 |
36 |
- |
37 |
---- |
38 |
- project.py | 29 +++++++++++++++++++++++++++++ |
39 |
- pyproject.toml | 14 ++++++++++++++ |
40 |
- src/qhexedit.sip | 2 +- |
41 |
- 3 files changed, 44 insertions(+), 1 deletion(-) |
42 |
- create mode 100644 project.py |
43 |
- create mode 100644 pyproject.toml |
44 |
- |
45 |
-diff --git a/project.py b/project.py |
46 |
-new file mode 100644 |
47 |
-index 0000000..c9ee67f |
48 |
---- /dev/null |
49 |
-+++ b/project.py |
50 |
-@@ -0,0 +1,29 @@ |
51 |
-+"""The build configuration file for QHexEdit, used by sip.""" |
52 |
-+ |
53 |
-+import os |
54 |
-+from os.path import abspath, join |
55 |
-+from sipbuild import Option |
56 |
-+from pyqtbuild import PyQtBindings, PyQtProject |
57 |
-+import PyQt5 |
58 |
-+ |
59 |
-+ |
60 |
-+class QHexEditProject(PyQtProject): |
61 |
-+ """The QHexEdit Project class.""" |
62 |
-+ |
63 |
-+ def __init__(self): |
64 |
-+ super().__init__() |
65 |
-+ self.bindings_factories = [QHexEditBindings] |
66 |
-+ |
67 |
-+ def update(self, tool): |
68 |
-+ """Allows SIP to find PyQt5 .sip files.""" |
69 |
-+ super().update(tool) |
70 |
-+ self.sip_include_dirs.append(join(PyQt5.__path__[0], 'bindings')) |
71 |
-+ |
72 |
-+ |
73 |
-+class QHexEditBindings(PyQtBindings): |
74 |
-+ """The QHexEdit Bindings class.""" |
75 |
-+ |
76 |
-+ def __init__(self, project): |
77 |
-+ super().__init__(project, name='QHexEdit', |
78 |
-+ sip_file='qhexedit.sip', |
79 |
-+ qmake_QT=['widgets']) |
80 |
-diff --git a/pyproject.toml b/pyproject.toml |
81 |
-new file mode 100644 |
82 |
-index 0000000..b5edaa4 |
83 |
---- /dev/null |
84 |
-+++ b/pyproject.toml |
85 |
-@@ -0,0 +1,14 @@ |
86 |
-+[build-system] |
87 |
-+requires = ["sip >=5", "PyQt-builder", "PyQt5"] |
88 |
-+build-backend = "sipbuild.api" |
89 |
-+ |
90 |
-+[tool.sip.metadata] |
91 |
-+name = "QHexEdit" |
92 |
-+version = "0.8.9" |
93 |
-+ |
94 |
-+[tools.sip] |
95 |
-+abi-version = "12.8" |
96 |
-+project-factory = "pyqtbuild:PyQtProject" |
97 |
-+ |
98 |
-+[tool.sip.project] |
99 |
-+sip-files-dir = "src" |
100 |
-diff --git a/src/qhexedit.sip b/src/qhexedit.sip |
101 |
-index f7db293..6d4ebae 100644 |
102 |
---- a/src/qhexedit.sip |
103 |
-+++ b/src/qhexedit.sip |
104 |
-@@ -1,4 +1,4 @@ |
105 |
--%Module(name=qhexedit, version=1) |
106 |
-+%Module(name=qhexedit) |
107 |
- |
108 |
- %Import QtCore/QtCoremod.sip |
109 |
- %Import QtGui/QtGuimod.sip |
110 |
|
111 |
diff --git a/app-editors/qhexedit2/qhexedit2-0.8.6_p20190316-r1.ebuild b/app-editors/qhexedit2/qhexedit2-0.8.6_p20190316-r1.ebuild |
112 |
deleted file mode 100644 |
113 |
index 5fcee894a76..00000000000 |
114 |
--- a/app-editors/qhexedit2/qhexedit2-0.8.6_p20190316-r1.ebuild |
115 |
+++ /dev/null |
116 |
@@ -1,86 +0,0 @@ |
117 |
-# Copyright 1999-2021 Gentoo Authors |
118 |
-# Distributed under the terms of the GNU General Public License v2 |
119 |
- |
120 |
-EAPI=7 |
121 |
- |
122 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
123 |
- |
124 |
-DISTUTILS_OPTIONAL=1 |
125 |
- |
126 |
-inherit distutils-r1 qmake-utils |
127 |
- |
128 |
-EGIT_COMMIT="ba5af8616b3a6c916e718914225a483267c01356" |
129 |
-DESCRIPTION="Hex editor library, Qt application written in C++ with Python bindings" |
130 |
-HOMEPAGE="https://github.com/lancos/qhexedit2/" |
131 |
-SRC_URI="https://github.com/lancos/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
132 |
- |
133 |
-LICENSE="GPL-2" |
134 |
-SLOT="0" |
135 |
-KEYWORDS="~amd64 ~x86" |
136 |
-IUSE="doc +gui python" |
137 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
138 |
- |
139 |
-PATCHES=( |
140 |
- "${FILESDIR}/${PN}-0.8.4-setup.py.patch" |
141 |
- "${FILESDIR}/${PN}-0.8.6_p20190316-sip5.patch" |
142 |
-) |
143 |
- |
144 |
-RDEPEND=" |
145 |
- dev-qt/qtcore:5 |
146 |
- dev-qt/qtgui:5 |
147 |
- dev-qt/qtwidgets:5 |
148 |
- python? ( |
149 |
- dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}] |
150 |
- >=dev-python/sip-5[${PYTHON_USEDEP}] |
151 |
- ${PYTHON_DEPS} |
152 |
- ) |
153 |
-" |
154 |
-DEPEND="${RDEPEND}" |
155 |
- |
156 |
-S="${WORKDIR}/${PN}-${EGIT_COMMIT}" |
157 |
- |
158 |
-src_prepare() { |
159 |
- default |
160 |
- sed -i -e '/^unix:DESTDIR/ d' -e "\$atarget.path = /usr/$(get_libdir)" \ |
161 |
- -e "\$aINSTALLS += target" src/qhexedit.pro \ |
162 |
- || die "src/qhexedit.pro: sed failed" |
163 |
- use python && distutils-r1_src_prepare |
164 |
-} |
165 |
- |
166 |
-src_configure() { |
167 |
- eqmake5 src/qhexedit.pro |
168 |
- if use gui; then |
169 |
- cd example || die "can't cd example" |
170 |
- eqmake5 qhexedit.pro |
171 |
- fi |
172 |
-} |
173 |
- |
174 |
-src_compile() { |
175 |
- default |
176 |
- use python && distutils-r1_src_compile |
177 |
- use gui && emake -C example |
178 |
-} |
179 |
- |
180 |
-python_compile() { |
181 |
- use python && distutils-r1_python_compile build_ext --library-dirs="${S}" |
182 |
-} |
183 |
- |
184 |
-src_test() { |
185 |
- cd test || die "can't cd test" |
186 |
- mkdir logs || die "can't create logs dir" |
187 |
- eqmake5 chunks.pro |
188 |
- emake |
189 |
- ./chunks || die "test run failed" |
190 |
- grep -q "^NOK" logs/Summary.log && die "test failed" |
191 |
-} |
192 |
- |
193 |
-src_install() { |
194 |
- emake INSTALL_ROOT="${D}" install |
195 |
- doheader src/*.h |
196 |
- use python && distutils-r1_src_install |
197 |
- use gui && dobin example/qhexedit |
198 |
- if use doc; then |
199 |
- dodoc -r doc/html |
200 |
- dodoc doc/release.txt |
201 |
- fi |
202 |
-} |