diff options
Diffstat (limited to 'dev-ruby/metasm')
-rw-r--r-- | dev-ruby/metasm/Manifest | 4 | ||||
-rw-r--r-- | dev-ruby/metasm/metadata.xml | 8 | ||||
-rw-r--r-- | dev-ruby/metasm/metasm-1.0.2-r4.ebuild | 59 | ||||
-rw-r--r-- | dev-ruby/metasm/metasm-9999.ebuild | 62 |
4 files changed, 133 insertions, 0 deletions
diff --git a/dev-ruby/metasm/Manifest b/dev-ruby/metasm/Manifest new file mode 100644 index 000000000000..a072bd3af51e --- /dev/null +++ b/dev-ruby/metasm/Manifest @@ -0,0 +1,4 @@ +DIST metasm-1.0.2.gem 746496 BLAKE2B e7248ba61702fa74d2f53b6f8f112d1cbc113742891478c932151771a6ec66bc560d1b6d2a886c018e48d64e515c5a09e4c9d98deea7608dc2579741117bb04b SHA512 b5f90e46be0d3b86c2b525823aa1fc1ea711a8abe9edaf2908af73d869e1f6dc5163f45ea20bd1034b0f10b17c25e7b7cd9af6a77ebfbf24d925a68a84d264e3 +EBUILD metasm-1.0.2-r4.ebuild 1269 BLAKE2B f7ec84e28e9fc88caabfe8bdf7a65091d66b5de52169e2a06c7754799a419f3d881ec0acf07f9655a45c0046d0613bd0d2893143781eff98d957a09531a146f3 SHA512 9fa688b44b6c3729e53e1daf1b9021ef86e95ddf1acdd17cda923c7b5e91c42ac352da380da62dece3b689d3ae41c45c82c2f119e426f71b71edf37bbc1f757a +EBUILD metasm-9999.ebuild 1397 BLAKE2B 95f932a99882e8172f484dba8c1ede455482e7ad2b9cfa217a9f962bb124f45e3338fc8b8fd224399fdd167d5a07b079d6a145a4526b951a0da058e7050e9eb5 SHA512 835bbcc55f8b7d9cd075083ab57601aefdd07bec31964dbeee6745ba850e5451b5a5b037a0a48f8699f4158d10658e1b3931082b4ce7f5430213932fb1d84dc7 +MISC metadata.xml 253 BLAKE2B 48f33288fc58b41b96f50af29bb4ce8989e714fa989ed445afc8933d1483e1026a019783805ad1b42399227819f461ed5c874df1c78c4bf144bccd07306ee995 SHA512 fad4a58e4c2a6eaa8bbbdc75e3995b5da53c9291f82480e35a9badfc1374bcc484663f2577790a46218be90d3b42bb45620297316c5493bc4a46af0dbd29189e diff --git a/dev-ruby/metasm/metadata.xml b/dev-ruby/metasm/metadata.xml new file mode 100644 index 000000000000..1c481a1d6de1 --- /dev/null +++ b/dev-ruby/metasm/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zerochaos@gentoo.org</email> + <name>Rick Farina</name> + </maintainer> +</pkgmetadata> diff --git a/dev-ruby/metasm/metasm-1.0.2-r4.ebuild b/dev-ruby/metasm/metasm-1.0.2-r4.ebuild new file mode 100644 index 000000000000..ce2838ed056f --- /dev/null +++ b/dev-ruby/metasm/metasm-1.0.2-r4.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby22 ruby23 ruby24 ruby25" + +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="http://metasm.cr0.org/" + +LICENSE="LGPL-2.1" +SLOT="${PV}" +IUSE="" + +if [ "${PV}" = "9999" ]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/jjyg/metasm.git" + KEYWORDS="" + SRC_URI="" + EGIT_CHECKOUT_DIR="${WORKDIR}/all" +else + KEYWORDS="~amd64 ~arm ~x86" +fi + +QA_PREBUILT="usr/lib*/ruby/gems/*/gems/${P}/${PN}/dynldr-linux-x64-233.so" + +ruby_add_bdepend "dev-ruby/bundler" + +all_ruby_prepare() { + if [ -f Gemfile.lock ]; then + rm Gemfile.lock || die + fi + + mkdir bin + ln -s ../samples/disassemble.rb ./bin/disassemble +} + +each_ruby_prepare() { + if [ -f Gemfile ] + then + BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die + BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die + fi +} + +all_ruby_install() { + all_fakegem_install + + ruby_fakegem_binwrapper disassemble +} + +each_ruby_test() { + ${RUBY} -Ilib:. -e "Dir['tests/*.rb'].each{|f| require f}" || die +} diff --git a/dev-ruby/metasm/metasm-9999.ebuild b/dev-ruby/metasm/metasm-9999.ebuild new file mode 100644 index 000000000000..d2bc0c7e0f98 --- /dev/null +++ b/dev-ruby/metasm/metasm-9999.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby21 ruby22 ruby23" + +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="http://metasm.cr0.org/" + +LICENSE="LGPL-2.1" +SLOT="${PV}" +IUSE="gtk" + +if [ "${PV}" = "9999" ]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/jjyg/metasm.git" + KEYWORDS="" + SRC_URI="" + EGIT_CHECKOUT_DIR="${WORKDIR}/all" +else + KEYWORDS="~amd64 ~arm ~x86" +fi + +QA_PREBUILT="usr/lib*/ruby/gems/*/gems/${P}/${PN}/dynldr-linux-x64-233.so" + +ruby_add_bdepend "dev-ruby/bundler + gtk? ( dev-ruby/ruby-gtk2 )" + +all_ruby_prepare() { + if [ -f Gemfile.lock ]; then + rm Gemfile.lock || die + fi + + mkdir bin + ln -s ../samples/disassemble.rb ./bin/disassemble + ln -s ../samples/disassemble-gui.rb ./bin/disassemble-gui +} + +each_ruby_prepare() { + if [ -f Gemfile ] + then + BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die + BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die + fi +} + +all_ruby_install() { + all_fakegem_install + + ruby_fakegem_binwrapper disassemble + ruby_fakegem_binwrapper disassemble-gui +} + +each_ruby_test() { + ${RUBY} -Ilib:. -e "Dir['tests/*.rb'].each{|f| require f}" || die +} |