Gentoo Archives: gentoo-commits

From: "Diego Elio Pettenò" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/ruby-overlay:master commit in: dev-ruby/pry/
Date: Mon, 30 Apr 2012 19:26:37
Message-Id: 1335813975.852d064bfc9f7d57101f010716e9339db6a26df9.flameeyes@gentoo
1 commit: 852d064bfc9f7d57101f010716e9339db6a26df9
2 Author: Diego Elio Pettenò <flameeyes <AT> flameeyes <DOT> eu>
3 AuthorDate: Mon Apr 30 19:26:15 2012 +0000
4 Commit: Diego Elio Pettenò <flameeyes <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 30 19:26:15 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ruby-overlay.git;a=commit;h=852d064b
7
8 Add a version bump of pry, with updated deps. Tests fail.
9
10 (Portage version: 2.2.0_alpha101/git/Linux x86_64, RepoMan options: --force, signed Manifest commit with key D4301342)
11
12 ---
13 dev-ruby/pry/ChangeLog | 10 +++++++++
14 dev-ruby/pry/metadata.xml | 6 +++++
15 dev-ruby/pry/pry-0.9.9.4.ebuild | 42 +++++++++++++++++++++++++++++++++++++++
16 3 files changed, 58 insertions(+), 0 deletions(-)
17
18 diff --git a/dev-ruby/pry/ChangeLog b/dev-ruby/pry/ChangeLog
19 new file mode 100644
20 index 0000000..f49f38c
21 --- /dev/null
22 +++ b/dev-ruby/pry/ChangeLog
23 @@ -0,0 +1,10 @@
24 +# ChangeLog for dev-ruby/pry
25 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
26 +# $Header: $
27 +
28 +*pry-0.9.9.4 (30 Apr 2012)
29 +
30 + 30 Apr 2012; Diego E. Pettenò <flameeyes@g.o> +metadata.xml,
31 + +pry-0.9.9.4.ebuild:
32 + Add a version bump of pry, with updated deps. Tests fail.
33 +
34
35 diff --git a/dev-ruby/pry/metadata.xml b/dev-ruby/pry/metadata.xml
36 new file mode 100644
37 index 0000000..8ff28fd
38 --- /dev/null
39 +++ b/dev-ruby/pry/metadata.xml
40 @@ -0,0 +1,6 @@
41 +<?xml version="1.0" encoding="UTF-8"?>
42 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
43 +<pkgmetadata>
44 + <herd>ruby</herd>
45 +</pkgmetadata>
46 +
47
48 diff --git a/dev-ruby/pry/pry-0.9.9.4.ebuild b/dev-ruby/pry/pry-0.9.9.4.ebuild
49 new file mode 100644
50 index 0000000..358b641
51 --- /dev/null
52 +++ b/dev-ruby/pry/pry-0.9.9.4.ebuild
53 @@ -0,0 +1,42 @@
54 +# Copyright 1999-2012 Gentoo Foundation
55 +# Distributed under the terms of the GNU General Public License v2
56 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pry/pry-0.9.7.4.ebuild,v 1.2 2012/01/28 07:56:27 graaff Exp $
57 +
58 +EAPI=4
59 +
60 +USE_RUBY="ruby18 ruby19 ree18"
61 +
62 +RUBY_FAKEGEM_TASK_DOC=""
63 +RUBY_FAKEGEM_EXTRADOC="README.markdown"
64 +RUBY_FAKEGEM_GEMSPEC=${PN}.gemspec
65 +
66 +inherit ruby-fakegem
67 +
68 +DESCRIPTION="Pry is a powerful alternative to the standard IRB shell for Ruby."
69 +HOMEPAGE="https://github.com/pry/pry/wiki"
70 +IUSE=""
71 +SLOT="0"
72 +
73 +LICENSE="MIT"
74 +KEYWORDS="~amd64"
75 +
76 +ruby_add_rdepend ">=dev-ruby/ruby_parser-2.0.5
77 + >=dev-ruby/coderay-1.0.5
78 + >=dev-ruby/slop-2.4.4:0
79 + >=dev-ruby/method_source-0.7.1-r1"
80 +
81 +ruby_add_bdepend "test? ( >=dev-ruby/bacon-1.1 >=dev-ruby/open4-1.3 )"
82 +
83 +all_ruby_prepare() {
84 + # Make version dependencies more lenient to avoid problems with
85 + # compatible upgrades.
86 + sed -i \
87 + -e '/coderay/s:~>:>=:' \
88 + -e '/slop/s:~> 2.4.4:>= 2.4:' \
89 + -e '/method_source/s:~>:>=:' \
90 + ${RUBY_FAKEGEM_GEMSPEC} || die
91 +}
92 +
93 +each_ruby_test() {
94 + ${RUBY} -S bacon -Itest -a || die
95 +}