diff options
author | davidovski <david@davidovski.xyz> | 2022-08-10 09:16:34 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-08-10 09:16:34 +0100 |
commit | c1d3da9ca87c414100b1cb969e36b8d7d05b9a74 (patch) | |
tree | 1cd983a42e1a221991d09783e08c6c162d4be5cf /repo/ruby-kramdown | |
parent | 9a26d3fdc7fca2df6f824b56034ab9a823e898d8 (diff) |
added ovmf, lolcat, spice, and squashfstools
Diffstat (limited to 'repo/ruby-kramdown')
-rw-r--r-- | repo/ruby-kramdown/gemspec.patch | 18 | ||||
-rw-r--r-- | repo/ruby-kramdown/ruby-kramdown.xibuild | 48 |
2 files changed, 66 insertions, 0 deletions
diff --git a/repo/ruby-kramdown/gemspec.patch b/repo/ruby-kramdown/gemspec.patch new file mode 100644 index 0000000..f90f36b --- /dev/null +++ b/repo/ruby-kramdown/gemspec.patch @@ -0,0 +1,18 @@ +--- a/Rakefile ++++ b/Rakefile +@@ -116,15 +116,9 @@ + end + + PKG_FILES = FileList.new([ +- 'AUTHORS', + 'bin/*', +- 'CONTRIBUTERS', +- 'COPYING', + 'data/**/*', + 'lib/**/*.rb', +- 'man/man1/kramdown.1', +- 'README.md', +- 'test/**/*', + 'VERSION', + ]) + diff --git a/repo/ruby-kramdown/ruby-kramdown.xibuild b/repo/ruby-kramdown/ruby-kramdown.xibuild new file mode 100644 index 0000000..e3dd94a --- /dev/null +++ b/repo/ruby-kramdown/ruby-kramdown.xibuild @@ -0,0 +1,48 @@ +#!/bin/sh + +NAME="ruby-kramdown" +_gemname=kramdown +DESC="A fast, pure Ruby Markdown superset converter" + +MAKEDEPS=" ruby-rake" + +PKG_VER=2.3.2 +SOURCE="https://github.com/gettalong/kramdown" + +ADDITIONAL=" +gemspec.patch +" + +prepare() { + apply_patches + + # Remove tests that require gem "stringex" (we don't have it in aports yet). + rm test/testcases/block/04_header/with_auto_ids.* +} + +build() { + rake gemspec + gem build $_gemname.gemspec +} + +check() { + rake test +} + +package() { + local gemdir="$PKG_DEST/$(ruby -e 'puts Gem.default_dir')" + + gem install \ + --local \ + --install-dir "$gemdir" \ + --bindir "$PKG_DEST/usr/bin" \ + --ignore-dependencies \ + --no-document \ + --verbose \ + $_gemname + + # Remove unnecessary files and rubbish... + cd "$gemdir" + rm -r cache build_info doc extensions +} + |