1 |
commit: 452617a72e1de40381a006ea02a9b031f71d7634 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Oct 5 20:50:38 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Oct 5 20:50:53 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=452617a7 |
7 |
|
8 |
app-editors/imhex: add 1.10.1 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
app-editors/imhex/Manifest | 1 + |
13 |
app-editors/imhex/imhex-1.10.1.ebuild | 106 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 107 insertions(+) |
15 |
|
16 |
diff --git a/app-editors/imhex/Manifest b/app-editors/imhex/Manifest |
17 |
index d9a07528d..d07eb6afc 100644 |
18 |
--- a/app-editors/imhex/Manifest |
19 |
+++ b/app-editors/imhex/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST imhex-1.10.0.tar.gz 8509953 BLAKE2B e258693f44d5524a86c88e29152bfe9777a149236f146a16b88bc7a49d3450f1b46138649a830c7164175afaea3c0d5e76c998e3e65020627b3c978c504431bb SHA512 03d84e30d5ee064ef2c3faf5cb40965f2c94b41e4d8b3e2e3e800f079d0710f0660b4c751dc0c4516b9b19bbf57df44a102ae61fa41d56606ce1f37c9aa8313c |
22 |
+DIST imhex-1.10.1.tar.gz 8523483 BLAKE2B 7d73a06cfe83fdd9fa8723f1c64a752212f8e2f0dbf902f2d1da1349e53e580684263b168569f092d32c129eddba40131d8f8bd3148d6d59340dcd67bcdc8b6e SHA512 0542ce5db530989367dfc98932bd09e3020c955e2bd666122644612e1c41e2bc3d6a6374c60e7afbb4bae86c75930dfbc7a48f37a8cd8a0d85a550231f470b91 |
23 |
DIST imhex-1.8.1.tar.gz 1758664 BLAKE2B 62c58358810bd4f1192495001d01fc6c6fe8f28a35adc1478c8b2d0dab0fd929c0f46018c9afd51c1094cbae0c04002f4887fb2fb9377b6c645abaee006b9a03 SHA512 c6ec73a282c9eb90b58d164c29abbef3dceba09aa706a8295cecdcb429d5efa4015fac0dd0a3111eae3efe667f5b16f063624bf188a00a400fc06b008e3b51f8 |
24 |
|
25 |
diff --git a/app-editors/imhex/imhex-1.10.1.ebuild b/app-editors/imhex/imhex-1.10.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000..511463ff0 |
28 |
--- /dev/null |
29 |
+++ b/app-editors/imhex/imhex-1.10.1.ebuild |
30 |
@@ -0,0 +1,106 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+CMAKE_BUILD_TYPE="Release" |
37 |
+CMAKE_MAKEFILE_GENERATOR="emake" |
38 |
+LLVM_MAX_SLOT=12 |
39 |
+PYTHON_COMPAT=( python3_{8..10} ) |
40 |
+ |
41 |
+inherit cmake desktop llvm python-single-r1 xdg-utils |
42 |
+ |
43 |
+DESCRIPTION="A hex editor for reverse engineers, programmers, and eyesight" |
44 |
+HOMEPAGE="https://github.com/WerWolv/ImHex" |
45 |
+SRC_URI="https://github.com/WerWolv/ImHex/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+S="${WORKDIR}/ImHex-${PV}" |
47 |
+ |
48 |
+LICENSE="GPL-2" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64" |
51 |
+ |
52 |
+DEPEND=" |
53 |
+ ${PYTHON_DEPS} |
54 |
+ app-forensics/yara |
55 |
+ >=dev-cpp/nlohmann_json-3.10.2 |
56 |
+ dev-cpp/xdgpp |
57 |
+ dev-libs/capstone |
58 |
+ >=dev-libs/libfmt-8.0.0 |
59 |
+ dev-libs/nativefiledialog-extended |
60 |
+ dev-libs/openssl |
61 |
+ dev-libs/tre |
62 |
+ media-libs/freetype |
63 |
+ media-libs/glfw |
64 |
+ media-libs/glm |
65 |
+ net-libs/mbedtls |
66 |
+ net-misc/curl |
67 |
+ sys-apps/file |
68 |
+ sys-devel/llvm:${LLVM_MAX_SLOT} |
69 |
+ virtual/libiconv |
70 |
+ virtual/libintl |
71 |
+" |
72 |
+RDEPEND="${DEPEND}" |
73 |
+BDEPEND="app-admin/chrpath" |
74 |
+ |
75 |
+PATCHES=( |
76 |
+ "${FILESDIR}/${PN}-1.8.1-system-xdgpp.patch" |
77 |
+ "${FILESDIR}/${PN}-1.8.1-system-nativefiledialog.patch" |
78 |
+ "${FILESDIR}/${P}-fix-yara-linking.patch" |
79 |
+ "${FILESDIR}/${P}-no-lnlohmann_json.patch" |
80 |
+ "${FILESDIR}/${P}-link-mbedtls.patch" |
81 |
+) |
82 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
83 |
+ |
84 |
+src_prepare() { |
85 |
+ rm -r external/{curl,fmt,llvm,nativefiledialog,nlohmann_json,xdgpp,yara} || die |
86 |
+ cmake_src_prepare |
87 |
+} |
88 |
+ |
89 |
+src_configure() { |
90 |
+ python-single-r1_pkg_setup |
91 |
+ local mycmakeargs=( |
92 |
+ -DPROJECT_VERSION="${PV}" |
93 |
+ -DPYTHON_VERSION_MAJOR_MINOR="\"${EPYTHON/python/}\"" |
94 |
+ -DUSE_SYSTEM_CURL=ON |
95 |
+ -DUSE_SYSTEM_FMT=ON |
96 |
+ -DUSE_SYSTEM_LLVM=ON |
97 |
+ -DUSE_SYSTEM_NLOHMANN_JSON=ON |
98 |
+ -DUSE_SYSTEM_YARA=ON |
99 |
+ ) |
100 |
+ cmake_src_configure |
101 |
+} |
102 |
+ |
103 |
+src_install() { |
104 |
+ # can't use cmake_src_install, doing it manual |
105 |
+ dobin "${BUILD_DIR}/${PN}" |
106 |
+ insinto "/usr/$(get_libdir)" |
107 |
+ doins "${BUILD_DIR}/plugins/builtin/builtin.hexplug" |
108 |
+ dolib.so "${BUILD_DIR}/plugins/lib${PN}/lib${PN}.so" |
109 |
+ insinto "/usr/share/${PN}" |
110 |
+ doins "${S}/res/icon.ico" |
111 |
+ doins -r "${S}/res/resources" |
112 |
+ |
113 |
+ chrpath -d "${ED}/usr/bin/imhex" |
114 |
+ chrpath -d "${ED}/usr/$(get_libdir)/builtin.hexplug" |
115 |
+ |
116 |
+ mypythondir="${D}/$(python_get_sitedir)/imhex" |
117 |
+ mkdir -p "${mypythondir}" || die |
118 |
+ mv "${S}"/python_libs/lib/* "${mypythondir}" || die |
119 |
+ python_optimize "${mypythondir}" |
120 |
+ |
121 |
+ # create desktop icon |
122 |
+ make_desktop_entry "imhex" "ImHex" "/usr/share/${PN}/icon.ico" "X-Editor" |
123 |
+ |
124 |
+ # install docs |
125 |
+ einstalldocs |
126 |
+} |
127 |
+ |
128 |
+pkg_postinst() { |
129 |
+ xdg_desktop_database_update |
130 |
+ xdg_mimeinfo_database_update |
131 |
+} |
132 |
+ |
133 |
+pkg_postrm() { |
134 |
+ xdg_desktop_database_update |
135 |
+ xdg_mimeinfo_database_update |
136 |
+} |