summaryrefslogtreecommitdiff
path: root/repo/ruby-mustache/ruby-mustache.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-08-10 09:16:34 +0100
committerdavidovski <david@davidovski.xyz>2022-08-10 09:16:34 +0100
commitc1d3da9ca87c414100b1cb969e36b8d7d05b9a74 (patch)
tree1cd983a42e1a221991d09783e08c6c162d4be5cf /repo/ruby-mustache/ruby-mustache.xibuild
parent9a26d3fdc7fca2df6f824b56034ab9a823e898d8 (diff)
added ovmf, lolcat, spice, and squashfstools
Diffstat (limited to 'repo/ruby-mustache/ruby-mustache.xibuild')
-rw-r--r--repo/ruby-mustache/ruby-mustache.xibuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/repo/ruby-mustache/ruby-mustache.xibuild b/repo/ruby-mustache/ruby-mustache.xibuild
new file mode 100644
index 0000000..8074a81
--- /dev/null
+++ b/repo/ruby-mustache/ruby-mustache.xibuild
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+NAME="ruby-mustache"
+_gemname=mustache
+DESC="Logic-less Ruby templates"
+
+MAKEDEPS=""
+
+PKG_VER=1.1.1
+SOURCE="ruby-mustache-$PKG_VER.tar.gz::https://github.com/mustache/mustache/archive/v$PKG_VER.tar.gz"
+
+ADDITIONAL="
+fix-test-race-condition.patch
+skip-simplecov.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" \
+ --ignore-dependencies \
+ --no-document \
+ --verbose \
+ $_gemname
+
+ # Remove unnecessary files and rubbish...
+ cd "$gemdir"
+ rm -r cache build_info doc
+ cd "$geminstdir"
+ rm -r test man Rakefile *.md
+}
+