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