1 |
commit: 1216ea4d1ffae3bb3a94c31f4b513150eb86576d |
2 |
Author: John Helmert III <ajak <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 31 15:42:06 2021 +0000 |
4 |
Commit: John Helmert III <ajak <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 31 15:42:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1216ea4d |
7 |
|
8 |
dev-util/rizin: add 0.1.2 |
9 |
|
10 |
Fix tests, use system tree-sitter. |
11 |
|
12 |
Signed-off-by: John Helmert III <ajak <AT> gentoo.org> |
13 |
|
14 |
dev-util/rizin/Manifest | 2 ++ |
15 |
dev-util/rizin/rizin-0.1.2.ebuild | 60 +++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 62 insertions(+) |
17 |
|
18 |
diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest |
19 |
index 97ccecd84fd..0f1272bae1b 100644 |
20 |
--- a/dev-util/rizin/Manifest |
21 |
+++ b/dev-util/rizin/Manifest |
22 |
@@ -1 +1,3 @@ |
23 |
DIST rizin-src-0.1.1.tar.xz 5475164 BLAKE2B 7646f07d462f0c7e9874fe29bf0b638f0d10756c2189e2811ee1711c6feb9b76e5c5e90574c084c568a8fbe204c8867e6bfad17f12567fa4a579924bdbda6932 SHA512 da3842e2b8534d1440aed547cf7a7ee351527d78883e7f989509b50cd99d3aebabb9307169a9a5cfcf6d82a8cf5ade5c653d2fdbf6b7d2052e46f049b1a4d035 |
24 |
+DIST rizin-src-0.1.2.tar.xz 5559560 BLAKE2B a9182ae49782c57c3c4d4028203cfb1aef5b743096f4749a0ba65fa80ee421a23c3eb8a4f413f06f51c909c763a9bb06cb058cd334b3f4b0711ff72ee93c0df6 SHA512 f52987af5d1cd9f88a699610dfbb8118b23c5ce205c530a7b0c7481b06ee95a8e4d0d66297ca34c18e0b9366c963ea3244f37d66a7fda0ec6ffaa084f2ae7568 |
25 |
+DIST rizin-testbins-b7d6c0ec57eb1c14e970b8301f36cbac997ee695.tar.gz 116758002 BLAKE2B f30412c8b749de7e71e71b472ce1237091e71fac15d08e6ab5a3bcd9b87fbf75e347427cb588d18b62376040061f90b9b78016db689e46e5b32d3fd2aac6f1bf SHA512 94aca148dc2aaede66c63253717b3ee5f34b46dc8a634d7a3916786c97075c6eb9ee98af25c2af2778a601ade7cfb1d41ed3b11de36ddb74abc5f4eabef74ef3 |
26 |
|
27 |
diff --git a/dev-util/rizin/rizin-0.1.2.ebuild b/dev-util/rizin/rizin-0.1.2.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..d1ca78992fe |
30 |
--- /dev/null |
31 |
+++ b/dev-util/rizin/rizin-0.1.2.ebuild |
32 |
@@ -0,0 +1,60 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+# This is the commit that the CI for the release commit used |
39 |
+BINS_COMMIT="b7d6c0ec57eb1c14e970b8301f36cbac997ee695" |
40 |
+ |
41 |
+inherit meson |
42 |
+ |
43 |
+DESCRIPTION="reverse engineering framework for binary analysis" |
44 |
+HOMEPAGE="https://rizin.re/" |
45 |
+ |
46 |
+SRC_URI="https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-${PV}.tar.xz |
47 |
+ test? ( https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> rizin-testbins-${BINS_COMMIT}.tar.gz )" |
48 |
+KEYWORDS="~amd64" |
49 |
+ |
50 |
+LICENSE="Apache-2.0 BSD LGPL-3 MIT" |
51 |
+SLOT="0" |
52 |
+IUSE="test" |
53 |
+RESTRICT="!test? ( test )" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ sys-apps/file |
57 |
+ app-arch/lz4:0= |
58 |
+ dev-libs/capstone:0= |
59 |
+ dev-libs/libuv:0= |
60 |
+ dev-libs/libzip:0= |
61 |
+ dev-libs/openssl:0= |
62 |
+ dev-libs/tree-sitter |
63 |
+ dev-libs/xxhash |
64 |
+ sys-libs/zlib:0= |
65 |
+" |
66 |
+DEPEND="${RDEPEND}" |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ default |
70 |
+ |
71 |
+ if use test; then |
72 |
+ mv "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}/test/bins" || die |
73 |
+ fi |
74 |
+} |
75 |
+ |
76 |
+src_configure() { |
77 |
+ local emesonargs=( |
78 |
+ -Dcli=enabled |
79 |
+ -Duse_sys_capstone=true |
80 |
+ -Duse_sys_magic=true |
81 |
+ -Duse_sys_zip=true |
82 |
+ -Duse_sys_zlib=true |
83 |
+ -Duse_sys_lz4=true |
84 |
+ -Duse_sys_xxhash=true |
85 |
+ -Duse_sys_openssl=true |
86 |
+ -Duse_sys_tree_sitter=true |
87 |
+ |
88 |
+ $(meson_use test enable_tests) |
89 |
+ $(meson_use test enable_rz_test) |
90 |
+ ) |
91 |
+ meson_src_configure |
92 |
+} |