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