From 0fd2ad3f1dde8cb3587be55cf1ad6bf6e6513c79 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 26 Mar 2015 14:17:27 +0000 Subject: main/asciidoctor: move from testing --- main/asciidoctor/APKBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 main/asciidoctor/APKBUILD (limited to 'main/asciidoctor') diff --git a/main/asciidoctor/APKBUILD b/main/asciidoctor/APKBUILD new file mode 100644 index 0000000000..a9f9f465c0 --- /dev/null +++ b/main/asciidoctor/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Seung Soo Mun +# Maintainer: Natanael Copa +_gemname=asciidoctor +pkgname=$_gemname +pkgver=1.5.2 +pkgrel=0 +pkgdesc="processor for converting AsciiDoc markup into HTML 5, DocBook 4.5 and other formats" +url="http://rubygems.org/gems/$_gemname" +arch="noarch" +license="MIT" +depends="ruby" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="" +source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" + +_builddir="$srcdir"/$_realname-$pkgver + +build() { + return 0 +} + +package() { + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + local _geminstdir=$_gemdir/gems/$_gemname-$pkgver + mkdir -p "$pkgdir" || return 1 + + gem install --local --install-dir "$pkgdir"/$_gemdir \ + --ignore-dependencies --verbose --no-rdoc --no-ri \ + "$srcdir"/$_gemname-$pkgver.gem || return 1 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths + + cd "$pkgdir" + for i in usr/lib/ruby/gems/*/bin/*; do + if [ -e "$i" ]; then + mkdir -p "$pkgdir"/usr/bin + ln -s /$i "$pkgdir"/usr/bin/ + fi + done +} + +md5sums="19e93c0003301e0188dedde3924fa39d asciidoctor-1.5.2.gem" +sha256sums="c987aa9d9ad1fd1135a51d28cc3795a217d34bacc2606e13e13638bbe54a4943 asciidoctor-1.5.2.gem" +sha512sums="763c657add887961fb6a6806c803e5c0fbcc92a4ecbfabb14e8f9acf037c4b7c9316ed11788c9e671cc82d711faadc17d597e1bc4b1d27b9b0f1cc84442dd3cf asciidoctor-1.5.2.gem" -- cgit v1.2.3