diff options
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/Manifest.gz | bin | 12952 -> 12952 bytes | |||
-rw-r--r-- | www-apps/nanoc-cli/Manifest | 2 | ||||
-rw-r--r-- | www-apps/nanoc-cli/nanoc-cli-4.12.15.ebuild | 70 | ||||
-rw-r--r-- | www-apps/nanoc-core/Manifest | 2 | ||||
-rw-r--r-- | www-apps/nanoc-core/nanoc-core-4.12.15.ebuild | 77 | ||||
-rw-r--r-- | www-apps/nanoc/Manifest | 2 | ||||
-rw-r--r-- | www-apps/nanoc/nanoc-4.12.15.ebuild | 97 |
7 files changed, 250 insertions, 0 deletions
diff --git a/www-apps/Manifest.gz b/www-apps/Manifest.gz Binary files differindex f70ab7562296..bfa910c8e1fd 100644 --- a/www-apps/Manifest.gz +++ b/www-apps/Manifest.gz diff --git a/www-apps/nanoc-cli/Manifest b/www-apps/nanoc-cli/Manifest index 57c4b6c44ccb..2f62f295087a 100644 --- a/www-apps/nanoc-cli/Manifest +++ b/www-apps/nanoc-cli/Manifest @@ -1,8 +1,10 @@ DIST nanoc-4.12.14.tar.gz 347902 BLAKE2B 325560667b370df0b245523463be8d5e9cda0cbfbe224e790f84c98aab21eee85a87fce962a24fc975cd98b0b68ad8611fe5c42cc4e0001fe4b6b17ab59bbc1a SHA512 bbc54d84f50cb7586467e33db5986ae9c93ba402b102d159864f78cfb2f3102cea736a5b89655345da93b6dfe1576aa188eba143d206a747bbff38dc27a4b2f9 +DIST nanoc-4.12.15.tar.gz 348052 BLAKE2B a880b3f5e3f8dc59e0a98d5e957ad6ca64134cc54c2a6e4380e91ce64414c93e8212ee2724b646703ada4ff212576346b9dd3b272cf6adc35d58e1277ab185c8 SHA512 43e37005306b137162786f14c54690888845eeee582cedb9947c7cd6baf0c1cc83a51529af89fef48843960726cb04aba6cd0e41b2b2a92615543a303b864150 DIST nanoc-4.12.6.tar.gz 333932 BLAKE2B f5ff12ddd583c4a672c34a63b7f325a3ef6c18713f4e351482eb3c2a3dd5999b67ee0e1b7e8ab85899591824d8c47f19f3aa074790ae15f4616d589f762f2bb8 SHA512 343ec620d96ca086612c4babcadf33c4edcc39a02082f762568feaf226566c6d9b5441f53355ea03544b285e9a5ddc32aae0e67cc321b28336665d453f47b070 DIST nanoc-4.12.7.tar.gz 333669 BLAKE2B cd222df8f68b2ead8bfb324079b2e46ca76bc427d50e97ffbcebffbd79135d6f4349a1e6922f0cb37f49b1c306ac3eb4f34f2b2c3569768b95041e8129f4e9a8 SHA512 1f5b2595f2d95b291bad30a40e8753d83c9bfa8468c6b119d0c213a385f4568fa87af5a69ea1d3487dc3331ba71ecf956dabd84b79a9e8cc01b569efc3b57140 DIST nanoc-4.12.9.tar.gz 336948 BLAKE2B 1ca70bf9028e8ef45df4979968bbc85933a8a51a66f8283376c1e95eac72e76fc55e4a7132b11f6d38155464fc23f27c2e456fd0cd3f618a30aa1eebc8d43887 SHA512 1e562c05057423fdf40b1d170238ea8ec4ac899c642aee693c450cc75969e595d80e34d619bd40ad9688306a698dbe244009d078a89f1cf5fa8b4158f21a25bb EBUILD nanoc-cli-4.12.14.ebuild 2037 BLAKE2B aae94d2ef4ca1f094713eea9063e595b342732b80985a663a2799c831064c3459f036c8cfa9f318e51306f3c1ec868be92f12d798a1899438adc4b79307444af SHA512 74c055daf70dc6ce96656ae4f3360e9dbf9931e6783411ae31d74c3ce6419088dc5ebf0d2837922972766ae239d157f28fd765bea392512e0202a789a4ca3c5d +EBUILD nanoc-cli-4.12.15.ebuild 2037 BLAKE2B dcc88b5f1c04efe2da18279022cbb103a744125bcfc62776532522e6b6aff0becc3318ea9a191b5d3247fd1f87f267a484a5082b8b322bd3af9710e4234251d7 SHA512 1713a1f3630573f2f1fd01113a92752d25471bbc07a0c135337243e39aa9bd890eb4dbff6c7a287fc8b2ede9bb7260879288da2d0132a8365a322854391271d8 EBUILD nanoc-cli-4.12.6.ebuild 2044 BLAKE2B 9757616c978200dd78793ec33184da6f7b15e2eb9d4ddb6786544aa97d479f20108cdcdeba11c55b3460827828f7004eb1c99f3a2897df148eb18079e96648ad SHA512 4a2dacc103eedfa817db76f9619a1450231eb0de7b59f4e8099bd1eb3b60d28f2d63939f1f221d0f71fd9f816f858f9c3fb2f38850ff6842083cb693f7408036 EBUILD nanoc-cli-4.12.7.ebuild 2037 BLAKE2B aae94d2ef4ca1f094713eea9063e595b342732b80985a663a2799c831064c3459f036c8cfa9f318e51306f3c1ec868be92f12d798a1899438adc4b79307444af SHA512 74c055daf70dc6ce96656ae4f3360e9dbf9931e6783411ae31d74c3ce6419088dc5ebf0d2837922972766ae239d157f28fd765bea392512e0202a789a4ca3c5d EBUILD nanoc-cli-4.12.9.ebuild 2037 BLAKE2B aae94d2ef4ca1f094713eea9063e595b342732b80985a663a2799c831064c3459f036c8cfa9f318e51306f3c1ec868be92f12d798a1899438adc4b79307444af SHA512 74c055daf70dc6ce96656ae4f3360e9dbf9931e6783411ae31d74c3ce6419088dc5ebf0d2837922972766ae239d157f28fd765bea392512e0202a789a4ca3c5d diff --git a/www-apps/nanoc-cli/nanoc-cli-4.12.15.ebuild b/www-apps/nanoc-cli/nanoc-cli-4.12.15.ebuild new file mode 100644 index 000000000000..0e39da6e06b4 --- /dev/null +++ b/www-apps/nanoc-cli/nanoc-cli-4.12.15.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30" + +RUBY_FAKEGEM_EXTRADOC="NEWS.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="nanoc is a simple but very flexible static site generator written in Ruby" +HOMEPAGE="https://nanoc.app/" +SRC_URI="https://github.com/nanoc/nanoc/archive/${PV}.tar.gz -> nanoc-${PV}.tar.gz" +LICENSE="MIT" + +KEYWORDS="~amd64 ~riscv" +SLOT="0" +IUSE="${IUSE} minimal" + +RUBY_S="nanoc-${PV}/nanoc-cli" + +ruby_add_rdepend " + >=dev-ruby/cri-2.15:0 + >=dev-ruby/diff-lcs-1.3:0 + ~www-apps/nanoc-core-${PV} + >=dev-ruby/zeitwerk-2.1:2 +" + +ruby_add_bdepend "test? ( + dev-ruby/bundler + dev-ruby/rspec:3 + dev-ruby/rspec-its + dev-ruby/fuubar + dev-ruby/minitest + dev-ruby/timecop + dev-ruby/tty-command + dev-ruby/yard + www-apps/nanoc-spec +) +" + +all_ruby_prepare() { + # Avoid unneeded development dependencies + sed -i -e '/simplecov/I s:^:#:' \ + -e '/codecov/I s:^:#:' ../common/spec/spec_helper_head_core.rb || die + sed -i -e '/coverall/I s:^:#:' \ + -e '/rubocop/ s:^:#:' Rakefile || die + sed -i -e '2i require "tmpdir"; require "pathname"' spec/spec_helper.rb || die + + echo "-r ./spec/spec_helper.rb" > .rspec || die + + sed -i -e "s:require_relative 'lib:require './lib:" ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid error handler specs failing due to different (rubygems?) + # output, meta_spec is affected by this. + rm -f spec/nanoc/cli/error_handler_spec.rb spec/meta_spec.rb || die + + # Avoid test requiring a network interface + sed -i -e '/does not listen on non-local interfaces/askip "Needs network"' spec/nanoc/cli/commands/view_spec.rb || die + + # Avoid tests requiring an additional dependency on nanoc-live + sed -i -e '/--live-reload is given/askip "Unpackaged nanoc-live"' spec/nanoc/cli/commands/view_spec.rb || die + sed -i -e '/watches with --watch/askip "Unpackaged nanoc-live"' spec/nanoc/cli/commands/compile_spec.rb || die +} + +each_ruby_test() { + RUBYLIB="${S}/lib" ${RUBY} -S rake spec || die +} diff --git a/www-apps/nanoc-core/Manifest b/www-apps/nanoc-core/Manifest index c758fb956f4d..70434f235d98 100644 --- a/www-apps/nanoc-core/Manifest +++ b/www-apps/nanoc-core/Manifest @@ -1,9 +1,11 @@ AUX nanoc-core-4.12.2-contracts.patch 543 BLAKE2B 374bc86e4351627693d85517f24a82505454eb3eb52c6b12be1681e5bcc4f7a299b98ea72edca42a26e8d121219e6a76afe636b9b08da44e334c10f9fb5be47b SHA512 e8bfcfa6e49439734f6fe760dc46d5eaf6dee9d79a0be83e65dd450a769e0745422d76bf4067d475921b83a4534c9868aca9ef23f2a1fe6ff3ac7ba4b15fe3f6 DIST nanoc-core-4.12.14.tar.gz 347902 BLAKE2B 325560667b370df0b245523463be8d5e9cda0cbfbe224e790f84c98aab21eee85a87fce962a24fc975cd98b0b68ad8611fe5c42cc4e0001fe4b6b17ab59bbc1a SHA512 bbc54d84f50cb7586467e33db5986ae9c93ba402b102d159864f78cfb2f3102cea736a5b89655345da93b6dfe1576aa188eba143d206a747bbff38dc27a4b2f9 +DIST nanoc-core-4.12.15.tar.gz 348052 BLAKE2B a880b3f5e3f8dc59e0a98d5e957ad6ca64134cc54c2a6e4380e91ce64414c93e8212ee2724b646703ada4ff212576346b9dd3b272cf6adc35d58e1277ab185c8 SHA512 43e37005306b137162786f14c54690888845eeee582cedb9947c7cd6baf0c1cc83a51529af89fef48843960726cb04aba6cd0e41b2b2a92615543a303b864150 DIST nanoc-core-4.12.6.tar.gz 333932 BLAKE2B f5ff12ddd583c4a672c34a63b7f325a3ef6c18713f4e351482eb3c2a3dd5999b67ee0e1b7e8ab85899591824d8c47f19f3aa074790ae15f4616d589f762f2bb8 SHA512 343ec620d96ca086612c4babcadf33c4edcc39a02082f762568feaf226566c6d9b5441f53355ea03544b285e9a5ddc32aae0e67cc321b28336665d453f47b070 DIST nanoc-core-4.12.7.tar.gz 333669 BLAKE2B cd222df8f68b2ead8bfb324079b2e46ca76bc427d50e97ffbcebffbd79135d6f4349a1e6922f0cb37f49b1c306ac3eb4f34f2b2c3569768b95041e8129f4e9a8 SHA512 1f5b2595f2d95b291bad30a40e8753d83c9bfa8468c6b119d0c213a385f4568fa87af5a69ea1d3487dc3331ba71ecf956dabd84b79a9e8cc01b569efc3b57140 DIST nanoc-core-4.12.9.tar.gz 336948 BLAKE2B 1ca70bf9028e8ef45df4979968bbc85933a8a51a66f8283376c1e95eac72e76fc55e4a7132b11f6d38155464fc23f27c2e456fd0cd3f618a30aa1eebc8d43887 SHA512 1e562c05057423fdf40b1d170238ea8ec4ac899c642aee693c450cc75969e595d80e34d619bd40ad9688306a698dbe244009d078a89f1cf5fa8b4158f21a25bb EBUILD nanoc-core-4.12.14.ebuild 1958 BLAKE2B 2c64f438cb10d1dc797d8e0898cd86b4ecfa01a91f9188511645fbeee39ea51757b2995dc9fa33120458cf96d34b66c417dad9ac3aecbe7a7f9ce05cddcf8f46 SHA512 cdf7ec0bd1f1b97f69b9b3f94663f5210003c60eed65feafe9c4792f0e979f6a3614473970c06c55f9d5b87145c1f3c7ee13b0112cacc72c5017f5165d17d674 +EBUILD nanoc-core-4.12.15.ebuild 1985 BLAKE2B b236e9874c40328d54f27dd5262dae2e9989c06ae5cdb0fadd2eef5e1456a146311ba278b78ddf51947bb7fbd35bafbf6aca48053f3a439de7717629f736975a SHA512 8625f97789ff2dffaf795597ba2dd1c9edc59e911c5a06e3c1b1e7728741ebadc87d0eacf9740347827ac08885ce4e62e41de45cfd16d1f2e71bfbc2b47c1a43 EBUILD nanoc-core-4.12.6.ebuild 1947 BLAKE2B fce1285df7bded896bcc3a21e9fad0a14abaea8c5068f7699b2c9192825ac35bf61bb3852be346dfd64610b8b553b0050963bb76e28068cde2a53ed603e5a53e SHA512 a8d1b006fb0ea402cc8fa03dac47dd5750bfcaa37a87ca4fe7641993ad98987d28f71a27f290627a46a0906cc6c6935d50dcb4a6c5adb4fa00bbccdd7a28a6fb EBUILD nanoc-core-4.12.7.ebuild 1958 BLAKE2B 2c64f438cb10d1dc797d8e0898cd86b4ecfa01a91f9188511645fbeee39ea51757b2995dc9fa33120458cf96d34b66c417dad9ac3aecbe7a7f9ce05cddcf8f46 SHA512 cdf7ec0bd1f1b97f69b9b3f94663f5210003c60eed65feafe9c4792f0e979f6a3614473970c06c55f9d5b87145c1f3c7ee13b0112cacc72c5017f5165d17d674 EBUILD nanoc-core-4.12.9.ebuild 1958 BLAKE2B 2c64f438cb10d1dc797d8e0898cd86b4ecfa01a91f9188511645fbeee39ea51757b2995dc9fa33120458cf96d34b66c417dad9ac3aecbe7a7f9ce05cddcf8f46 SHA512 cdf7ec0bd1f1b97f69b9b3f94663f5210003c60eed65feafe9c4792f0e979f6a3614473970c06c55f9d5b87145c1f3c7ee13b0112cacc72c5017f5165d17d674 diff --git a/www-apps/nanoc-core/nanoc-core-4.12.15.ebuild b/www-apps/nanoc-core/nanoc-core-4.12.15.ebuild new file mode 100644 index 000000000000..f20011007870 --- /dev/null +++ b/www-apps/nanoc-core/nanoc-core-4.12.15.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30" + +RUBY_FAKEGEM_EXTRADOC="NEWS.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="nanoc is a simple but very flexible static site generator written in Ruby" +HOMEPAGE="https://nanoc.app/" +SRC_URI="https://github.com/nanoc/nanoc/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" + +KEYWORDS="~amd64 ~riscv" +SLOT="0" +IUSE="${IUSE} minimal" + +DEPEND+="test? ( app-text/asciidoc app-text/highlight )" + +RUBY_S="nanoc-${PV}/nanoc-core" + +ruby_add_rdepend " + >=dev-ruby/concurrent-ruby-1.1:1 + dev-ruby/ddmetrics:1 + dev-ruby/ddplugin:1 + =dev-ruby/hamster-3* + >=dev-ruby/json_schema-0.19:0 + >=dev-ruby/memo_wise-1.5:1 + dev-ruby/psych:0 + dev-ruby/slow_enumerator_tools:1 + >=dev-ruby/tty-platform-0.2:0 + >=dev-ruby/zeitwerk-2.1:2 +" + +ruby_add_bdepend "test? ( + dev-ruby/bundler + dev-ruby/rspec:3 + dev-ruby/rspec-its + dev-ruby/fuubar + dev-ruby/minitest + dev-ruby/timecop + dev-ruby/tty-command + dev-ruby/yard + www-apps/nanoc-spec +) +" + +PATCHES=( "${FILESDIR}/${PN}-4.12.2-contracts.patch" ) + +all_ruby_prepare() { + # Avoid unneeded development dependencies + sed -i -e '/simplecov/I s:^:#:' \ + -e '/codecov/I s:^:#:' ../common/spec/spec_helper_head_core.rb || die + sed -e '/coverall/I s:^:#:' \ + -e '/rubocop/ s:^:#:' \ + -i Rakefile || die + sed -i -e '2i require "tmpdir"; require "pathname"; gem "psych", "~> 4.0"' spec/spec_helper.rb || die + + echo "-r ./spec/spec_helper.rb" > .rspec || die + + sed -i -e "s:require_relative 'lib:require './lib:" ${RUBY_FAKEGEM_GEMSPEC} || die + + # Use useable tmp dir + sed -i -e "s:/tmp/whatever:${T}/whatever:" spec/nanoc/core/checksummer_spec.rb || die + + # Avoid circular dependency on www-apps/nanoc + sed -i -e '/.all_outdated/,/^ end/ s:^:#:' spec/nanoc/core/feature_spec.rb || die + rm -f spec/nanoc/core_spec.rb || die +} + +each_ruby_test() { + RUBYLIB="${S}/lib" ${RUBY} -S rake spec || die +} diff --git a/www-apps/nanoc/Manifest b/www-apps/nanoc/Manifest index 291ffb5ecbd9..b60d87f48566 100644 --- a/www-apps/nanoc/Manifest +++ b/www-apps/nanoc/Manifest @@ -1,8 +1,10 @@ DIST nanoc-4.12.14.tar.gz 347902 BLAKE2B 325560667b370df0b245523463be8d5e9cda0cbfbe224e790f84c98aab21eee85a87fce962a24fc975cd98b0b68ad8611fe5c42cc4e0001fe4b6b17ab59bbc1a SHA512 bbc54d84f50cb7586467e33db5986ae9c93ba402b102d159864f78cfb2f3102cea736a5b89655345da93b6dfe1576aa188eba143d206a747bbff38dc27a4b2f9 +DIST nanoc-4.12.15.tar.gz 348052 BLAKE2B a880b3f5e3f8dc59e0a98d5e957ad6ca64134cc54c2a6e4380e91ce64414c93e8212ee2724b646703ada4ff212576346b9dd3b272cf6adc35d58e1277ab185c8 SHA512 43e37005306b137162786f14c54690888845eeee582cedb9947c7cd6baf0c1cc83a51529af89fef48843960726cb04aba6cd0e41b2b2a92615543a303b864150 DIST nanoc-4.12.6.tar.gz 333932 BLAKE2B f5ff12ddd583c4a672c34a63b7f325a3ef6c18713f4e351482eb3c2a3dd5999b67ee0e1b7e8ab85899591824d8c47f19f3aa074790ae15f4616d589f762f2bb8 SHA512 343ec620d96ca086612c4babcadf33c4edcc39a02082f762568feaf226566c6d9b5441f53355ea03544b285e9a5ddc32aae0e67cc321b28336665d453f47b070 DIST nanoc-4.12.7.tar.gz 333669 BLAKE2B cd222df8f68b2ead8bfb324079b2e46ca76bc427d50e97ffbcebffbd79135d6f4349a1e6922f0cb37f49b1c306ac3eb4f34f2b2c3569768b95041e8129f4e9a8 SHA512 1f5b2595f2d95b291bad30a40e8753d83c9bfa8468c6b119d0c213a385f4568fa87af5a69ea1d3487dc3331ba71ecf956dabd84b79a9e8cc01b569efc3b57140 DIST nanoc-4.12.9.tar.gz 336948 BLAKE2B 1ca70bf9028e8ef45df4979968bbc85933a8a51a66f8283376c1e95eac72e76fc55e4a7132b11f6d38155464fc23f27c2e456fd0cd3f618a30aa1eebc8d43887 SHA512 1e562c05057423fdf40b1d170238ea8ec4ac899c642aee693c450cc75969e595d80e34d619bd40ad9688306a698dbe244009d078a89f1cf5fa8b4158f21a25bb EBUILD nanoc-4.12.14.ebuild 2563 BLAKE2B 9c7b514d74f630a479abdaa9ae5c3df170552ffe6fd2811391f34759ea7681ca19ee289258a896f3312195b9ff57894459a1121d8f3794e31bfe6988f9e3b57e SHA512 519944bb6360f64f7d1f69f97cdae18617bc9295a04c01804eeabf3c55a0e9be9ac03b659f0e129868a2d3d34c862084969bc38f3a843e7529d1da0fa038e079 +EBUILD nanoc-4.12.15.ebuild 2567 BLAKE2B 0585e71f7eead36322832f3fe4f58fd8a5cfc5a42dff5cdc63f49fb4ccd6463388507829d0af498c61f5ce2eaaffbfae52aa6175a1def9094c212dcdb8abecb8 SHA512 118dee82de9ae2708d1c4657556cf34333cb30b1640f1291a3429b6add14e7fb5c9e1e668075e0fc2d732e05a2ff44bf8d7c3b6d71286edb3c1ed9c301283e8b EBUILD nanoc-4.12.6.ebuild 2557 BLAKE2B beb77ed426eac0e895c2229e344406603091b208af2b19a848213cf357c7fe330113ea9ff7e82e3d6b8956c2ce9f745d862891aa7a4afdbce5fbb8d06fba91ee SHA512 05a70390259b4d36ea7c180e09ce03b2d8e616044bd3668e09dc5a1541eb4d232659de29617d8099f3319ade62996a269887a956a7515da2263c62503553b62d EBUILD nanoc-4.12.7.ebuild 2550 BLAKE2B de638daf868974214f06e67269a8e3c80bff4c5730f3d358809537d43df26031f4ab8614cd287f430d11f5b76c58b5d5961cc9021fcf34c391f527b2e4207ee7 SHA512 fe210c1db1b784ebf58aeceac8b0378aa6b1aac18548991e61b24ce4f3e043515e9ffdf947a464d0bcda83f48e4ef39195d35cdd63647b25ac78cee674e47156 EBUILD nanoc-4.12.9.ebuild 2563 BLAKE2B 9c7b514d74f630a479abdaa9ae5c3df170552ffe6fd2811391f34759ea7681ca19ee289258a896f3312195b9ff57894459a1121d8f3794e31bfe6988f9e3b57e SHA512 519944bb6360f64f7d1f69f97cdae18617bc9295a04c01804eeabf3c55a0e9be9ac03b659f0e129868a2d3d34c862084969bc38f3a843e7529d1da0fa038e079 diff --git a/www-apps/nanoc/nanoc-4.12.15.ebuild b/www-apps/nanoc/nanoc-4.12.15.ebuild new file mode 100644 index 000000000000..28e999de69c8 --- /dev/null +++ b/www-apps/nanoc/nanoc-4.12.15.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30" + +RUBY_FAKEGEM_EXTRADOC="NEWS.md README.md" + +RUBY_FAKEGEM_GEMSPEC="nanoc.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="nanoc is a simple but very flexible static site generator written in Ruby" +HOMEPAGE="https://nanoc.app/" +SRC_URI="https://github.com/nanoc/nanoc/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" + +KEYWORDS="~amd64" +SLOT="0" +IUSE="${IUSE} minimal" + +DEPEND+="test? ( app-text/asciidoc app-text/highlight )" + +RUBY_S="${P}/nanoc" + +ruby_add_rdepend "!minimal? ( + dev-ruby/mime-types:* + dev-ruby/rack:* + www-servers/adsf +) + >=dev-ruby/addressable-2.5 + >=dev-ruby/colored-1.2:0 + >=www-apps/nanoc-checking-1.0.2:1 + ~www-apps/nanoc-cli-${PV} + ~www-apps/nanoc-core-${PV} + www-apps/nanoc-deploying:1 + >=dev-ruby/parallel-1.12:1 + >=dev-ruby/tty-command-0.8:0 + >=dev-ruby/tty-which-0.4:0 +" + +ruby_add_bdepend "test? ( + dev-ruby/rspec:3 + dev-ruby/asciidoctor + dev-ruby/fuubar + dev-ruby/haml + dev-ruby/maruku + >=dev-ruby/mocha-0.13 + dev-ruby/minitest + dev-ruby/mustache + dev-ruby/pry + dev-ruby/rdoc + >=dev-ruby/rouge-3.5.1:2 + dev-ruby/rubypants + dev-ruby/systemu + dev-ruby/timecop + 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:^:#:' \ + -e '/codecov/I s:^:#:' test/helper.rb ../common/spec/spec_helper_head_core.rb || die + sed -i -e '/coverall/I s:^:#:' \ + -e '/rubocop/ s:^:#:' Rakefile || die + + echo "-r ./spec/spec_helper.rb" > .rspec || die + + # Avoid basepath issues when generating gemspec + sed -i -e "s:require_relative ':require './:" ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid tests requiring a network connection or make assumptions + # about the local network environment. + rm -f test/checking/checks/test_{css,html}.rb spec/nanoc/cli/commands/view_spec.rb || die + + # Avoid tests for unpackaged dependencies + rm spec/nanoc/filters/less_spec.rb \ + test/filters/test_{markaby,rainpress}.rb || die + + # Avoid tests that are specific to haml 6.x which is currently not packaged + sed -i -e '/test_filter_\(with_proper_indentation\|error\)/askip "haml 6"' test/filters/test_haml.rb || die + + # Avoid non-fatal failing tests due to specifics in the environment + sed -e '124askip "ordering issues"' -e '168askip "ordering issues"' \ + -i spec/nanoc/data_sources/filesystem_spec.rb || die +} + +each_ruby_test() { + RUBYLIB="${S}/lib" ${RUBY} -S rake spec test_all || die +} |