blob: b31fa0ed44c81d42af2d401b38c0ef4aad0aa671 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/sh
NAME="asciidoctor"
DESC="Converter for AsciiDoc to HTML5, DocBook 5 (or 4.5) and other formats"
MAKEDEPS="ruby"
DEPS="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
}
|