diff options
author | taca <taca@pkgsrc.org> | 2022-10-16 04:17:23 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2022-10-16 04:17:23 +0000 |
commit | 1c2173325f0bb9a31574760460fa7be73ea643eb (patch) | |
tree | 91b456b2c04921cee0d5e38eee8461b6a134383c | |
parent | a56ef3215518d81286b0cea8c3afb0939cf41d07 (diff) | |
download | pkgsrc-1c2173325f0bb9a31574760460fa7be73ea643eb.tar.gz |
www/ruby-jekyll: fix "jekyll server"
Fix "jekyll server".
* Require ruby-webrick on Ruby 3.0 and lator.
* Explicitly require webrick".
Bump PKGREVISION.
-rw-r--r-- | www/ruby-jekyll/Makefile | 9 | ||||
-rw-r--r-- | www/ruby-jekyll/distinfo | 3 | ||||
-rw-r--r-- | www/ruby-jekyll/patches/patch-lib_jekyll_commands_serve.rb | 14 |
3 files changed, 24 insertions, 2 deletions
diff --git a/www/ruby-jekyll/Makefile b/www/ruby-jekyll/Makefile index aa301d231b8..00aaea33be2 100644 --- a/www/ruby-jekyll/Makefile +++ b/www/ruby-jekyll/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.42 2022/09/01 14:53:14 taca Exp $ +# $NetBSD: Makefile,v 1.43 2022/10/16 04:17:23 taca Exp $ DISTNAME= jekyll-4.2.2 +PKGREVISION= 1 CATEGORIES= www MAINTAINER= pkgsrc-users@NetBSD.org @@ -30,5 +31,11 @@ USE_LANGUAGES= # empty RUBYGEM_OPTIONS+= --format-executable +.include "../../lang/ruby/rubyversion.mk" + +.if ${RUBY_VER} >= 30 +DEPENDS+= ${RUBY_PKGPREFIX}-webrick>=1.6.0:../../www/ruby-webrick +.endif + .include "../../lang/ruby/gem.mk" .include "../../mk/bsd.pkg.mk" diff --git a/www/ruby-jekyll/distinfo b/www/ruby-jekyll/distinfo index bd81f13d18b..69efd467446 100644 --- a/www/ruby-jekyll/distinfo +++ b/www/ruby-jekyll/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.27 2022/09/01 14:53:14 taca Exp $ +$NetBSD: distinfo,v 1.28 2022/10/16 04:17:23 taca Exp $ BLAKE2s (jekyll-4.2.2.gem) = 83b28534052835db7b6f0674b7a2c769eb1d9452d5c56b1d5588f9f75d0530f0 SHA512 (jekyll-4.2.2.gem) = c49692d12905915021c5d5b18da4a808c09da04e7338995e7385ecb4b48c39e6cd019378457dc97ee5f16fdfe403e8db53ca151e181e6853f2e3adbb19ac16be Size (jekyll-4.2.2.gem) = 124928 bytes SHA1 (patch-lib_jekyll_commands_new.rb) = 5a58a44fe851fb95d03a86a9df4f5671f2b73502 +SHA1 (patch-lib_jekyll_commands_serve.rb) = ac115a7a8f85487105b62a44d0746912892dd8b5 diff --git a/www/ruby-jekyll/patches/patch-lib_jekyll_commands_serve.rb b/www/ruby-jekyll/patches/patch-lib_jekyll_commands_serve.rb new file mode 100644 index 00000000000..3dd75f21ac6 --- /dev/null +++ b/www/ruby-jekyll/patches/patch-lib_jekyll_commands_serve.rb @@ -0,0 +1,14 @@ +$NetBSD: patch-lib_jekyll_commands_serve.rb,v 1.1 2022/10/16 04:17:23 taca Exp $ + +* "jekyll serve" require webrick. + +--- lib/jekyll/commands/serve.rb.orig 2022-10-16 04:11:09.565369814 +0000 ++++ lib/jekyll/commands/serve.rb +@@ -1,5 +1,7 @@ + # frozen_string_literal: true + ++require 'webrick' ++ + module Jekyll + module Commands + class Serve < Command |