summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-05-22 07:59:01 +0200
committerHans de Graaff <graaff@gentoo.org>2016-05-22 07:59:01 +0200
commit23defe6ac5b62c009e841f07ab164b26475b6f81 (patch)
tree29289e29c215273536805ec1089ed4ed69e7874d /dev-ruby/slim
parentdev-ruby/slim: cleanup (diff)
downloadgentoo-23defe6ac5b62c009e841f07ab164b26475b6f81.tar.gz
gentoo-23defe6ac5b62c009e841f07ab164b26475b6f81.tar.bz2
gentoo-23defe6ac5b62c009e841f07ab164b26475b6f81.zip
dev-ruby/slim: add 3.0.7
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby/slim')
-rw-r--r--dev-ruby/slim/Manifest1
-rw-r--r--dev-ruby/slim/slim-3.0.7.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/slim/Manifest b/dev-ruby/slim/Manifest
index e4866fc077bb..f1f1af06836a 100644
--- a/dev-ruby/slim/Manifest
+++ b/dev-ruby/slim/Manifest
@@ -1 +1,2 @@
DIST slim-3.0.6.gem 96256 SHA256 1315604e79dcf6c89916007ad297e716c35109e19d2d6ce42b5557006138faeb SHA512 06b13f2880752be7e00ee61a86f0d88926b1f0f108b496355a40b30d32101bb777062079b4727eafe7166d404374badb9d2ee50c53dbf4d2206d583c71fb6e7c WHIRLPOOL 4485de92621f7944d74400a561220e1434d0c009cf985864a0169699794028db404ea93d3872e739d49b0c781454e46d85c10d0f5c6b5ba8505c109f1c17362a
+DIST slim-3.0.7.gem 97280 SHA256 1747e293c161fdb21547f27b2eb585af26c19baa3110866a28e10d3b05ab5088 SHA512 b410ed35941a3cfc68f8ab5649450381f830f94c8503e062afcd097f5a669df4cf8035d0baefd42bffaad5d12766baf70bad3eed82149fd861f615649ee469c0 WHIRLPOOL 941e29de5ef4d9a8e720e98ed65b6992089b954f9991b4f9481b977d0f9eac295d9f07374403c5875a9a22ebc2687fe13e66e6808f17e0ad69f5686f029d9300
diff --git a/dev-ruby/slim/slim-3.0.7.ebuild b/dev-ruby/slim/slim-3.0.7.ebuild
new file mode 100644
index 000000000000..03858e3d6c19
--- /dev/null
+++ b/dev-ruby/slim/slim-3.0.7.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGES README.md"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_TASK_DOC="yard"
+
+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"
+SLOT="0"
+IUSE="doc"
+
+ruby_add_rdepend ">=dev-ruby/tilt-1.3.3:* <dev-ruby/tilt-2.1:*
+ >=dev-ruby/temple-0.7.3: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.
+ 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_org/,/^ end/ s:^:#:' test/core/test_embedded_engines.rb || die
+}
+
+each_ruby_prepare() {
+ sed -i -e '/Open3/ s:ruby:'${RUBY}':' test/core/test_commands.rb || die
+}