summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-07-22 06:24:19 +0200
committerHans de Graaff <graaff@gentoo.org>2020-07-22 06:24:19 +0200
commit01a2ec20c9bc074019ee6d6ab07462a2063a3c3a (patch)
tree518b2fa7820bda94f3fd33c73e6a1227d9cb6ba3 /app-text/webgen
parentdev-lang/perl: remove unused patch (diff)
downloadgentoo-01a2ec20c9bc074019ee6d6ab07462a2063a3c3a.tar.gz
gentoo-01a2ec20c9bc074019ee6d6ab07462a2063a3c3a.tar.bz2
gentoo-01a2ec20c9bc074019ee6d6ab07462a2063a3c3a.zip
app-text/webgen: add 1.7.1
Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'app-text/webgen')
-rw-r--r--app-text/webgen/Manifest1
-rw-r--r--app-text/webgen/webgen-1.7.1.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/app-text/webgen/Manifest b/app-text/webgen/Manifest
index d8ad4e869859..6d9c7e1fc540 100644
--- a/app-text/webgen/Manifest
+++ b/app-text/webgen/Manifest
@@ -1 +1,2 @@
DIST webgen-1.7.0.gem 201728 BLAKE2B ed44657420817d98ffbd72093ff56db22ae3a8da43c77661a663d938f3958c4055df4b7b34252eee162846af27a35320f680fdb6b9b1818f96aa1e51eceffd9f SHA512 1e791f720108996a4f52b151d160d9b6f613c036aae2350c634f5539257c4ae946737ba2df94bc424199413463e3016432a6d1e67e30b419b2770bc83b3b14db
+DIST webgen-1.7.1.gem 201728 BLAKE2B 2ea7d7911b4edf29cb7310a676593a77956b3fffd1a4ca5f69731270e648365fb8293a292b8fdd717444ed8f690dd5f095ac5dd77f5c950253b5de7d6086f966 SHA512 7b58c7d2b8ff6a4feabc1435e6bddbf25b3e4695517c2bd8d97b698a49b6fd61538f1a77bdd4e13f7368fdfbeae9f007dfc09ecfcde4eb75a366b8e0ccc8c58a
diff --git a/app-text/webgen/webgen-1.7.1.ebuild b/app-text/webgen/webgen-1.7.1.ebuild
new file mode 100644
index 000000000000..143a53059e74
--- /dev/null
+++ b/app-text/webgen/webgen-1.7.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby26"
+
+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
+}