1 |
commit: c1e0726a3bb3579ce4d2e555707a41906967719c |
2 |
Author: John Helmert III <ajak <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 10 15:29:16 2022 +0000 |
4 |
Commit: John Helmert III <ajak <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 10 15:29:33 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1e0726a |
7 |
|
8 |
dev-util/rizin: add 0.4.1 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/868999 |
11 |
Signed-off-by: John Helmert III <ajak <AT> gentoo.org> |
12 |
|
13 |
dev-util/rizin/Manifest | 2 + |
14 |
dev-util/rizin/rizin-0.4.1.ebuild | 94 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 96 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest |
18 |
index 4904a831c03e..de010726dcf3 100644 |
19 |
--- a/dev-util/rizin/Manifest |
20 |
+++ b/dev-util/rizin/Manifest |
21 |
@@ -1,2 +1,4 @@ |
22 |
DIST rizin-src-v0.4.0.tar.xz 11432232 BLAKE2B 095ca9d317296afca9514a70f208e9aa87fc426e6b7e41163f64d5a1192a4d9ccd8ece9c4f13a24fc973668dece625fa13ad75542695a66c542fe2f0d9e66733 SHA512 9d576bee48e5ceae46b4e309c53e01b82edf89a95046f576e1c38fefa73353d6d1f04e6d444332324387d4e115bc87659a358629f7277a41dfef44c82364547b |
23 |
+DIST rizin-src-v0.4.1.tar.xz 11453808 BLAKE2B dcae21320e2533904d9a337d4fb9cc9a450439753106dc5c341e3ca7c788f0a44034340eb0dfe3fad4f1d8a7ebe873720d42d70ce343e8c7b953d4d148a38da2 SHA512 565358e11fd4db44ec7f8c25313a1cfc726c38a17afcb699c3fc2af520242fb343ea4a267f0a8e35bdc08e9a765a6a17ec7b8eaba9f9ad9ef5a7dcfe01c7354c |
24 |
DIST rizin-testbins-64a6f26369bf5893ecc20cb8984a5ad506ef8566.tar.gz 172591261 BLAKE2B e78843fd95ac0406f66490b7253206e77787fc65780bc7c6a67d26aa9618a6f85803a88724ad424a7bdeeb20d95ebf9314e582029ac778d7d4de4f207ff54aad SHA512 ada4a3faad94553f0f2802419ba604177bb66d332b1a351effd485d65bd8365abb36d736486bbd0bcbc0da584ad4a2edaa7aa3cb62fa12811282c2e0afecb950 |
25 |
+DIST rizin-testbins-aef7f7b714a696f382f55b8cbbf94c5b69518de3.tar.gz 178497762 BLAKE2B 8c82a537a58e65d35bd8b309311c4377b5996ff4b650fc6cff4cf347e04fbe4b2ec0e88f03ff43572c8e99675186b05b393b7da070a60ab107c3cca829d2544b SHA512 2745b58646963c28a45b46e8e709845c355863e61cf796aeb3d2e617f1bf2f9916a4b106cd08f48b1ef6e36f7f38624b5977dcd62c921124b0a1122b7220baa8 |
26 |
|
27 |
diff --git a/dev-util/rizin/rizin-0.4.1.ebuild b/dev-util/rizin/rizin-0.4.1.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..1fcd320b67bf |
30 |
--- /dev/null |
31 |
+++ b/dev-util/rizin/rizin-0.4.1.ebuild |
32 |
@@ -0,0 +1,94 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{9..11} ) |
39 |
+ |
40 |
+# This is the commit that the CI for the release commit used |
41 |
+BINS_COMMIT="aef7f7b714a696f382f55b8cbbf94c5b69518de3" |
42 |
+ |
43 |
+inherit meson python-any-r1 |
44 |
+ |
45 |
+DESCRIPTION="reverse engineering framework for binary analysis" |
46 |
+HOMEPAGE="https://rizin.re/" |
47 |
+ |
48 |
+SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz |
49 |
+ test? ( https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> rizin-testbins-${BINS_COMMIT}.tar.gz )" |
50 |
+KEYWORDS="amd64 ~arm64 ~x86" |
51 |
+ |
52 |
+LICENSE="Apache-2.0 BSD LGPL-3 MIT" |
53 |
+SLOT="0/${PV}" |
54 |
+IUSE="test" |
55 |
+ |
56 |
+# Need to audit licenses of the binaries used for testing |
57 |
+RESTRICT="fetch !test? ( test )" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ sys-apps/file |
61 |
+ app-arch/lz4:0= |
62 |
+ dev-libs/capstone:0= |
63 |
+ dev-libs/libuv:0= |
64 |
+ dev-libs/libzip:0= |
65 |
+ dev-libs/openssl:0= |
66 |
+ >=dev-libs/tree-sitter-0.19.0 |
67 |
+ dev-libs/xxhash |
68 |
+ sys-libs/zlib:0= |
69 |
+" |
70 |
+DEPEND="${RDEPEND}" |
71 |
+BDEPEND="${PYTHON_DEPS}" |
72 |
+ |
73 |
+PATCHES=( |
74 |
+ "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch" |
75 |
+) |
76 |
+ |
77 |
+S="${WORKDIR}/${PN}-v${PV}" |
78 |
+ |
79 |
+src_prepare() { |
80 |
+ default |
81 |
+ |
82 |
+ local py_to_mangle=( |
83 |
+ librz/core/cmd_descs/cmd_descs_generate.py |
84 |
+ subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py |
85 |
+ subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py |
86 |
+ subprojects/lz4-1.9.3/tests/test-lz4-list.py |
87 |
+ subprojects/lz4-1.9.3/tests/test-lz4-speed.py |
88 |
+ subprojects/lz4-1.9.3/tests/test-lz4-versions.py |
89 |
+ sys/clang-format.py |
90 |
+ test/fuzz/scripts/fuzz_rz_asm.py |
91 |
+ test/scripts/gdbserver.py |
92 |
+ ) |
93 |
+ |
94 |
+ python_fix_shebang "${py_to_mangle[@]}" |
95 |
+ |
96 |
+ if use test; then |
97 |
+ cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}/test/bins" || die |
98 |
+ cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}" || die |
99 |
+ fi |
100 |
+} |
101 |
+ |
102 |
+src_configure() { |
103 |
+ local emesonargs=( |
104 |
+ -Dcli=enabled |
105 |
+ -Duse_sys_capstone=enabled |
106 |
+ -Duse_sys_magic=enabled |
107 |
+ -Duse_sys_libzip=enabled |
108 |
+ -Duse_sys_zlib=enabled |
109 |
+ -Duse_sys_lz4=enabled |
110 |
+ -Duse_sys_xxhash=enabled |
111 |
+ -Duse_sys_openssl=enabled |
112 |
+ -Duse_sys_tree_sitter=enabled |
113 |
+ |
114 |
+ $(meson_use test enable_tests) |
115 |
+ $(meson_use test enable_rz_test) |
116 |
+ ) |
117 |
+ meson_src_configure |
118 |
+} |
119 |
+ |
120 |
+src_test() { |
121 |
+ # We can select running either unit or integration tests, or all of |
122 |
+ # them by not passing --suite. According to upstream, integration |
123 |
+ # tests are more fragile and unit tests are sufficient for testing |
124 |
+ # packaging, so only run those. |
125 |
+ meson_src_test --suite unit |
126 |
+} |