Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/slim/
Date: Mon, 04 Nov 2019 18:34:06
Message-Id: 1572892386.29a00452987a7b9b52cd4876e3f9cf462d664962.graaff@gentoo
1 commit: 29a00452987a7b9b52cd4876e3f9cf462d664962
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 4 18:32:45 2019 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 4 18:33:06 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29a00452
7
8 dev-ruby/slim: fix file collision
9
10 Fixes: https://bugs.gentoo.org/665714
11 Package-Manager: Portage-2.3.76, Repoman-2.3.16
12 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
13
14 dev-ruby/slim/slim-3.0.9-r1.ebuild | 52 ++++++++++++++++++++++++++++++++++++++
15 dev-ruby/slim/slim-4.0.1-r1.ebuild | 51 +++++++++++++++++++++++++++++++++++++
16 2 files changed, 103 insertions(+)
17
18 diff --git a/dev-ruby/slim/slim-3.0.9-r1.ebuild b/dev-ruby/slim/slim-3.0.9-r1.ebuild
19 new file mode 100644
20 index 00000000000..28b1bf6d333
21 --- /dev/null
22 +++ b/dev-ruby/slim/slim-3.0.9-r1.ebuild
23 @@ -0,0 +1,52 @@
24 +# Copyright 1999-2019 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=6
28 +USE_RUBY="ruby24 ruby25 ruby26"
29 +
30 +RUBY_FAKEGEM_EXTRADOC="CHANGES README.md"
31 +
32 +RUBY_FAKEGEM_DOCDIR="doc"
33 +RUBY_FAKEGEM_TASK_DOC="yard"
34 +
35 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
36 +
37 +RUBY_FAKEGEM_BINWRAP=""
38 +
39 +inherit ruby-fakegem
40 +
41 +DESCRIPTION="A template language aiming to reduce the syntax to the essential parts"
42 +HOMEPAGE="http://slim-lang.com/"
43 +LICENSE="MIT"
44 +
45 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
46 +SLOT="0"
47 +IUSE="doc"
48 +
49 +ruby_add_rdepend ">=dev-ruby/tilt-1.3.3:* <dev-ruby/tilt-2.1:*
50 + >=dev-ruby/temple-0.7.6:0.7"
51 +
52 +ruby_add_bdepend "doc? ( dev-ruby/yard dev-ruby/redcarpet )"
53 +
54 +ruby_add_bdepend "test? ( dev-ruby/redcarpet dev-ruby/sass )"
55 +
56 +all_ruby_prepare() {
57 + sed -i -e '/bundler/I s:^:#:' Rakefile || die
58 +
59 + # This sinatra code expects tests to be installed but we strip those.
60 + sed -i -e "s/require 'sinatra'/require 'bogussinatra'/" Rakefile || die
61 +
62 + # Avoid tests for things we don't have. The builder test does not pass with tilt 2.x
63 + sed -i -e '/test_wip_render_with_asciidoc/,/^ end/ s:^:#:' \
64 + -e '/test_render_with_wiki/,/^ end/ s:^:#:' \
65 + -e '/test_render_with_creole/,/^ end/ s:^:#:' \
66 + -e '/test_render_with_builder/,/^ end/ s:^:#:' \
67 + -e '/test_render_with_org/,/^ end/ s:^:#:' test/core/test_embedded_engines.rb || die
68 +
69 + sed -i -e '/s\.files/ s/git ls-files/find . -type f -print/' \
70 + -e '/s\.executables/ s:git ls-files -- bin/\*:find bin -type f -print:' ${RUBY_FAKEGEM_GEMSPEC} || die
71 +}
72 +
73 +each_ruby_prepare() {
74 + sed -i -e '/Open3/ s:ruby:'${RUBY}':' test/core/test_commands.rb || die
75 +}
76
77 diff --git a/dev-ruby/slim/slim-4.0.1-r1.ebuild b/dev-ruby/slim/slim-4.0.1-r1.ebuild
78 new file mode 100644
79 index 00000000000..4e71e1931b4
80 --- /dev/null
81 +++ b/dev-ruby/slim/slim-4.0.1-r1.ebuild
82 @@ -0,0 +1,51 @@
83 +# Copyright 1999-2019 Gentoo Authors
84 +# Distributed under the terms of the GNU General Public License v2
85 +
86 +EAPI=6
87 +USE_RUBY="ruby24 ruby25 ruby26"
88 +
89 +RUBY_FAKEGEM_EXTRADOC="CHANGES README.md"
90 +
91 +RUBY_FAKEGEM_DOCDIR="doc"
92 +RUBY_FAKEGEM_TASK_DOC="yard"
93 +
94 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
95 +
96 +inherit eapi7-ver ruby-fakegem
97 +
98 +DESCRIPTION="A template language aiming to reduce the syntax to the essential parts"
99 +HOMEPAGE="http://slim-lang.com/"
100 +LICENSE="MIT"
101 +
102 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
103 +SLOT="$(ver_cut 1)"
104 +IUSE="doc"
105 +
106 +ruby_add_rdepend ">=dev-ruby/tilt-2.0.6:* =dev-ruby/tilt-2.0*:*
107 + >=dev-ruby/temple-0.7.6:0.7
108 + !!<dev-ruby/slim-3.0.9-r1"
109 +
110 +ruby_add_bdepend "doc? ( dev-ruby/yard dev-ruby/redcarpet )"
111 +
112 +ruby_add_bdepend "test? ( dev-ruby/redcarpet dev-ruby/sass )"
113 +
114 +all_ruby_prepare() {
115 + sed -i -e '/bundler/I s:^:#:' Rakefile || die
116 +
117 + # This sinatra code expects tests to be installed but we strip those.
118 + sed -i -e "s/require 'sinatra'/require 'bogussinatra'/" Rakefile || die
119 +
120 + # Avoid tests for things we don't have. The builder test does not pass with tilt 2.x
121 + sed -i -e '/test_wip_render_with_asciidoc/,/^ end/ s:^:#:' \
122 + -e '/test_render_with_wiki/,/^ end/ s:^:#:' \
123 + -e '/test_render_with_creole/,/^ end/ s:^:#:' \
124 + -e '/test_render_with_builder/,/^ end/ s:^:#:' \
125 + -e '/test_render_with_org/,/^ end/ s:^:#:' test/core/test_embedded_engines.rb || die
126 +
127 + sed -i -e '/s\.files/ s/git ls-files/find . -type f -print/' \
128 + -e '/s\.executables/ s:git ls-files -- bin/\*:find bin -type f -print:' ${RUBY_FAKEGEM_GEMSPEC} || die
129 +}
130 +
131 +each_ruby_prepare() {
132 + sed -i -e '/Open3/ s:ruby:'${RUBY}':' test/core/test_commands.rb || die
133 +}