pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/ruby-kramdown-rfc2629 kramdown-rfc2629: Patch...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b0eb665dd558
branches:  trunk
changeset: 445194:b0eb665dd558
user:      riastradh <riastradh%pkgsrc.org@localhost>
date:      Sun Jan 17 17:26:15 2021 +0000

description:
kramdown-rfc2629: Patch to work with kramdown 2.0.

That's what we have as textproc/ruby-kramdown; it seems to function
with that.

diffstat:

 textproc/ruby-kramdown-rfc2629/Makefile                              |   9 ++++-
 textproc/ruby-kramdown-rfc2629/distinfo                              |   3 +-
 textproc/ruby-kramdown-rfc2629/patches/patch-lib_kramdown-rfc2629.rb |  17 ++++++++++
 3 files changed, 27 insertions(+), 2 deletions(-)

diffs (57 lines):

diff -r 76c7a00225f0 -r b0eb665dd558 textproc/ruby-kramdown-rfc2629/Makefile
--- a/textproc/ruby-kramdown-rfc2629/Makefile   Sun Jan 17 16:05:48 2021 +0000
+++ b/textproc/ruby-kramdown-rfc2629/Makefile   Sun Jan 17 17:26:15 2021 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2021/01/16 20:50:04 riastradh Exp $
+# $NetBSD: Makefile,v 1.2 2021/01/17 17:26:15 riastradh Exp $
 
 DISTNAME=      kramdown-rfc2629-1.3.24
+PKGREVISION=   1
 CATEGORIES=    textproc
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -10,5 +11,11 @@
 
 USE_LANGUAGES= # none
 
+OVERRIDE_GEMSPEC+=     certified:
+OVERRIDE_GEMSPEC+=     kramdown>=2.0
+
+DEPENDS+=      ${RUBY_PKGPREFIX}-json>=2.0:../../textproc/ruby-json
+DEPENDS+=      ${RUBY_PKGPREFIX}-kramdown>=2.0:../../textproc/ruby-kramdown
+
 .include "../../lang/ruby/gem.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 76c7a00225f0 -r b0eb665dd558 textproc/ruby-kramdown-rfc2629/distinfo
--- a/textproc/ruby-kramdown-rfc2629/distinfo   Sun Jan 17 16:05:48 2021 +0000
+++ b/textproc/ruby-kramdown-rfc2629/distinfo   Sun Jan 17 17:26:15 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2021/01/16 20:50:04 riastradh Exp $
+$NetBSD: distinfo,v 1.2 2021/01/17 17:26:15 riastradh Exp $
 
 SHA1 (kramdown-rfc2629-1.3.24.gem) = 307bba99cab92e156ad1a7aab6ddcaf31bb1cf9f
 RMD160 (kramdown-rfc2629-1.3.24.gem) = 22730dd175a292702d9ea2e3155a1e4450d43eec
 SHA512 (kramdown-rfc2629-1.3.24.gem) = 32af06b9ed0e6e15298898449f240a1db7511a707fdca51be32fa221951fe560b8b64f55eb831a95469a7252ab02841ec3c965785124d56f354eac0c4043414f
 Size (kramdown-rfc2629-1.3.24.gem) = 41472 bytes
+SHA1 (patch-lib_kramdown-rfc2629.rb) = f9d200908675d904cb56373dc8c407bd61008760
diff -r 76c7a00225f0 -r b0eb665dd558 textproc/ruby-kramdown-rfc2629/patches/patch-lib_kramdown-rfc2629.rb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ruby-kramdown-rfc2629/patches/patch-lib_kramdown-rfc2629.rb      Sun Jan 17 17:26:15 2021 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-lib_kramdown-rfc2629.rb,v 1.1 2021/01/17 17:26:15 riastradh Exp $
+
+Make this work with kramdown 2.x, which is what we have in pkgsrc.
+This seems to work fine, and certainly better than trying to use 1.17.0
+which fails on startup.
+
+--- lib/kramdown-rfc2629.rb.orig       2021-01-16 21:48:50.361415982 +0000
++++ lib/kramdown-rfc2629.rb
+@@ -12,7 +12,7 @@ require 'shellwords'
+ 
+ raise "sorry, 1.8 was last decade" unless RUBY_VERSION >= '1.9'
+ 
+-gem 'kramdown', '~> 1.17.0'
++gem 'kramdown', '~> 2.0'
+ require 'kramdown'
+ my_span_elements =  %w{list figure xref eref iref cref spanx vspace}
+ Kramdown::Parser::Html::Constants::HTML_SPAN_ELEMENTS.concat my_span_elements



Home | Main Index | Thread Index | Old Index