From 66c326b6d65388e9f1003715ad9675505f01f9d2 Mon Sep 17 00:00:00 2001 From: davidovski Date: Fri, 3 Jun 2022 13:05:13 +0100 Subject: added porting from alpine linux --- repo/asciidoctor/asciidoctor.xibuild | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 repo/asciidoctor/asciidoctor.xibuild (limited to 'repo/asciidoctor') diff --git a/repo/asciidoctor/asciidoctor.xibuild b/repo/asciidoctor/asciidoctor.xibuild new file mode 100644 index 0000000..bd4f59f --- /dev/null +++ b/repo/asciidoctor/asciidoctor.xibuild @@ -0,0 +1,32 @@ +#!/bin/sh + +NAME="asciidoctor" +DESC="Converter for AsciiDoc to HTML5, DocBook 5 (or 4.5) and other formats" + +MAKEDEPS="ruby" + +PKG_VER=2.0.17 +SOURCE="https://rubygems.org/downloads/asciidoctor-$PKG_VER.gem" + +package() { + local gemdir="$(ruby -e 'puts Gem.default_dir')" + + gem install \ + --local \ + --install-dir "$PKG_DEST"/$gemdir \ + --ignore-dependencies \ + --verbose \ + --no-document \ + "$BUILD_ROOT"/asciidoctor-$PKG_VER.gem + + rm -rf "$PKG_DEST"/$gemdir/cache + + cd "$PKG_DEST" + local i; for i in usr/lib/ruby/gems/*/bin/*; do + if [ -e "$i" ]; then + mkdir -p "$PKG_DEST"/usr/bin + ln -s /$i "$PKG_DEST"/usr/bin/ + fi + done +} + -- cgit v1.2.1