diff options
author | Hans de Graaff <graaff@gentoo.org> | 2018-05-06 10:13:43 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2018-05-06 10:14:26 +0200 |
commit | 7144ce91319e988b988efaeff7623dfdd5f3c9f7 (patch) | |
tree | 410561a13924472c59fefac8dea87926569b1a54 /www-apps/jekyll/jekyll-3.6.2.ebuild | |
parent | www-apps/jekyll-sitemap: add 0.13.0 (diff) | |
download | gentoo-7144ce91319e988b988efaeff7623dfdd5f3c9f7.tar.gz gentoo-7144ce91319e988b988efaeff7623dfdd5f3c9f7.tar.bz2 gentoo-7144ce91319e988b988efaeff7623dfdd5f3c9f7.zip |
www-apps/jekyll: add 3.6.2
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'www-apps/jekyll/jekyll-3.6.2.ebuild')
-rw-r--r-- | www-apps/jekyll/jekyll-3.6.2.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/www-apps/jekyll/jekyll-3.6.2.ebuild b/www-apps/jekyll/jekyll-3.6.2.ebuild new file mode 100644 index 000000000000..2479d9e18425 --- /dev/null +++ b/www-apps/jekyll/jekyll-3.6.2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby23 ruby24" + +inherit ruby-fakegem + +RUBY_FAKEGEM_EXTRADOC="README.markdown History.markdown" +RUBY_FAKEGEM_EXTRAINSTALL="features" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +RUBY_FAKEGEM_BINDIR="exe" + +DESCRIPTION="A simple, blog aware, static site generator" +HOMEPAGE="http://jekyllrb.com https://github.com/jekyll/jekyll" +SRC_URI="https://github.com/jekyll/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +ruby_add_rdepend " + >=dev-ruby/addressable-2.4 + >=dev-ruby/colorator-1.0 + >=dev-ruby/kramdown-1.14 + >=dev-ruby/liquid-4.0:4 + >=dev-ruby/mercenary-0.3.3 + >=dev-ruby/pathutil-0.9 + >=dev-ruby/safe_yaml-1.0 + >=dev-ruby/rouge-1.7:0 + >=www-apps/jekyll-sass-converter-1.0 + >=www-apps/jekyll-watch-1.1 +" + +ruby_add_bdepend " + test? ( + >=dev-ruby/classifier-reborn-2.1.0 + dev-ruby/launchy + >=dev-ruby/pygments_rb-0.6.0 + >=dev-ruby/rdiscount-2.0 + >=dev-ruby/redcarpet-3.2.3 + dev-ruby/rspec-mocks + >=dev-ruby/shoulda-3 + dev-ruby/test-unit:2 + www-apps/jekyll-coffeescript + ) +" + +all_ruby_prepare() { + eapply "${FILESDIR}"/jekyll-3.6.0-test-helper.patch + + # Drop tests requiring bundler + sed -i -e '/bundle_message/d' test/test_new_command.rb || die + rm test/test_plugin_manager.rb || die + + # Replace git command in gemspec + sed -i 's/git ls-files -z/find -not -type d -print0/' $RUBY_FAKEGEM_GEMSPEC || die + + # FIXMEs: + # fails to find fixtures + rm test/test_theme.rb || die + rm test/test_theme_assets_reader.rb || die + sed -i -e '/^ should.*theme/,/^ end$/d' \ + -e '/^ should.*theme/,/^ end$/d' test/test_site.rb || die + # partially requires 'toml' + rm test/test_configuration.rb || die + # pygments tests fail because of line numbering + sed -i -e '/^ context.*pygments/,/^ end$/d' test/test_tags.rb || die + sed -i -e '/^ context.*pygments/,/^ end$/d' test/test_redcarpet.rb || die +} + +src_test() { + local -x JEKYLL_NO_BUNDLER_REQUIRE=true + + ruby-ng_src_test +} |