1 |
On 10/08/2015 11:04 PM, Richard Farina wrote: |
2 |
> commit: f05eda22c275381c669e6f2a88dabd1356a3541f |
3 |
> Author: Zero_Chaos <zerochaos <AT> gentoo <DOT> org> |
4 |
> AuthorDate: Thu Oct 8 20:45:33 2015 +0000 |
5 |
> Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org> |
6 |
> CommitDate: Thu Oct 8 21:04:37 2015 +0000 |
7 |
> URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f05eda22 |
8 |
> |
9 |
> dev-ruby/metasm: import from pentoo |
10 |
> |
11 |
> Package-Manager: portage-2.2.22 |
12 |
> |
13 |
> dev-ruby/metasm/Manifest | 1 + |
14 |
> dev-ruby/metasm/metadata.xml | 10 +++++++ |
15 |
> dev-ruby/metasm/metasm-1.0.2-r1.ebuild | 52 ++++++++++++++++++++++++++++++++++ |
16 |
> 3 files changed, 63 insertions(+) |
17 |
> |
18 |
|
19 |
[...] |
20 |
|
21 |
> --- /dev/null |
22 |
> +++ b/dev-ruby/metasm/metasm-1.0.2-r1.ebuild |
23 |
> @@ -0,0 +1,52 @@ |
24 |
> +# Copyright 1999-2015 Gentoo Foundation |
25 |
> +# Distributed under the terms of the GNU General Public License v2 |
26 |
> +# $Id$ |
27 |
> + |
28 |
> +EAPI=5 |
29 |
> +USE_RUBY="ruby19 ruby20 ruby21" |
30 |
> + |
31 |
> +inherit ruby-fakegem |
32 |
> + |
33 |
> +RUBY_FAKEGEM_EXTRAINSTALL="metasm metasm.rb misc samples" |
34 |
> + |
35 |
> +DESCRIPTION="cross-architecture assembler, disassembler, linker, and debugger" |
36 |
> +HOMEPAGE="http://metasm.cr0.org/" |
37 |
> +SRC_URI="mirror://rubygems/${P}.gem" |
38 |
> + |
39 |
> +LICENSE="BSD" |
40 |
> +SLOT="${PV}" |
41 |
> +KEYWORDS="~amd64 ~arm ~x86" |
42 |
> +#IUSE="development test" |
43 |
> +RESTRICT=test |
44 |
> +IUSE="" |
45 |
> + |
46 |
> +RDEPEND="${RDEPEND} !dev-ruby/metasploit-model:0" |
47 |
> + |
48 |
> +ruby_add_rdepend ">=dev-ruby/railties-4.0.9:4.0 |
49 |
> + >=dev-ruby/activesupport-4.0.9:4.0 |
50 |
> + >=dev-ruby/activemodel-4.0.9:4.0" |
51 |
> +ruby_add_bdepend "dev-ruby/bundler" |
52 |
> + |
53 |
> +all_ruby_prepare() { |
54 |
> + [ -f Gemfile.lock ] && rm Gemfile.lock |
55 |
|
56 |
missing "|| die" afais, should probably be |
57 |
|
58 |
[ -f Gemfile.lock ] && { rm Gemfile.lock || die ; } |
59 |
|
60 |
> + #For now, we don't support development or testing at all |
61 |
> + #if ! use development; then |
62 |
> + sed -i -e "/^group :development do/,/^end$/d" Gemfile || die |
63 |
> + sed -i -e "/s.add_development_dependency/d" "${PN}".gemspec || die |
64 |
> + sed -i -e "/spec.add_development_dependency/d" "${PN}".gemspec || die |
65 |
> + #fi |
66 |
> + #if ! use test; then |
67 |
> + sed -i -e "/^group :test do/,/^end$/d" Gemfile || die |
68 |
> + #fi |
69 |
> + #if ! use test && ! use development; then |
70 |
> + sed -i -e "/^group :development, :test do/,/^end$/d" Gemfile || die |
71 |
> + #fi |
72 |
> +} |
73 |
> + |
74 |
> +each_ruby_prepare() { |
75 |
> + if [ -f Gemfile ] |
76 |
> + then |
77 |
> + BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die |
78 |
> + BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die |
79 |
> + fi |
80 |
> +} |
81 |
> |