From b4f183a6dc0444896b10aded21d341846dc5ad8d Mon Sep 17 00:00:00 2001 From: Dawn Xu <18202203719@163.com> Date: Fri, 4 Jul 2025 18:30:12 +0800 Subject: [PATCH] dev-util/rz-ghidra: new package, add 0.8.0 Signed-off-by: Dawn Xu <18202203719@163.com> --- dev-util/rz-ghidra/Manifest | 1 + dev-util/rz-ghidra/metadata.xml | 17 ++++++++++ dev-util/rz-ghidra/rz-ghidra-0.8.0.ebuild | 39 +++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 dev-util/rz-ghidra/Manifest create mode 100644 dev-util/rz-ghidra/metadata.xml create mode 100644 dev-util/rz-ghidra/rz-ghidra-0.8.0.ebuild diff --git a/dev-util/rz-ghidra/Manifest b/dev-util/rz-ghidra/Manifest new file mode 100644 index 0000000000..057ef03da7 --- /dev/null +++ b/dev-util/rz-ghidra/Manifest @@ -0,0 +1 @@ +DIST rz-ghidra-0.8.0.tar.gz 68038707 BLAKE2B 195b5bc6b556ab05f277a2bc1f515705e05d9b54e4db22d0fbb5a3ae5f02b8b31394260011f069bf0738de4307b1ebbabfa86b54fd3fa61028ffb2386b83eb75 SHA512 770978b6cddad0559794da39bd677b855c1c36a945f22e6754907c15f10e0291ef29eb4d28396b65802509fd73c8f077dde4f22482d45542e42207824b244e81 diff --git a/dev-util/rz-ghidra/metadata.xml b/dev-util/rz-ghidra/metadata.xml new file mode 100644 index 0000000000..cbddd42e90 --- /dev/null +++ b/dev-util/rz-ghidra/metadata.xml @@ -0,0 +1,17 @@ + + + + + 18202203719@163.com + Dawn Xu + + + rizinorg/rz-ghidra + + + This is an integration of the Ghidra decompiler and Sleigh Disassembler for Rizin. It is solely based on the decompiler part of Ghidra, which is written entirely in C++, so Ghidra itself is not required at all and the plugin can be built self-contained. This project was presented, initially for radare2. + + + Build as dev-util/cutter's plugin + + diff --git a/dev-util/rz-ghidra/rz-ghidra-0.8.0.ebuild b/dev-util/rz-ghidra/rz-ghidra-0.8.0.ebuild new file mode 100644 index 0000000000..a0b2cc31bb --- /dev/null +++ b/dev-util/rz-ghidra/rz-ghidra-0.8.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit cmake +DESCRIPTION="An integration of the Ghidra decompiler and Sleigh Disassembler for Rizin." +HOMEPAGE="https://github.com/rizinorg/rz-ghidra" +SRC_URI="https://github.com/rizinorg/rz-ghidra/releases/download/v${PV}/rz-ghidra-src-v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+cutter-plugin" + +RDEPEND=" + cutter-plugin? ( dev-util/cutter ) + dev-util/rizin + dev-libs/pugixml + " +BDEPEND=" + virtual/pkgconfig +" +S="${WORKDIR}/rz-ghidra" +src_configure(){ + local mycmakeargs=( + -DUSE_SYSTEM_PUGIXML=ON + ) + if use cutter-plugin ;then + mycmakeargs+=( + -DBUILD_CUTTER_PLUGIN=ON + -DCUTTER_INSTALL_PLUGDIR="${EPREFIX}/usr/share/rizin/cutter/plugins/native" + ) + fi + cmake_src_configure +} +src_install(){ + cmake_src_install +} +