summaryrefslogtreecommitdiff
path: root/www-apps/nanoc-cli
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/nanoc-cli')
-rw-r--r--www-apps/nanoc-cli/Manifest2
-rw-r--r--www-apps/nanoc-cli/nanoc-cli-4.12.16.ebuild70
2 files changed, 72 insertions, 0 deletions
diff --git a/www-apps/nanoc-cli/Manifest b/www-apps/nanoc-cli/Manifest
index a76ffa56178c..38667194d979 100644
--- a/www-apps/nanoc-cli/Manifest
+++ b/www-apps/nanoc-cli/Manifest
@@ -1,5 +1,7 @@
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.16.tar.gz 350823 BLAKE2B 8196589290b5120b74bd2063e60f1fad14af98f7c8ffcef0a226d28ecb3f129ab04c913ad921e64c9551965c8fe1e26da1e0f41baa64a75caa372d6796c5084b SHA512 e04a562d87250286a9fbdc0381fdc64868f87f67d1ae9ce81f0e21c13496e168cfc4936c02b3cba87e8d647ab070670a208722fd53f4265eb3674b7ba20ccebd
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.16.ebuild 2037 BLAKE2B aa3be6da68d9210af179cb449287bb87921ed85705ae4419dcf15ebcdf596ff728d20bce1b4df7828136b13b968a7f343cab8a15b06b89d082529ab3a513ec2f SHA512 b88ea1c44e660968d2065e6d6c2c699865d5b2ab1b757d3d8b73add424b96e4191dd0af30c678383c34723d20a844c0f049a76039133f49c4d1af2c768e151eb
MISC metadata.xml 394 BLAKE2B 7b8c56a3dc98dbfc894dd1956390b9ea58fad15bd061590e776778af087d281e30fccdca9d5b227aad4b99ec0c370759ae501eafc58bf87cc56811cfb51b4647 SHA512 9e56f1314cf818d30c3153f5ada0ac75c70d460e9137de7146bc9af41ceebcd578de1336bebf141e41ba0969dbca332b8e06269dd61e91b7a33e207b2f6b4997
diff --git a/www-apps/nanoc-cli/nanoc-cli-4.12.16.ebuild b/www-apps/nanoc-cli/nanoc-cli-4.12.16.ebuild
new file mode 100644
index 000000000000..cb43c1206022
--- /dev/null
+++ b/www-apps/nanoc-cli/nanoc-cli-4.12.16.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="ruby30 ruby31"
+
+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
+}