summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-05-21 19:14:22 +0200
committerHans de Graaff <graaff@gentoo.org>2019-05-22 07:05:14 +0200
commit6e511fcc683d788e9b1db459a34ca2c4479ddcd4 (patch)
tree2a1afd5c060751705b7b2443f92b126bd5490b0f /dev-ruby/metasm/metasm-1.0.4.ebuild
parentnet-dns/bind-tools: arm64 stable (diff)
downloadgentoo-6e511fcc683d788e9b1db459a34ca2c4479ddcd4.tar.gz
gentoo-6e511fcc683d788e9b1db459a34ca2c4479ddcd4.tar.bz2
gentoo-6e511fcc683d788e9b1db459a34ca2c4479ddcd4.zip
dev-ruby/metasm: add 1.0.4
Signed-off-by: Hans de Graaff <graaff@gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'dev-ruby/metasm/metasm-1.0.4.ebuild')
-rw-r--r--dev-ruby/metasm/metasm-1.0.4.ebuild35
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-ruby/metasm/metasm-1.0.4.ebuild b/dev-ruby/metasm/metasm-1.0.4.ebuild
new file mode 100644
index 000000000000..c8698af680ca
--- /dev/null
+++ b/dev-ruby/metasm/metasm-1.0.4.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby24 ruby25 ruby26"
+
+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
+}