diff --git a/dev-util/metasm/Manifest b/dev-util/metasm/Manifest new file mode 100644 index 000000000..58eb088e5 --- /dev/null +++ b/dev-util/metasm/Manifest @@ -0,0 +1,2 @@ +AUX metasm 138 RMD160 5a77a342e6aed3f80307136efc0d9f9152290f24 SHA1 8ced766b9fe6ed83144d0481246f365c8ce1fcdb SHA256 53babbae64669bcbcae6cda4f28c99e4856628c3e7f36ee8130c4d857d5e2385 +EBUILD metasm-9999.ebuild 1129 RMD160 346922629670e63959fe52f0d2018a87f34ad6fd SHA1 701f48aa0cc393eeb332c8a1530c0e5f7a857776 SHA256 c77992eb7170015d77b7421b41b00cb3c88dd0d747512bce7923e7e0d688c0ef diff --git a/dev-util/metasm/files/metasm b/dev-util/metasm/files/metasm new file mode 100644 index 000000000..8c42a9458 --- /dev/null +++ b/dev-util/metasm/files/metasm @@ -0,0 +1,7 @@ +#!/bin/sh + +cd /usr/lib/metasm +echo "Here's all the metasm samples/scripts" +echo "The metasm core in in your site_ruby's dir" +ls +/bin/bash diff --git a/dev-util/metasm/metasm-9999.ebuild b/dev-util/metasm/metasm-9999.ebuild new file mode 100644 index 000000000..885559d40 --- /dev/null +++ b/dev-util/metasm/metasm-9999.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +USE_RUBY="ruby18 ruby19" + +inherit ruby-ng git + +DESCRIPTION="Metasm is a cross-architecture assembler, disassembler, compiler, linker and debugger" +HOMEPAGE="http://metasm.cr0.org/" +SRC_URI="" +EGIT_REPO_URI="http://github.com/jjyg/${PN}.git" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gtk" + +RDEPEND="dev-ruby/rubygems + dev-ruby/ruby-gtk2" +DEPEND="${RDEPEND}" + +each_ruby_install() { + # Ugly WA to make git&ruby works together + cd "${WORKDIR}/${P}" + doruby -r metasm.rb metasm || die "install failed" +} + +all_ruby_install() { + cd "${WORKDIR}/${P}" + dodoc BUGS CREDITS README TODO doc/*.txt doc/*/* + insopts -m 0655 + insinto /usr/lib/"${PN}" + cd samples + doins -r * || die "failed to install scripts" + cd ../misc + doins -r * || die "failed to install scripts" + cd ../tests + doins -r * || die "failed to install scripts" + dodir /usr/bin + dosym ../lib/"${PN}"/disassemble.rb /usr/bin/disassemble + dosym ../lib/"${PN}"/disassemble-gui.rb /usr/bin/disassemble-gui + dobin "${FILESDIR}"/metasm +}