www-apps/nanoc: add 4.4.7
authorHans de Graaff <graaff@gentoo.org>
Fri, 24 Feb 2017 07:27:46 +0000 (08:27 +0100)
committerHans de Graaff <graaff@gentoo.org>
Fri, 24 Feb 2017 07:27:46 +0000 (08:27 +0100)
Package-Manager: portage-2.3.3

www-apps/nanoc/Manifest
www-apps/nanoc/nanoc-4.4.7.ebuild [new file with mode: 0644]

index f62c256bd97690799bf3070dd3c0e559c50d7f8c..afdd38e011aec04451a0381d67c7879de1dfe49f 100644 (file)
@@ -1,2 +1,3 @@
 DIST nanoc-4.3.5.gem 168960 SHA256 039a42f01b1b43c7ad97cfcb4d5d4e0389811ec8d42171debd33821c1842be96 SHA512 d1d4aaab010c39e607035b51b2ed1e43ff627b925b29514aea5346f5f6cf6235d7d5845cac35a08d691de46af561670d66aae733ec72150ce0ed4dff9357ec84 WHIRLPOOL c7debe62ca7d71d82812ae9ebc2f6f4b98beffccc26efb0f2289e3b5be7d035000e13940aa94c39769181c7776093110ede71a9fd4a1950ee0c049c2ba390047
 DIST nanoc-4.3.8.gem 168960 SHA256 450676d4c702f4e0ebe7a9ea5d69648cc5eaeaf9a2c3ef60efb026ceee1bd72f SHA512 4b99588eecb3a2ce88c05c4b5d8eddc1becb140514d6fb1c7f48453fb2884018365d5183ea53881c54719abedd1240005ed4c2ac1c465840cfc1bca6eff140d4 WHIRLPOOL a90b965be083f0d667ef1db4b82151ae19c25517ead2d367f87000767f49172568856b044db7c37f56b1a6218f49649623fa587858a40336da522a8c3d7323e2
+DIST nanoc-4.4.7.gem 227840 SHA256 714ebdfa0247b60cbac1265889fdfc7981e31f8885b08cf648b0395fe6765c88 SHA512 32525a80f43246786a7f6d19f269613a4dc397f3a85ebd1676a9a443cb2472b38407511b5248be1cf321af539e1e483b02f55dedaca385ee15eedfee2d02712c WHIRLPOOL ce921450982f4d4229a40470a09894b56a11318a9bf16a0c98cad94ff5dea5912d4bb026a4e95e51c562f5a2eb57c60bbf445099306736ac3c470c7c818c3fb1
diff --git a/www-apps/nanoc/nanoc-4.4.7.ebuild b/www-apps/nanoc/nanoc-4.4.7.ebuild
new file mode 100644 (file)
index 0000000..0133b55
--- /dev/null
@@ -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
+}