mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
dev-util/rz-ghidra: new package, add 0.8.0
Signed-off-by: Dawn Xu <18202203719@163.com>
This commit is contained in:
1
dev-util/rz-ghidra/Manifest
Normal file
1
dev-util/rz-ghidra/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST rz-ghidra-0.8.0.tar.gz 68038707 BLAKE2B 195b5bc6b556ab05f277a2bc1f515705e05d9b54e4db22d0fbb5a3ae5f02b8b31394260011f069bf0738de4307b1ebbabfa86b54fd3fa61028ffb2386b83eb75 SHA512 770978b6cddad0559794da39bd677b855c1c36a945f22e6754907c15f10e0291ef29eb4d28396b65802509fd73c8f077dde4f22482d45542e42207824b244e81
|
||||
17
dev-util/rz-ghidra/metadata.xml
Normal file
17
dev-util/rz-ghidra/metadata.xml
Normal file
@@ -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>18202203719@163.com</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>
|
||||
39
dev-util/rz-ghidra/rz-ghidra-0.8.0.ebuild
Normal file
39
dev-util/rz-ghidra/rz-ghidra-0.8.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user