diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-03-08 07:56:29 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-03-08 08:18:11 +0100 |
commit | 49594ed048dfb4d3225cffa0a59730738d8e341a (patch) | |
tree | 106a07446bd9843853099ed0beef3a116c44249a /app-text/webgen | |
parent | dev-ruby/kramdown: add ruby27 (diff) | |
download | gentoo-49594ed048dfb4d3225cffa0a59730738d8e341a.tar.gz gentoo-49594ed048dfb4d3225cffa0a59730738d8e341a.tar.bz2 gentoo-49594ed048dfb4d3225cffa0a59730738d8e341a.zip |
app-text/webgen: add 1.7.2
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'app-text/webgen')
-rw-r--r-- | app-text/webgen/Manifest | 1 | ||||
-rw-r--r-- | app-text/webgen/webgen-1.7.2.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/app-text/webgen/Manifest b/app-text/webgen/Manifest index fc89c9998140..2941facea4bf 100644 --- a/app-text/webgen/Manifest +++ b/app-text/webgen/Manifest @@ -1 +1,2 @@ DIST webgen-1.7.1.gem 201728 BLAKE2B 2ea7d7911b4edf29cb7310a676593a77956b3fffd1a4ca5f69731270e648365fb8293a292b8fdd717444ed8f690dd5f095ac5dd77f5c950253b5de7d6086f966 SHA512 7b58c7d2b8ff6a4feabc1435e6bddbf25b3e4695517c2bd8d97b698a49b6fd61538f1a77bdd4e13f7368fdfbeae9f007dfc09ecfcde4eb75a366b8e0ccc8c58a +DIST webgen-1.7.2.gem 201728 BLAKE2B abd3a8a9accfbc1a1e0070b7cbd4d0cc24796540ce1c8c0cfd3dc50882bf953b1e794971a90e2a429b3ecd64b1cb009b16c96ce1e6cfa05516ce48c10e39cd95 SHA512 806303f56319b6f55d8457b0b68438a9732bc1adc95ea50a955ad02b184814d0b878d618fc0547831cac53292208f1d0837d190b078ebb2ba42641dbaa5ffd93 diff --git a/app-text/webgen/webgen-1.7.2.ebuild b/app-text/webgen/webgen-1.7.2.ebuild new file mode 100644 index 000000000000..6dd141bf8cc1 --- /dev/null +++ b/app-text/webgen/webgen-1.7.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby26 ruby27" + +RUBY_FAKEGEM_RECIPE_DOC="task" +RUBY_FAKEGEM_DOCDIR="htmldoc/rdoc" +RUBY_FAKEGEM_EXTRADOC="AUTHORS THANKS" +RUBY_FAKEGEM_EXTRAINSTALL="data" + +inherit ruby-fakegem + +DESCRIPTION="A template-based static website generator" +HOMEPAGE="https://webgen.gettalong.org" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="builder doc highlight markdown" + +ruby_add_bdepend "doc? ( dev-ruby/rdoc ) + test? ( + dev-ruby/minitest:5 + dev-ruby/rdiscount + >=dev-ruby/sass-3.2:* )" + +ruby_add_rdepend ">=dev-ruby/cmdparse-3.0.1:3 + >=dev-ruby/systemu-2.5 =dev-ruby/systemu-2* + >=dev-ruby/kramdown-2.3:2 + builder? ( >=dev-ruby/builder-2.1.0:* ) + highlight? ( >=dev-ruby/coderay-1.0 ) + markdown? ( dev-ruby/maruku )" + +all_ruby_prepare() { + # Avoid a test fragile for sass version differences + sed -i -e '/test_static_call/,/^ end/ s:^:#:' test/webgen/content_processor/test_sass.rb || die + # Avoid a test with fragile whitespace tests + rm -f test/webgen/content_processor/test_haml.rb || die + + # Avoid tests for rdoc since that requires an obsolete version + sed -i -e '/def test_create_nodes/askip' test/webgen/path_handler/test_api.rb || die + + # Avoid tests for unpackaged dependencies + rm -f test/webgen/content_processor/test_{css_minify,tikz}.rb || die +} + +all_ruby_install() { + all_fakegem_install + + doman man/man1/webgen.1 +} |