1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 USE_RUBY="ruby24 ruby25 ruby26"
7 RUBY_FAKEGEM_EXTRADOC="NEWS.md README.md"
8 RUBY_FAKEGEM_RECIPE_DOC="rdoc"
10 RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
14 DESCRIPTION="nanoc is a simple but very flexible static site generator written in Ruby"
15 HOMEPAGE="https://nanoc.ws/"
16 SRC_URI="https://github.com/nanoc/nanoc/archive/${PV}.tar.gz -> ${P}.tar.gz"
21 IUSE="${IUSE} minimal"
23 DEPEND+="test? ( app-text/asciidoc app-text/highlight )"
25 RUBY_S="nanoc-${PV}/nanoc-core"
32 >=dev-ruby/json_schema-0.19:0
36 ruby_add_bdepend "test? (
48 # Avoid unneeded development dependencies
49 sed -i -e '/simplecov/I s:^:#:' \
50 -e '/codecov/I s:^:#:' ../common/spec/spec_helper_head_core.rb || die
51 sed -i -e '/coverall/I s:^:#:' \
52 -e '/rubocop/ s:^:#:' Rakefile || die
53 sed -i -e '1i require "tmpdir"; require "pathname"' spec/spec_helper.rb || die
55 echo "-r ./spec/spec_helper.rb" > .rspec || die
57 sed -i -e "s:require_relative 'lib:require './lib:" ${RUBY_FAKEGEM_GEMSPEC} || die
60 sed -i -e 's:/tmp/whatever:'${T}'/whatever:' spec/nanoc/core/checksummer_spec.rb || die
64 RUBYLIB="${S}/lib" ${RUBY} -S rake spec || die