diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-02-24 08:27:46 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-02-24 08:27:46 +0100 |
commit | e4f5f7411cb6bd0e95d899f442bf86efc785dc3a (patch) | |
tree | 671cdfcad031e83df3d0fc614c11946b6f09cb60 /www-apps/nanoc/nanoc-4.4.7.ebuild | |
parent | dev-ruby/thread_safe: add 0.3.6 (diff) | |
download | gentoo-e4f5f7411cb6bd0e95d899f442bf86efc785dc3a.tar.gz gentoo-e4f5f7411cb6bd0e95d899f442bf86efc785dc3a.tar.bz2 gentoo-e4f5f7411cb6bd0e95d899f442bf86efc785dc3a.zip |
www-apps/nanoc: add 4.4.7
Package-Manager: portage-2.3.3
Diffstat (limited to 'www-apps/nanoc/nanoc-4.4.7.ebuild')
-rw-r--r-- | www-apps/nanoc/nanoc-4.4.7.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/www-apps/nanoc/nanoc-4.4.7.ebuild b/www-apps/nanoc/nanoc-4.4.7.ebuild new file mode 100644 index 000000000000..0133b558f997 --- /dev/null +++ b/www-apps/nanoc/nanoc-4.4.7.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_EXTRADOC="NEWS.md README.md" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" + +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 + =dev-ruby/hamster-3* + dev-ruby/ref:2" + +ruby_add_bdepend "test? ( + >=dev-ruby/mocha-0.13 + dev-ruby/minitest + dev-ruby/rdoc + 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() { + # Avoid unneeded development dependencies + sed -i -e '/simplecov/I s:^:#:' test/helper.rb || die + sed -i -e '/coverall/I s:^:#:' \ + -e '/rubocop/ s:^:#:' Rakefile || die + + # Avoid tests requiring a network connection + rm -f test/checking/checks/test_{css,html}.rb || die +} + +each_ruby_test() { + RUBYLIB="${S}/lib" ${RUBY} -S rake test_all || die +} |