summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/kramdown-rfc')
-rw-r--r--app-text/kramdown-rfc/Manifest1
-rw-r--r--app-text/kramdown-rfc/files/kramdown-rfc-1.6.27-Drop-dependency-on-certified.patch31
-rw-r--r--app-text/kramdown-rfc/files/kramdown-rfc-1.6.27-Remove-bin-echars.patch27
-rw-r--r--app-text/kramdown-rfc/kramdown-rfc-1.6.27.ebuild41
4 files changed, 100 insertions, 0 deletions
diff --git a/app-text/kramdown-rfc/Manifest b/app-text/kramdown-rfc/Manifest
index 399877930869..882a0658303e 100644
--- a/app-text/kramdown-rfc/Manifest
+++ b/app-text/kramdown-rfc/Manifest
@@ -2,3 +2,4 @@ DIST kramdown-rfc2629-1.6.17.gem 55808 BLAKE2B 7b3d8359eab9dc9ac9a2beeba74c541a7
DIST kramdown-rfc2629-1.6.18.gem 55808 BLAKE2B 536906e3f54d202808a06e8e86f4f431b3d30349056644c30fea7e9e57b5586d0a97f9e7e2a1511ddc68a33bf6115c94edc20d98057d333384840871fba00a9d SHA512 911a7a898567f5e085a788d8fbf135d8323af9d2e587ab302a43719f5a7abc820604c2d36eb6ac569dd999e7d08a3ee7a058eeb41c156ec1e295ce3ce9ed194c
DIST kramdown-rfc2629-1.6.21.gem 56320 BLAKE2B 80946169b6041d4f8011a93dc9c8fba82ef32a117d11fd9002704bf80a68caab21991edf9e74440e90853e2bcc41f13cd37256b15c8775d6cdf2b1a60ddf3d90 SHA512 3c5ad31d302a0b6ea87b2380aa95a2d1410b50fc6708623ec691e4dfe1dac71b27c5a79aae9f275ffeca577049eb615bdbe03481d5cb6036ca46ed5b8404355c
DIST kramdown-rfc2629-1.6.22.gem 56320 BLAKE2B 8871ae9c854dc3de3f954863ce7631f6a18e8a501850ca068373edf9e3a794b7f7ead729b357eacfed9a58152153fb87dd746d4602ea998e1770d8dec34ec990 SHA512 bc080b9ce477a199621b6f57164ffcf59c7d941e1daeaf1496446152c31c5e959a7fb218b2ddda74d1df241bb8df8d9516b069dfae265b10629d346e0d5f3b00
+DIST kramdown-rfc2629-1.6.27.gem 57344 BLAKE2B e43d46a02e804268ebf5697fde7948c1c1e90f2cb33f0aa66c93c629e6f68f7932ecf02cd7169c93d06f21ee77e9c98b2717c6c18629fc78d2532098ef4e4f5f SHA512 7ad473bf9221f8369afaa6374751d77931f12e7af3500576da7567cc4e36844349de412626e735432dea098d71d155cb1fd1d87f9e3ea053bebd3be84da81c17
diff --git a/app-text/kramdown-rfc/files/kramdown-rfc-1.6.27-Drop-dependency-on-certified.patch b/app-text/kramdown-rfc/files/kramdown-rfc-1.6.27-Drop-dependency-on-certified.patch
new file mode 100644
index 000000000000..65a5fbed234f
--- /dev/null
+++ b/app-text/kramdown-rfc/files/kramdown-rfc-1.6.27-Drop-dependency-on-certified.patch
@@ -0,0 +1,31 @@
+From 8e7bd5a8b95e06568af75f3268529434ea989b2b Mon Sep 17 00:00:00 2001
+From: Florian Schmaus <flo@geekplace.eu>
+Date: Mon, 27 Mar 2023 11:18:37 +0200
+Subject: [PATCH] Drop dependency on certified
+
+--- a/kramdown-rfc2629.gemspec
++++ b/kramdown-rfc2629.gemspec
+@@ -6,7 +6,6 @@ spec = Gem::Specification.new do |s|
+ "kramdown" markdown parser. Mostly useful for RFC writers.}
+ s.add_dependency('kramdown', '~> 2.4.0')
+ s.add_dependency('kramdown-parser-gfm', '~> 1.1')
+- s.add_dependency('certified', '~> 1.0')
+ s.add_dependency('json_pure', '~> 2.0')
+ s.add_dependency('unicode-name', '~> 1.0')
+ s.add_dependency('unicode-blocks', '~> 1.0')
+--- a/lib/kramdown-rfc/command.rb
++++ b/lib/kramdown-rfc/command.rb
+@@ -134,9 +134,7 @@ def do_the_tls_dance
+ warn "** Configuration problem with OpenSSL certificate store."
+ warn "** You may want to examine #{OpenSSL::X509::DEFAULT_CERT_FILE}"
+ warn "** and #{OpenSSL::X509::DEFAULT_CERT_DIR}."
+- warn "** Activating suboptimal workaround."
+- warn "** Occasionally run `certified-update` to maintain that workaround."
+- require 'certified'
++ exit 1
+ end
+ end
+ end
+--
+2.39.2
+
diff --git a/app-text/kramdown-rfc/files/kramdown-rfc-1.6.27-Remove-bin-echars.patch b/app-text/kramdown-rfc/files/kramdown-rfc-1.6.27-Remove-bin-echars.patch
new file mode 100644
index 000000000000..a708c2845c8b
--- /dev/null
+++ b/app-text/kramdown-rfc/files/kramdown-rfc-1.6.27-Remove-bin-echars.patch
@@ -0,0 +1,27 @@
+From fb735bb60e3bbfc14a9b38fe57c0cdfef48e15ab Mon Sep 17 00:00:00 2001
+From: Florian Schmaus <flo@geekplace.eu>
+Date: Mon, 27 Mar 2023 11:26:09 +0200
+Subject: [PATCH] Remove bin/echars
+
+--- a/kramdown-rfc2629.gemspec
++++ b/kramdown-rfc2629.gemspec
+@@ -7,14 +7,10 @@ spec = Gem::Specification.new do |s|
+ s.add_dependency('kramdown', '~> 2.4.0')
+ s.add_dependency('kramdown-parser-gfm', '~> 1.1')
+ s.add_dependency('json_pure', '~> 2.0')
+- s.add_dependency('unicode-name', '~> 1.0')
+- s.add_dependency('unicode-blocks', '~> 1.0')
+- s.add_dependency('unicode-scripts', '~> 1.0')
+ s.add_dependency('net-http-persistent', '~> 4.0')
+- s.add_dependency('differ', '~>0.1')
+- s.files = Dir['lib/**/*.rb'] + %w(README.md LICENSE kramdown-rfc2629.gemspec bin/kdrfc bin/kramdown-rfc bin/kramdown-rfc2629 bin/doilit bin/echars bin/kramdown-rfc-extract-markdown data/kramdown-rfc2629.erb data/encoding-fallbacks.txt data/math.json bin/kramdown-rfc-cache-subseries-bibxml bin/kramdown-rfc-autolink-iref-cleanup bin/de-gfm)
++ s.files = Dir['lib/**/*.rb'] + %w(README.md LICENSE kramdown-rfc2629.gemspec bin/kdrfc bin/kramdown-rfc bin/kramdown-rfc2629 bin/doilit bin/kramdown-rfc-extract-markdown data/kramdown-rfc2629.erb data/encoding-fallbacks.txt data/math.json bin/kramdown-rfc-cache-subseries-bibxml bin/kramdown-rfc-autolink-iref-cleanup bin/de-gfm)
+ s.require_path = 'lib'
+- s.executables = ['kramdown-rfc', 'kramdown-rfc2629', 'doilit', 'echars',
++ s.executables = ['kramdown-rfc', 'kramdown-rfc2629', 'doilit',
+ 'kramdown-rfc-extract-markdown',
+ 'kdrfc', 'kramdown-rfc-cache-i-d-bibxml',
+ 'kramdown-rfc-cache-subseries-bibxml',
+--
+2.39.2
+
diff --git a/app-text/kramdown-rfc/kramdown-rfc-1.6.27.ebuild b/app-text/kramdown-rfc/kramdown-rfc-1.6.27.ebuild
new file mode 100644
index 000000000000..1a51309bea51
--- /dev/null
+++ b/app-text/kramdown-rfc/kramdown-rfc-1.6.27.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby30"
+
+# The software got renamed from kramdown-rfc2629 to kramdown-rfc,
+# however the gem coordinate is still kramdown-rfc2629.
+RUBY_FAKEGEM_NAME="${PN}2629"
+RUBY_FAKEGEM_RECIPE_TEST="none"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+RUBY_FAKEGEM_EXTRAINSTALL="data"
+# Explicitly use the gemspec file over the metadata file of the gem, as
+# the latter contains dependencies that we patched out.
+RUBY_FAKEGEM_GEMSPEC="${RUBY_FAKEGEM_NAME}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="An XML2RFC (RFC799x) backend for Thomas Leitner's kramdown markdown parser"
+HOMEPAGE="https://github.com/cabo/kramdown-rfc"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.6.27-Drop-dependency-on-certified.patch
+ "${FILESDIR}"/${PN}-1.6.27-Remove-bin-echars.patch
+)
+
+ruby_add_rdepend "
+ >=dev-ruby/json-2.0.0
+ >=dev-ruby/kramdown-2.4.0
+ >=dev-ruby/kramdown-parser-gfm-1.1.0
+ >=dev-ruby/net-http-persistent-4.0
+"
+
+all_ruby_prepare() {
+ sed -i 's/json_pure/json/' "${RUBY_FAKEGEM_GEMSPEC}" || die
+}