diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-11-10 07:52:55 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-11-10 07:53:15 +0100 |
commit | fce97924a9895029fcbf11f445b6b58aad12be89 (patch) | |
tree | 3d64469e7690df92f18841f98a15dd0640cc6fde /dev-ruby/slim/slim-3.0.9.ebuild | |
parent | dev-python/regex-2017.04.05: added ~mips, bug 617424 (diff) | |
download | gentoo-fce97924a9895029fcbf11f445b6b58aad12be89.tar.gz gentoo-fce97924a9895029fcbf11f445b6b58aad12be89.tar.bz2 gentoo-fce97924a9895029fcbf11f445b6b58aad12be89.zip |
dev-ruby/slim: add 3.0.9
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-ruby/slim/slim-3.0.9.ebuild')
-rw-r--r-- | dev-ruby/slim/slim-3.0.9.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/slim/slim-3.0.9.ebuild b/dev-ruby/slim/slim-3.0.9.ebuild new file mode 100644 index 000000000000..0cf97cb83d08 --- /dev/null +++ b/dev-ruby/slim/slim-3.0.9.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby22 ruby23 ruby24" + +RUBY_FAKEGEM_EXTRADOC="CHANGES README.md" + +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_TASK_DOC="yard" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A template language aiming to reduce the syntax to the essential parts" +HOMEPAGE="http://slim-lang.com/" +LICENSE="MIT" + +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +SLOT="0" +IUSE="doc" + +ruby_add_rdepend ">=dev-ruby/tilt-1.3.3:* <dev-ruby/tilt-2.1:* + >=dev-ruby/temple-0.7.6:0.7" + +ruby_add_bdepend "doc? ( dev-ruby/yard dev-ruby/redcarpet )" + +ruby_add_bdepend "test? ( dev-ruby/sass )" + +all_ruby_prepare() { + sed -i -e '/bundler/I s:^:#:' Rakefile || die + + # This sinatra code expects tests to be installed but we strip those. + sed -i -e "s/require 'sinatra'/require 'bogussinatra'/" Rakefile || die + + # Avoid tests for things we don't have. The builder test does not pass with tilt 2.x + sed -i -e '/test_wip_render_with_asciidoc/,/^ end/ s:^:#:' \ + -e '/test_render_with_wiki/,/^ end/ s:^:#:' \ + -e '/test_render_with_creole/,/^ end/ s:^:#:' \ + -e '/test_render_with_builder/,/^ end/ s:^:#:' \ + -e '/test_render_with_org/,/^ end/ s:^:#:' test/core/test_embedded_engines.rb || die + + sed -i -e '/s\.files/ s/git ls-files/find . -type f -print/' \ + -e '/s\.executables/ s:git ls-files -- bin/\*:find bin -type f -print:' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_prepare() { + sed -i -e '/Open3/ s:ruby:'${RUBY}':' test/core/test_commands.rb || die +} |