diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-08-21 10:46:08 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-08-23 19:38:11 +0200 |
commit | a939866458a7aa0043763d41cceeb31a8d7acd62 (patch) | |
tree | 114eeed1ce8bcd13cd86896dfc26e74d859d02db /dev-ruby | |
parent | dev-ruby/ffaker: add 2.19.0 (diff) | |
download | gentoo-a939866458a7aa0043763d41cceeb31a8d7acd62.tar.gz gentoo-a939866458a7aa0043763d41cceeb31a8d7acd62.tar.bz2 gentoo-a939866458a7aa0043763d41cceeb31a8d7acd62.zip |
dev-ruby/haml: add 5.2.2
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/haml/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/haml/haml-5.2.2.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-ruby/haml/Manifest b/dev-ruby/haml/Manifest index bce24e994f6f..c848d057dd17 100644 --- a/dev-ruby/haml/Manifest +++ b/dev-ruby/haml/Manifest @@ -1,2 +1,3 @@ DIST haml-5.1.2.tar.gz 126059 BLAKE2B 5d805f29c28d0f6355f7b79e5724ec1639a808cfae75c26633edddcc82d964a48dbc1654b780fb706529ca22abcaba953a1af6f483386c336035c079a719e585 SHA512 405976de297bfdbd6f010442d940205c404f057a54cd7162feb400b1831af3e4e60fd05a637a2f480204428512ca7dd66c02aca22b0006d6d515c06968eb08a3 DIST haml-5.2.1.tar.gz 129795 BLAKE2B f561d8969fd4b49f1bbbf943c612a5cd3205a1b3a1ef544b4939dec5746d6e04b438f8bf69a320b95455fb15ab5a8d6c4c7ffef0aeec3d0698d46e6ef0d37e34 SHA512 b7a034604346b6e62f7cf13cce5582d53d81644bd4fc3b178b4c1e175fbea2160a562a6a2b539d810288ccfbca2d12099694a314d9df4286aac33ed1e0e22fa5 +DIST haml-5.2.2.tar.gz 129833 BLAKE2B d68c24c7a3c817d6d364b2ec92b84b4f56f4fffa48b99d17b2df27da35f50b1fb1f69b184a7b21d899c476e0d4c8ad2b940a7cb2995ec24ecdafab8ef61fe393 SHA512 1aec59fab20d8139a5dfedde2007fa8137a377a345e4d30229f9d1140d56cdf970c8ae70e2647e6a408d7fa543a16050f66a8a636efa6a6b1f91ee1ffcc136c1 diff --git a/dev-ruby/haml/haml-5.2.2.ebuild b/dev-ruby/haml/haml-5.2.2.ebuild new file mode 100644 index 000000000000..30d93b2b370b --- /dev/null +++ b/dev-ruby/haml/haml-5.2.2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby26 ruby27" + +RUBY_FAKEGEM_TASK_TEST="MT_NO_PLUGINS=true RUBYLIB=lib test" +RUBY_FAKEGEM_TASK_DOC="-Ilib doc" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md FAQ.md README.md REFERENCE.md" +RUBY_FAKEGEM_DOCDIR="doc" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A ruby web page templating engine" +HOMEPAGE="https://haml.info/" +SRC_URI="https://github.com/haml/haml/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +IUSE="doc test" + +RDEPEND="${RDEPEND} !!<dev-ruby/haml-4.0.7-r2" + +ruby_add_rdepend ">=dev-ruby/temple-0.8.0 dev-ruby/tilt:*" + +ruby_add_bdepend " + test? ( + dev-ruby/minitest:5 + dev-ruby/nokogiri + dev-ruby/railties:6.0 + dev-ruby/activemodel:6.0 + dev-ruby/actionpack:6.0 + ) + doc? ( + dev-ruby/yard + >=dev-ruby/maruku-0.7.2-r1 + )" + +all_ruby_prepare() { + sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die + + sed -i -e '/bundler/ s:^:#: ; /Bundler/,/end/ s:^:#:' Rakefile || die + sed -i -e '/bundler/I s:^:#:' \ + -e '/simplecov/I s:^:#:' \ + -e '1igem "actionpack", "~>6.0.0"'\ + -e '1igem "activesupport", "~>6.0.0"; gem "activemodel", "~>6.0.0"'\ + -e '1igem "railties", "~>6.0.0"'\ + test/test_helper.rb || die + # Remove test that fails when RedCloth is available + sed -i -e "/should raise error when a Tilt filters dependencies are unavailable for extension/,/^ end/ s/^/#/"\ + test/filters_test.rb || die +} |