diff options
Diffstat (limited to 'dev-ruby/metasm/metasm-1.0.5.ebuild')
-rw-r--r-- | dev-ruby/metasm/metasm-1.0.5.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-ruby/metasm/metasm-1.0.5.ebuild b/dev-ruby/metasm/metasm-1.0.5.ebuild new file mode 100644 index 000000000000..0cd06d331201 --- /dev/null +++ b/dev-ruby/metasm/metasm-1.0.5.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby25 ruby26 ruby27 ruby30" + +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="${PV}" +IUSE="" + +KEYWORDS="~amd64 ~arm ~x86" + +all_ruby_prepare() { + mkdir bin + ln -s ../samples/disassemble.rb ./bin/disassemble +} + +all_ruby_install() { + all_fakegem_install + + ruby_fakegem_binwrapper disassemble +} + +each_ruby_test() { + ${RUBY} -Ilib:. -e "Dir['tests/*.rb'].each{|f| require f}" || die +} |