1 |
commit: 24a2f276897660f1476cc8b5cf96eaf0e3db4894 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 18 06:05:55 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 18 06:13:22 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24a2f276 |
7 |
|
8 |
dev-ruby/haml: add ruby27 |
9 |
|
10 |
Package-Manager: Portage-3.0.17, Repoman-3.0.2 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/haml/haml-5.1.2-r1.ebuild | 58 ++++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 58 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/haml/haml-5.1.2-r1.ebuild b/dev-ruby/haml/haml-5.1.2-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..b90ecb0360d |
19 |
--- /dev/null |
20 |
+++ b/dev-ruby/haml/haml-5.1.2-r1.ebuild |
21 |
@@ -0,0 +1,58 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+USE_RUBY="ruby25 ruby26 ruby27" |
28 |
+ |
29 |
+RUBY_FAKEGEM_TASK_TEST="MT_NO_PLUGINS=true test" |
30 |
+RUBY_FAKEGEM_TASK_DOC="-Ilib doc" |
31 |
+ |
32 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md FAQ.md README.md REFERENCE.md" |
33 |
+RUBY_FAKEGEM_DOCDIR="doc" |
34 |
+ |
35 |
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
36 |
+ |
37 |
+inherit ruby-fakegem |
38 |
+ |
39 |
+DESCRIPTION="A ruby web page templating engine" |
40 |
+HOMEPAGE="https://haml.info/" |
41 |
+SRC_URI="https://github.com/haml/haml/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="MIT" |
44 |
+SLOT="5" |
45 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
46 |
+ |
47 |
+IUSE="doc test" |
48 |
+ |
49 |
+RDEPEND="${RDEPEND} !!<dev-ruby/haml-4.0.7-r2" |
50 |
+ |
51 |
+ruby_add_rdepend ">=dev-ruby/temple-0.8.0 dev-ruby/tilt:*" |
52 |
+ |
53 |
+ruby_add_bdepend " |
54 |
+ test? ( |
55 |
+ dev-ruby/minitest:5 |
56 |
+ dev-ruby/nokogiri |
57 |
+ dev-ruby/railties:6.0 |
58 |
+ dev-ruby/activemodel:6.0 |
59 |
+ dev-ruby/actionpack:6.0 |
60 |
+ ) |
61 |
+ doc? ( |
62 |
+ dev-ruby/yard |
63 |
+ >=dev-ruby/maruku-0.7.2-r1 |
64 |
+ )" |
65 |
+ |
66 |
+all_ruby_prepare() { |
67 |
+ sed -i -e 's/git ls-files -z/find . -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die |
68 |
+ |
69 |
+ sed -i -e '/bundler/ s:^:#: ; /Bundler/,/end/ s:^:#:' Rakefile || die |
70 |
+ sed -i -e '/bundler/I s:^:#:' \ |
71 |
+ -e 's/gem "minitest"/gem "minitest", "~>5.0"/'\ |
72 |
+ -e '1igem "actionpack", "~>6.0.0"'\ |
73 |
+ -e '1igem "activesupport", "~>6.0.0"; gem "activemodel", "~>6.0.0"'\ |
74 |
+ -e '1igem "railties", "~>6.0.0"'\ |
75 |
+ test/test_helper.rb || die |
76 |
+ # Remove test that fails when RedCloth is available |
77 |
+ sed -i -e "/should raise error when a Tilt filters dependencies are unavailable for extension/,/^ end/ s/^/#/"\ |
78 |
+ test/filters_test.rb || die |
79 |
+} |