diff options
Diffstat (limited to 'www-apps/nanoc')
-rw-r--r-- | www-apps/nanoc/Manifest | 1 | ||||
-rw-r--r-- | www-apps/nanoc/nanoc-4.1.6.ebuild | 71 |
2 files changed, 72 insertions, 0 deletions
diff --git a/www-apps/nanoc/Manifest b/www-apps/nanoc/Manifest index e89c20d4a3eb..0b83b7367fc4 100644 --- a/www-apps/nanoc/Manifest +++ b/www-apps/nanoc/Manifest @@ -2,3 +2,4 @@ DIST nanoc-3.7.5.gem 185856 SHA256 504309339c3e7711e6d75741b8bfa1ac1c6bcbd4a6acc DIST nanoc-3.8.0.gem 189440 SHA256 382397d761ea1a97537eaee995e37ba416f7f7f093090cc812071a9eb28cea1e SHA512 ed39b6e799ea16fe19539181c0de2054af428b0ecdec5cfd592948aa14f3f0e7233a6039e57d68d9046824f55b7fc00d4f2621c4bd4b77d243e40c5c8750e93e WHIRLPOOL 33b92d6da24974c1d525d8da2433d62863ff97423ad8079c3937ac1c5c98fa310a05b179afa390d1fe3758a2e423951c880210508fdcbfc9c601e67fcbb841c5 DIST nanoc-4.1.4.gem 173568 SHA256 a034321ec5c3fa2fe12348c068913eec1ec05d9665111c2a7501e54c90b6fd85 SHA512 90cc7e0288f80bbc92c8596e63c77a8707c0552a3fcef5984ff4fdc7197e19c68220939193b1bab1b6ace79b589e578ee52386a6cce9b654c718d718b0256244 WHIRLPOOL 45129890b998434ab7ebf446f6d5fba5b82a0fab4de66fa80b4f86cd27f3f6d43d04f1c4d9b93634d86678f2e89cdf0378ffc0b8797faca23260e50d0574aba8 DIST nanoc-4.1.5.gem 173056 SHA256 c09208480f687fec1d067bf1b6a962e049f409ef3c9d97b0de700340e96646e8 SHA512 93e4978bcc6030616e1d4287ecf7ac06add4fd0431184afb3eefa1a38cc23da03950b8d5fe2e54ea2d5d9ac2baf2ec83c8937fd010464401c9b4e75b22e0ff0f WHIRLPOOL e80a7a46e7b71ee58ac415a56cd9437b2e43189d7ea253be2a3d268498119da8660979d1146146352d28de8a2e74cec844acf891e35fce3f7f661c09433aaf72 +DIST nanoc-4.1.6.gem 173056 SHA256 95887475fac5a9bc1e59a74f6a5df9b2655b19a6389953121210276ca373db30 SHA512 bf6059558f8465a0aab7fa67b1fefb06618bd2ee54f61fb5e8b77d6738bb4f2bc97604cfa76164aa2c759be8aa4912ec3538cf349a77f903321acd786029b2d8 WHIRLPOOL 396b32ba5170aeaed2f2b11917e480b27a9e63046da344e3232ca4b2691c56d9037877ea2370f9225f77eb65af03a8b3b4f4b9962611d41e65db0d08184eb5b4 diff --git a/www-apps/nanoc/nanoc-4.1.6.ebuild b/www-apps/nanoc/nanoc-4.1.6.ebuild new file mode 100644 index 000000000000..a7546cf0e682 --- /dev/null +++ b/www-apps/nanoc/nanoc-4.1.6.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" + +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 +} |