From f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 2 Feb 2023 14:10:02 +0000 Subject: Work --- skip/ruby-kramdown/gemspec.patch | 18 ++++++++++++ skip/ruby-kramdown/ruby-kramdown.xibuild | 47 ++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 skip/ruby-kramdown/gemspec.patch create mode 100644 skip/ruby-kramdown/ruby-kramdown.xibuild (limited to 'skip/ruby-kramdown') diff --git a/skip/ruby-kramdown/gemspec.patch b/skip/ruby-kramdown/gemspec.patch new file mode 100644 index 0000000..f90f36b --- /dev/null +++ b/skip/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/skip/ruby-kramdown/ruby-kramdown.xibuild b/skip/ruby-kramdown/ruby-kramdown.xibuild new file mode 100644 index 0000000..10885f9 --- /dev/null +++ b/skip/ruby-kramdown/ruby-kramdown.xibuild @@ -0,0 +1,47 @@ +#!/bin/sh + +NAME="ruby-kramdown" +_gemname=kramdown +DESC="A fast, pure Ruby Markdown superset converter" + +MAKEDEPS="ruby-rake" + +PKG_VER=2.3.2 +ver=REL_$(echo $PKG_VER | sed 's/\./_/g') +SOURCE="https://github.com/gettalong/kramdown/archive/$ver/ruby-kramdown-$PKG_VER.tar.gz" + +ADDITIONAL=" +gemspec.patch +" + +prepare() { + apply_patches && + 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 +} + -- cgit v1.2.1