From c1d3da9ca87c414100b1cb969e36b8d7d05b9a74 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 10 Aug 2022 09:16:34 +0100 Subject: added ovmf, lolcat, spice, and squashfstools --- repo/ronn/fix-ruby-3.1-compat.patch | 24 +++++++++++++++++ repo/ronn/mustache-1.X.patch | 50 ++++++++++++++++++++++++++++++++++ repo/ronn/ronn.xibuild | 53 +++++++++++++++++++++++++++++++++++++ 3 files changed, 127 insertions(+) create mode 100644 repo/ronn/fix-ruby-3.1-compat.patch create mode 100644 repo/ronn/mustache-1.X.patch create mode 100644 repo/ronn/ronn.xibuild (limited to 'repo/ronn') diff --git a/repo/ronn/fix-ruby-3.1-compat.patch b/repo/ronn/fix-ruby-3.1-compat.patch new file mode 100644 index 0000000..233da9d --- /dev/null +++ b/repo/ronn/fix-ruby-3.1-compat.patch @@ -0,0 +1,24 @@ +Patch-Source: https://github.com/apjanke/ronn-ng/issues/80 + +--- a/lib/ronn/document.rb.orig ++++ b/lib/ronn/document.rb +@@ -289,7 +289,7 @@ + + def to_yaml + require 'yaml' +- to_h.to_yaml ++ to_h.merge('date' => date.to_s).to_yaml + end + + def to_json(*_args) +--- a/test/test_ronn_document.rb ++++ b/test/test_ronn_document.rb +@@ -140,7 +140,7 @@ class DocumentTest < Test::Unit::TestCase + assert_equal({ + 'section' => '1', + 'name' => 'hello', +- 'date' => @now, ++ 'date' => @now.to_s, + 'tagline' => 'hello world', + 'styles' => ['man'], + 'toc' => [['NAME', 'NAME']], diff --git a/repo/ronn/mustache-1.X.patch b/repo/ronn/mustache-1.X.patch new file mode 100644 index 0000000..d8bd1a4 --- /dev/null +++ b/repo/ronn/mustache-1.X.patch @@ -0,0 +1,50 @@ +Patch-Source: https://github.com/apjanke/ronn-ng/commit/b553dae9179313b6a27d86c17708d7a1fd989a7a + +From b553dae9179313b6a27d86c17708d7a1fd989a7a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?David=20Rodr=C3=ADguez?= +Date: Fri, 10 Apr 2020 19:06:52 +0200 +Subject: [PATCH] Support only mustache 1.x + +--- + Gemfile.lock | 6 +++--- + ronn-ng.gemspec | 2 +- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/Gemfile.lock b/Gemfile.lock +index 46d6c5a..e688b8f 100644 +--- a/Gemfile.lock ++++ b/Gemfile.lock +@@ -3,7 +3,7 @@ PATH + specs: + ronn-ng (0.9.1) + kramdown (~> 2.1) +- mustache (~> 0.7, >= 0.7.0) ++ mustache (~> 1.0) + nokogiri (~> 1.9, >= 1.9.0) + + GEM +@@ -13,9 +13,9 @@ GEM + jaro_winkler (1.5.3) + kramdown (2.1.0) + mini_portile2 (2.4.0) +- mustache (0.99.8) ++ mustache (1.1.1) + mustermann (1.0.3) +- nokogiri (1.10.7) ++ nokogiri (1.10.9) + mini_portile2 (~> 2.4.0) + parallel (1.17.0) + parser (2.6.3.0) +diff --git a/ronn-ng.gemspec b/ronn-ng.gemspec +index d07cc14..a476c70 100644 +--- a/ronn-ng.gemspec ++++ b/ronn-ng.gemspec +@@ -111,7 +111,7 @@ Gem::Specification.new do |s| + + s.extra_rdoc_files = %w[LICENSE.txt AUTHORS] + s.add_dependency 'kramdown', '~> 2.1' +- s.add_dependency 'mustache', '~> 0.7', '>= 0.7.0' ++ s.add_dependency 'mustache', '~> 1.0' + s.add_dependency 'nokogiri', '~> 1.9', '>= 1.9.0' + s.add_development_dependency 'rack', '~> 2.0', '>= 2.0.6' + s.add_development_dependency 'rake', '~> 12.3', '>= 12.3.0' diff --git a/repo/ronn/ronn.xibuild b/repo/ronn/ronn.xibuild new file mode 100644 index 0000000..50e700e --- /dev/null +++ b/repo/ronn/ronn.xibuild @@ -0,0 +1,53 @@ +#!/bin/sh + +NAME="ronn" +DESC="Convert Markdown files to manpages" + +MAKEDEPS="" + +PKG_VER=0.9.1 +_gemname=ronn-ng +SOURCE="https://github.com/apjanke/$_gemname/archive/v$PKG_VER/$_gemname-$PKG_VER.tar.gz" +DEPS="ruby ruby-kramdown ruby-mustache ruby-nokogiri" + +ADDITIONAL=" +fix-ruby-3.1-compat.patch +mustache-1.X.patch +" + +prepare () { + apply_patches +} + +build() { + gem build $_gemname.gemspec +} + +check() { + rake test +} + +package() { + local gemdir="$PKG_DEST/$(ruby -e 'puts Gem.default_dir')" + local geminstdir="$gemdir/gems/$_gemname-$PKG_VER" + + gem install --local \ + --install-dir "$gemdir" \ + --bindir "$PKG_DEST/usr/bin" \ + --ignore-dependencies \ + --no-document \ + --verbose \ + $_gemname + + install -D -m 644 "$geminstdir"/man/ronn.1 \ + "$PKG_DEST"/usr/share/man/man1/ronn.1 + install -D -m 644 "$geminstdir"/man/ronn-format.7 \ + "$PKG_DEST"/usr/share/man/man7/ronn-format.7 + + # Remove unnecessary files and rubbish... + cd "$gemdir" + rm -r cache build_info doc extensions plugins + cd "$geminstdir" + rm -r test man Rakefile [A-Z][A-Z][A-Z]* +} + -- cgit v1.2.1