mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-04 12:18:08 -07:00
Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1457 Signed-off-by: Sam James <sam@gentoo.org>
43 lines
1.0 KiB
Bash
43 lines
1.0 KiB
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
USE_RUBY="ruby32 ruby33 ruby34 ruby40"
|
|
|
|
RUBY_FAKEGEM_RECIPE_DOC="none"
|
|
RUBY_FAKEGEM_EXTRADOC="BUGS README TODO"
|
|
RUBY_FAKEGEM_EXTRAINSTALL="metasm metasm.rb misc samples"
|
|
|
|
inherit ruby-fakegem
|
|
|
|
DESCRIPTION="Cross-architecture assembler, disassembler, linker, and debugger"
|
|
HOMEPAGE="https://metasm.cr0.org/"
|
|
|
|
LICENSE="LGPL-2.1"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm ~x86"
|
|
|
|
# hackily created
|
|
QA_PREBUILT="usr/lib*/ruby/gems/*/gems/${P}/${PN}/dynldr-*.so"
|
|
|
|
PATCHES=( "${FILESDIR}/${P}-ruby33.patch" )
|
|
|
|
all_ruby_prepare() {
|
|
mkdir bin || die
|
|
ln -s ../samples/disassemble.rb ./bin/disassemble || die
|
|
}
|
|
|
|
each_ruby_test() {
|
|
${RUBY} -Ilib:. -e "Dir['tests/*.rb'].each{|f| require f}" || die
|
|
}
|
|
|
|
all_ruby_install() {
|
|
all_fakegem_install
|
|
|
|
ruby_fakegem_binwrapper disassemble
|
|
|
|
# The library isn't created normally. Upstream creates it by hand. As such debugedit can fail to handle it.
|
|
dostrip -x $(find "${ED}" -name "dynldr-*.so" -printf '%P\n')
|
|
}
|