summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-06-05 08:07:48 +0200
committerHans de Graaff <graaff@gentoo.org>2016-06-05 08:07:48 +0200
commit4aba7b835b200adb1e37f58d717a93afe21ef726 (patch)
tree22539d48d41154862b835ccc310e1050637c3dbe /www-apps/nanoc
parentdev-ruby/network_interface: add ruby23 (diff)
downloadgentoo-4aba7b835b200adb1e37f58d717a93afe21ef726.tar.gz
gentoo-4aba7b835b200adb1e37f58d717a93afe21ef726.tar.bz2
gentoo-4aba7b835b200adb1e37f58d717a93afe21ef726.zip
www-apps/nanoc: add 4.2.0
Package-Manager: portage-2.2.28
Diffstat (limited to 'www-apps/nanoc')
-rw-r--r--www-apps/nanoc/Manifest1
-rw-r--r--www-apps/nanoc/nanoc-4.2.0.ebuild71
2 files changed, 72 insertions, 0 deletions
diff --git a/www-apps/nanoc/Manifest b/www-apps/nanoc/Manifest
index c1b7038ae511..bd8f76634d4c 100644
--- a/www-apps/nanoc/Manifest
+++ b/www-apps/nanoc/Manifest
@@ -1,2 +1,3 @@
DIST nanoc-3.8.0.gem 189440 SHA256 382397d761ea1a97537eaee995e37ba416f7f7f093090cc812071a9eb28cea1e SHA512 ed39b6e799ea16fe19539181c0de2054af428b0ecdec5cfd592948aa14f3f0e7233a6039e57d68d9046824f55b7fc00d4f2621c4bd4b77d243e40c5c8750e93e WHIRLPOOL 33b92d6da24974c1d525d8da2433d62863ff97423ad8079c3937ac1c5c98fa310a05b179afa390d1fe3758a2e423951c880210508fdcbfc9c601e67fcbb841c5
DIST nanoc-4.1.6.gem 173056 SHA256 95887475fac5a9bc1e59a74f6a5df9b2655b19a6389953121210276ca373db30 SHA512 bf6059558f8465a0aab7fa67b1fefb06618bd2ee54f61fb5e8b77d6738bb4f2bc97604cfa76164aa2c759be8aa4912ec3538cf349a77f903321acd786029b2d8 WHIRLPOOL 396b32ba5170aeaed2f2b11917e480b27a9e63046da344e3232ca4b2691c56d9037877ea2370f9225f77eb65af03a8b3b4f4b9962611d41e65db0d08184eb5b4
+DIST nanoc-4.2.0.gem 171520 SHA256 b047dec47e53989a8a784954de2a891fbcf43939dab606874809c4eca379131c SHA512 b11b4175ace0701af6fbeaa3a1b363e1e8a378465da7b8badd12b47cab1a41b7514089f4e00d7cfda892907a593d4ebffa56ff7ff161e8aebcfeed86117b49d6 WHIRLPOOL 9771725f19801941a570055c7951a7fad52d331c6e516023bb2d1299564b334e86a7f11c9ec4dd323ca39f2f7323449aabfe1189fceaa3df4ac72d45cb9e509f
diff --git a/www-apps/nanoc/nanoc-4.2.0.ebuild b/www-apps/nanoc/nanoc-4.2.0.ebuild
new file mode 100644
index 000000000000..0ad1f9302974
--- /dev/null
+++ b/www-apps/nanoc/nanoc-4.2.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby21 ruby22"
+
+RUBY_FAKEGEM_EXTRADOC="ChangeLog NEWS.md README.md"
+
+RUBY_FAKEGEM_TASK_DOC="doc"
+RUBY_FAKEGEM_TASK_TEST="test:all"
+
+inherit ruby-fakegem
+
+DESCRIPTION="nanoc is a simple but very flexible static site generator written in Ruby"
+HOMEPAGE="http://nanoc.ws/"
+LICENSE="MIT"
+
+KEYWORDS="~amd64"
+SLOT="0"
+IUSE="${IUSE} minimal"
+
+DEPEND+="test? ( app-text/asciidoc app-text/highlight )"
+
+ruby_add_rdepend "!minimal? (
+ dev-ruby/mime-types:*
+ dev-ruby/rack:*
+ www-servers/adsf
+)
+ >=dev-ruby/cri-2.3:0"
+
+ruby_add_bdepend "test? (
+ >=dev-ruby/mocha-0.13
+ dev-ruby/minitest
+ =dev-ruby/rdoc-4*
+ dev-ruby/systemu
+ dev-ruby/vcr
+ dev-ruby/webmock
+ dev-ruby/yard
+)
+doc? (
+ dev-ruby/kramdown
+ dev-ruby/rdiscount
+ dev-ruby/yard
+)"
+
+all_ruby_prepare() {
+ use doc || use test || (rm tasks/doc.rake || die)
+
+ if use test ; then
+ # Avoid dependency on coveralls.
+ sed -i -e '/coverall/I s:^:#:' tasks/test.rake || die
+ else
+ rm -f tasks/test.rake || die
+ fi
+
+ # Avoid unneeded development dependencies
+ rm -f tasks/rubocop.rake || die
+ sed -i -e '/simplecov/I s:^:#:' test/helper.rb || die
+
+ # Avoid non-optional tests for w3c_validators which we don't have
+ # packaged and which require network access.
+ rm test/extra/checking/checks/test_{css,html}.rb || die
+
+ # Skip a test that produces slightly different javascript.
+ sed -i -e '/test_filter_with_options/,/^ end/ s:^:#:' test/filters/test_uglify_js.rb || die
+}
+
+each_ruby_test() {
+ RUBYLIB="${S}/lib" ${RUBY} -S rake test:all || die
+}