diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-05-17 06:29:05 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-05-17 06:29:05 +0200 |
commit | 1ee9907d60fb7b801a63991ed673b21f669da069 (patch) | |
tree | 06cd58cbc91f66d9d6113ea642fc43a519585a68 /dev-ruby/haml | |
parent | dev-python/pyshark: bump and dep fix (diff) | |
download | gentoo-1ee9907d60fb7b801a63991ed673b21f669da069.tar.gz gentoo-1ee9907d60fb7b801a63991ed673b21f669da069.tar.bz2 gentoo-1ee9907d60fb7b801a63991ed673b21f669da069.zip |
dev-ruby/haml: add 5.1.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'dev-ruby/haml')
-rw-r--r-- | dev-ruby/haml/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/haml/haml-5.1.0.ebuild | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-ruby/haml/Manifest b/dev-ruby/haml/Manifest index dbd34b2a349b..cd54ba788884 100644 --- a/dev-ruby/haml/Manifest +++ b/dev-ruby/haml/Manifest @@ -1,2 +1,3 @@ DIST haml-4.0.7.gem 121856 BLAKE2B e2598df73b9bf7337c06f60b30fcf7925fa5948f4643051aabbbdf600d25dbc2f614c4cf2054a916f69ef431847279eee1fbdf02e9bf2811369f2c195ed00413 SHA512 5736ded231bb10a0c0932453294604075e24a9020c2658e703c13ebf7a8d148327188157f982a3aea5db6d6938beb372c0167dfbc4ff06325517b2c8bd71a568 DIST haml-5.0.4.tar.gz 124580 BLAKE2B c22e464be26f65bd94b202b21604bb9fe3d740865832c9299d93606293794316a5262504e15583fdc2628a3015ea58f9924a9b3aab2f46340b305ad5af7968ac SHA512 125ae514f800b2dd58f7f339ef3bf8c15114c5738813d911985182d4e4b1e8551c92a89149427aa8bf3326f45c8f71f4f13f37ecb7e2bee5cb75163538f6a3a8 +DIST haml-5.1.0.tar.gz 125693 BLAKE2B 0a2e9044e7468a93b5fa62adc77131a67e79fe3701f86ba9dc341a5e33a52701bad09115137c7decfac92bd7e1aa92bbe6bd0a063ef5917c9c6cf4d072a9278a SHA512 97ed4eef3f1b0748c8d7c717dffc466db9da92c862bc90f9db05043facdbe58e605f83193a0d94b8bbcf2863ca0ab95de0a31ec266ee2907aacb94346fddd875 diff --git a/dev-ruby/haml/haml-5.1.0.ebuild b/dev-ruby/haml/haml-5.1.0.ebuild new file mode 100644 index 000000000000..425a2568ea5d --- /dev/null +++ b/dev-ruby/haml/haml-5.1.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby24 ruby25 ruby26" + +RUBY_FAKEGEM_TASK_TEST="MT_NO_PLUGINS=true 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="http://haml.info/" +SRC_URI="https://github.com/haml/haml/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="5" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-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:5.2 + dev-ruby/activemodel:5.2 + dev-ruby/actionpack:5.2 + ) + 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/I s:^:#:' \ + -e 's/gem "minitest"/gem "minitest", "~>5.0"/'\ + -e '1igem "actionpack", "~>5.2"'\ + -e '1igem "activesupport", "~>5.2"; gem "activemodel", "~>5.2"'\ + -e '1igem "railties", "~>5.2"'\ + 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 +} |