diff options
author | Florian Schmaus <flow@gentoo.org> | 2023-06-25 17:34:06 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2023-06-25 17:39:34 +0200 |
commit | 84d6c4da691dc93a5f8b06de342aebfdf4168c8b (patch) | |
tree | fa6e954aee454604f30456361669dde3823e6c7c /app-text/kramdown-rfc | |
parent | dev-python/Nuitka: Bump to 1.6.5 (diff) | |
download | gentoo-84d6c4da691dc93a5f8b06de342aebfdf4168c8b.tar.gz gentoo-84d6c4da691dc93a5f8b06de342aebfdf4168c8b.tar.bz2 gentoo-84d6c4da691dc93a5f8b06de342aebfdf4168c8b.zip |
app-text/kramdown-rfc: add 1.6.35
Bug: https://bugs.gentoo.org/909021
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'app-text/kramdown-rfc')
-rw-r--r-- | app-text/kramdown-rfc/Manifest | 1 | ||||
-rw-r--r-- | app-text/kramdown-rfc/files/kramdown-rfc-1.6.35-Remove-bin-echars.patch | 27 | ||||
-rw-r--r-- | app-text/kramdown-rfc/kramdown-rfc-1.6.35.ebuild | 41 |
3 files changed, 69 insertions, 0 deletions
diff --git a/app-text/kramdown-rfc/Manifest b/app-text/kramdown-rfc/Manifest index baaaeab27c74..da84e7b968f8 100644 --- a/app-text/kramdown-rfc/Manifest +++ b/app-text/kramdown-rfc/Manifest @@ -1 +1,2 @@ DIST kramdown-rfc2629-1.6.27.gem 57344 BLAKE2B e43d46a02e804268ebf5697fde7948c1c1e90f2cb33f0aa66c93c629e6f68f7932ecf02cd7169c93d06f21ee77e9c98b2717c6c18629fc78d2532098ef4e4f5f SHA512 7ad473bf9221f8369afaa6374751d77931f12e7af3500576da7567cc4e36844349de412626e735432dea098d71d155cb1fd1d87f9e3ea053bebd3be84da81c17 +DIST kramdown-rfc2629-1.6.35.gem 60928 BLAKE2B 91438fb8d58f59da8d69f7065478ae66e80a9a5958c5e87ab4c342e1abf0f3ee38c411b05d9e8d24d1f06093426a9db4552fda4914907ec7bd4dfd45668e9e71 SHA512 88d24c5c8a236733422dc3b863376c9007d4ea5e68977f4ebc5dcff51782995ab169c790d5a89fa4ae53966e92d1142fe5bf3135cd56e02eeecf0abd2290b098 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 +} |