summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-util/rizin/Manifest1
-rw-r--r--dev-util/rizin/metadata.xml16
-rw-r--r--dev-util/rizin/rizin-0.1.1.ebuild51
3 files changed, 68 insertions, 0 deletions
diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
new file mode 100644
index 000000000000..97ccecd84fdc
--- /dev/null
+++ b/dev-util/rizin/Manifest
@@ -0,0 +1 @@
+DIST rizin-src-0.1.1.tar.xz 5475164 BLAKE2B 7646f07d462f0c7e9874fe29bf0b638f0d10756c2189e2811ee1711c6feb9b76e5c5e90574c084c568a8fbe204c8867e6bfad17f12567fa4a579924bdbda6932 SHA512 da3842e2b8534d1440aed547cf7a7ee351527d78883e7f989509b50cd99d3aebabb9307169a9a5cfcf6d82a8cf5ade5c653d2fdbf6b7d2052e46f049b1a4d035
diff --git a/dev-util/rizin/metadata.xml b/dev-util/rizin/metadata.xml
new file mode 100644
index 000000000000..65f8f96f8fa7
--- /dev/null
+++ b/dev-util/rizin/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ajak@gentoo.org</email>
+ <name>John Helmert III</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>sam@gentoo.org</email>
+ <name>Sam James</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/rizin/rizin-0.1.1.ebuild b/dev-util/rizin/rizin-0.1.1.ebuild
new file mode 100644
index 000000000000..95606c5515b2
--- /dev/null
+++ b/dev-util/rizin/rizin-0.1.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit meson
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/"
+
+SRC_URI="https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-${PV}.tar.xz"
+KEYWORDS="~amd64"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0"
+IUSE="test"
+
+RESTRICT=test # TODO: find out why dwarf and other tests fail
+
+RDEPEND="
+ sys-apps/file
+ app-arch/lz4:0=
+ dev-libs/capstone:0=
+ dev-libs/libuv:0=
+ dev-libs/libzip:0=
+ dev-libs/openssl:0=
+ dev-libs/tree-sitter
+ dev-libs/xxhash
+ sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ local emesonargs=(
+ -Dcli=enabled
+ -Duse_sys_capstone=true
+ -Duse_sys_magic=true
+ -Duse_sys_zip=true
+ -Duse_sys_zlib=true
+ -Duse_sys_lz4=true
+ -Duse_sys_xxhash=true
+ -Duse_sys_openssl=true
+
+ # ::gentoo's tree-sitter SIGSEGVs rizin
+ -Duse_sys_tree_sitter=false
+
+ $(meson_use test enable_tests)
+ $(meson_use test enable_rz_test)
+ )
+ meson_src_configure
+}