commit: b4f183a6dc0444896b10aded21d341846dc5ad8d Author: Dawn Xu <18202203719 <AT> 163 <DOT> com> AuthorDate: Fri Jul 4 10:30:12 2025 +0000 Commit: Dawn Xu <18202203719 <AT> 163 <DOT> com> CommitDate: Fri Jul 4 10:32:49 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b4f183a6
dev-util/rz-ghidra: new package, add 0.8.0 Signed-off-by: Dawn Xu <18202203719 <AT> 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(+) 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Dawn Xu</name> + </maintainer> + <upstream> + <remote-id type="github"> rizinorg/rz-ghidra </remote-id> + </upstream> + <longdescription lang="en"> + 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. + </longdescription> + <use> + <flag name="cutter-plugin"> Build as dev-util/cutter's plugin </flag> + </use> +</pkgmetadata> 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 +} +
