pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/ruby-jekyll www/ruby-jekyll: fix "jekyll server"
details: https://anonhg.NetBSD.org/pkgsrc/rev/a954c3fc0b38
branches: trunk
changeset: 386851:a954c3fc0b38
user: taca <taca%pkgsrc.org@localhost>
date: Sun Oct 16 04:17:23 2022 +0000
description:
www/ruby-jekyll: fix "jekyll server"
Fix "jekyll server".
* Require ruby-webrick on Ruby 3.0 and lator.
* Explicitly require webrick".
Bump PKGREVISION.
diffstat:
www/ruby-jekyll/Makefile | 9 ++++++++-
www/ruby-jekyll/distinfo | 3 ++-
www/ruby-jekyll/patches/patch-lib_jekyll_commands_serve.rb | 14 ++++++++++++++
3 files changed, 24 insertions(+), 2 deletions(-)
diffs (54 lines):
diff -r 9190a53e8c22 -r a954c3fc0b38 www/ruby-jekyll/Makefile
--- a/www/ruby-jekyll/Makefile Sat Oct 15 23:14:57 2022 +0000
+++ b/www/ruby-jekyll/Makefile Sun Oct 16 04:17:23 2022 +0000
@@ -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@localhost
@@ -30,5 +31,11 @@
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 -r 9190a53e8c22 -r a954c3fc0b38 www/ruby-jekyll/distinfo
--- a/www/ruby-jekyll/distinfo Sat Oct 15 23:14:57 2022 +0000
+++ b/www/ruby-jekyll/distinfo Sun Oct 16 04:17:23 2022 +0000
@@ -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 -r 9190a53e8c22 -r a954c3fc0b38 www/ruby-jekyll/patches/patch-lib_jekyll_commands_serve.rb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ruby-jekyll/patches/patch-lib_jekyll_commands_serve.rb Sun Oct 16 04:17:23 2022 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index