summaryrefslogtreecommitdiff
path: root/app-text/kramdown-rfc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-25 19:30:41 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-25 19:30:41 +0100
commit6fe5af3f06c92a6b1a6b21ff5e1bc9d107490971 (patch)
tree872ff7ba355a0b1735779b329c6a6b8b8f728a88 /app-text/kramdown-rfc
parente564f1661521043bc9e03e613c3cd8c79d5d7713 (diff)
gentoo auto-resync : 25:06:2023 - 19:30:41
Diffstat (limited to 'app-text/kramdown-rfc')
-rw-r--r--app-text/kramdown-rfc/Manifest3
-rw-r--r--app-text/kramdown-rfc/files/kramdown-rfc-1.6.35-Remove-bin-echars.patch27
-rw-r--r--app-text/kramdown-rfc/kramdown-rfc-1.6.35.ebuild41
3 files changed, 71 insertions, 0 deletions
diff --git a/app-text/kramdown-rfc/Manifest b/app-text/kramdown-rfc/Manifest
index 138ced9ea98b..4c8e4272b44b 100644
--- a/app-text/kramdown-rfc/Manifest
+++ b/app-text/kramdown-rfc/Manifest
@@ -1,5 +1,8 @@
AUX kramdown-rfc-1.6.27-Drop-dependency-on-certified.patch 1181 BLAKE2B 88aca52367e43430d32cd9fec446d058336df581e6f1826c21b2ce0a0b56146e5e823c64c67a93c475d434be8f11dccf06087e8482ca5a58f3e756692bd20e95 SHA512 9ad85ee55c73fa1c5aef81fd9453f339730e2f96ab36b4888d425e6a3898aaac9fdba7ff09744ddab77a46ba5de5f609a1fdd3731e51fbaaba25c8885c138562
AUX kramdown-rfc-1.6.27-Remove-bin-echars.patch 1709 BLAKE2B 204a01a8115e87c14e4afd2d13e6c9901e00e57b8f41e278bc1f9a8893bd434a4fde25f91a59cfd62df46d6439b44e033066f092c353b4a73f187b8a337f3202 SHA512 f5469729f74187dc10120f5c8bd3ba9fa7d9d4437bc13ea341671a937e65398d923d1c0ae17ae383c39fda1b5be8fd94d45b63a17fa22d1ed347f023eb380c4d
+AUX kramdown-rfc-1.6.35-Remove-bin-echars.patch 1838 BLAKE2B f069feb771975e6db63c433662416e31434c4b72d1ab6142afde73ca1e16fb7435aafcdf7a82650cfebe1edfbb851e2017b3d723694a24527065edffb5921e08 SHA512 9cbbc54067278196c1e8044f839536307e268272d855b787f82b0af585ad327975013671ea67cb6ce6882cdaeeb13499fa965a30608a3c9634a285d554fdf097
DIST kramdown-rfc2629-1.6.27.gem 57344 BLAKE2B e43d46a02e804268ebf5697fde7948c1c1e90f2cb33f0aa66c93c629e6f68f7932ecf02cd7169c93d06f21ee77e9c98b2717c6c18629fc78d2532098ef4e4f5f SHA512 7ad473bf9221f8369afaa6374751d77931f12e7af3500576da7567cc4e36844349de412626e735432dea098d71d155cb1fd1d87f9e3ea053bebd3be84da81c17
+DIST kramdown-rfc2629-1.6.35.gem 60928 BLAKE2B 91438fb8d58f59da8d69f7065478ae66e80a9a5958c5e87ab4c342e1abf0f3ee38c411b05d9e8d24d1f06093426a9db4552fda4914907ec7bd4dfd45668e9e71 SHA512 88d24c5c8a236733422dc3b863376c9007d4ea5e68977f4ebc5dcff51782995ab169c790d5a89fa4ae53966e92d1142fe5bf3135cd56e02eeecf0abd2290b098
EBUILD kramdown-rfc-1.6.27.ebuild 1123 BLAKE2B 9e5db4ebaa8998a55191cc9277810833386e5abbe917c677cfe917a85bea18b622566b918e5a460d67c913e82bd2f61801e7ea58d2ac3c374e9d7aa790a07cee SHA512 e4cad1711739db2485daa6f634474bbaf25ce0d4fee8c70dcc3e0e3ef7036af17bcb67b4c0ec65ea5042134599e0be7ca6210316c3d891b2a1907703966a365c
+EBUILD kramdown-rfc-1.6.35.ebuild 1124 BLAKE2B 5f766d0bc384d55e6d6c9e92d44c206d2bc4c72d5f1a5f9d3cb612f1aaa5f2205e493e59b6c0d60ef506267f21eed5b52a22de99c6ddaf793e15d14f9a2ced1c SHA512 a363354ca02e9ed9d64fa6bb4a81847b18b60c3e8faba8860f5c4780bc6506a0a4cbe94be5b1b449c2fbaa5e1e97a4473a7b5905282d42b1ac65870a03627d7c
MISC metadata.xml 329 BLAKE2B 9185c25e51c2e8b627f4b429b3b9de5c751e05fe6d78831704f32811ec9962e7f05f057c6c8e68bbcf58b95b7f791357cc3ae4598f49e3e073063994bcd30e95 SHA512 8638caf7ae842a1cffccea4795d4769ec20a56107721b5a401bf430151c682332adee04fb1bc551d1ce4de875572a356b1f4bce0dad435c4c7bc4f91c686b9ff
diff --git a/app-text/kramdown-rfc/files/kramdown-rfc-1.6.35-Remove-bin-echars.patch b/app-text/kramdown-rfc/files/kramdown-rfc-1.6.35-Remove-bin-echars.patch
new file mode 100644
index 000000000000..089ca1f4dea3
--- /dev/null
+++ b/app-text/kramdown-rfc/files/kramdown-rfc-1.6.35-Remove-bin-echars.patch
@@ -0,0 +1,27 @@
+From 4e64df2e00dec244fe1f44233553e1936004b98d Mon Sep 17 00:00:00 2001
+From: Florian Schmaus <flo@geekplace.eu>
+Date: Sun, 25 Jun 2023 17:32:52 +0200
+Subject: [PATCH] Remove bin/echars
+
+--- a/kramdown-rfc2629.gemspec
++++ b/kramdown-rfc2629.gemspec
+@@ -8,14 +8,10 @@ spec = Gem::Specification.new do |s|
+ 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')
+- 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 bin/kramdown-rfc-extract-sourcecode 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 bin/kramdown-rfc-clean-svg-ids)
++ 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 bin/kramdown-rfc-extract-sourcecode 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 bin/kramdown-rfc-clean-svg-ids)
+ s.require_path = 'lib'
+- s.executables = ['kramdown-rfc', 'kramdown-rfc2629', 'doilit', 'echars',
++ s.executables = ['kramdown-rfc', 'kramdown-rfc2629', 'doilit',
+ 'kramdown-rfc-extract-markdown',
+ 'kramdown-rfc-extract-sourcecode',
+ 'kdrfc', 'kramdown-rfc-cache-i-d-bibxml',
+--
+2.39.3
+
diff --git a/app-text/kramdown-rfc/kramdown-rfc-1.6.35.ebuild b/app-text/kramdown-rfc/kramdown-rfc-1.6.35.ebuild
new file mode 100644
index 000000000000..ff1033582610
--- /dev/null
+++ b/app-text/kramdown-rfc/kramdown-rfc-1.6.35.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="ruby31"
+
+# 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.35-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
+}