1 |
commit: b1954f0b14ff0203658ca936938f967f37f68095 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 27 06:50:35 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 27 06:50:42 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1954f0b |
7 |
|
8 |
app-editors/qhexedit2: add 0.8.9 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/758260 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
app-editors/qhexedit2/Manifest | 1 + |
14 |
app-editors/qhexedit2/qhexedit2-0.8.9.ebuild | 81 ++++++++++++++++++++++++++++ |
15 |
2 files changed, 82 insertions(+) |
16 |
|
17 |
diff --git a/app-editors/qhexedit2/Manifest b/app-editors/qhexedit2/Manifest |
18 |
index 31427cf34c3..ac77a6c9696 100644 |
19 |
--- a/app-editors/qhexedit2/Manifest |
20 |
+++ b/app-editors/qhexedit2/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST qhexedit2-0.8.6_p20190316.tar.gz 355512 BLAKE2B a7edc8d05a7788f3a3f2202762ca3dc436cafbde1b1216ff1bb342055600a2e9d53c27fe324380331b8182904545c698106129238065cd2416d244fdfa176446 SHA512 4ef288c8a220c308d38c41fee83fe962e213cdfa448445ef73c3d2fe1952b68f2096732e78d2aa0a87eddd3cf2f47bed3e77807e12d2b7616c1447b3bf1b0e7d |
23 |
+DIST qhexedit2-0.8.9.tar.gz 341341 BLAKE2B 901cda2d28074bb535426102e40e0d5b6e68d3659b16ab4755b124de1f8a0ca878494e537f2c44b19dfc7bd9b9db499e74f66bd42301a73d12830486b7883d02 SHA512 db914adf7ab1226c652101b48a66b463c768447b96fe0b70ece060820c94dff9fbd91c6c3dbb16bb1df330f480662c15cc703e799ead9ec1580b825d2209f880 |
24 |
|
25 |
diff --git a/app-editors/qhexedit2/qhexedit2-0.8.9.ebuild b/app-editors/qhexedit2/qhexedit2-0.8.9.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..371993ff1e3 |
28 |
--- /dev/null |
29 |
+++ b/app-editors/qhexedit2/qhexedit2-0.8.9.ebuild |
30 |
@@ -0,0 +1,81 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
37 |
+DISTUTILS_OPTIONAL=1 |
38 |
+inherit distutils-r1 qmake-utils |
39 |
+ |
40 |
+DESCRIPTION="Hex editor library, Qt application written in C++ with Python bindings" |
41 |
+HOMEPAGE="https://github.com/lancos/qhexedit2/" |
42 |
+SRC_URI="https://github.com/Simsys/qhexedit2/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+IUSE="doc +gui python" |
48 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
49 |
+ |
50 |
+PATCHES=( |
51 |
+ "${FILESDIR}/${PN}-0.8.4-setup.py.patch" |
52 |
+ "${FILESDIR}/${PN}-0.8.6_p20190316-sip5.patch" |
53 |
+) |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ dev-qt/qtcore:5 |
57 |
+ dev-qt/qtgui:5 |
58 |
+ dev-qt/qtwidgets:5 |
59 |
+ python? ( |
60 |
+ dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}] |
61 |
+ >=dev-python/sip-5[${PYTHON_USEDEP}] |
62 |
+ ${PYTHON_DEPS} |
63 |
+ ) |
64 |
+" |
65 |
+DEPEND="${RDEPEND}" |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ default |
69 |
+ sed -i -e '/^unix:DESTDIR/ d' -e "\$atarget.path = /usr/$(get_libdir)" \ |
70 |
+ -e "\$aINSTALLS += target" src/qhexedit.pro \ |
71 |
+ || die "src/qhexedit.pro: sed failed" |
72 |
+ use python && distutils-r1_src_prepare |
73 |
+} |
74 |
+ |
75 |
+src_configure() { |
76 |
+ eqmake5 src/qhexedit.pro |
77 |
+ if use gui; then |
78 |
+ cd example || die "can't cd example" |
79 |
+ eqmake5 qhexedit.pro |
80 |
+ fi |
81 |
+} |
82 |
+ |
83 |
+src_compile() { |
84 |
+ default |
85 |
+ use python && distutils-r1_src_compile |
86 |
+ use gui && emake -C example |
87 |
+} |
88 |
+ |
89 |
+python_compile() { |
90 |
+ use python && distutils-r1_python_compile build_ext --library-dirs="${S}" |
91 |
+} |
92 |
+ |
93 |
+src_test() { |
94 |
+ cd test || die "can't cd test" |
95 |
+ mkdir logs || die "can't create logs dir" |
96 |
+ eqmake5 chunks.pro |
97 |
+ emake |
98 |
+ ./chunks || die "test run failed" |
99 |
+ grep -q "^NOK" logs/Summary.log && die "test failed" |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ emake INSTALL_ROOT="${D}" install |
104 |
+ doheader src/*.h |
105 |
+ use python && distutils-r1_src_install |
106 |
+ use gui && dobin example/qhexedit |
107 |
+ if use doc; then |
108 |
+ dodoc -r doc/html |
109 |
+ dodoc doc/release.txt |
110 |
+ fi |
111 |
+} |