summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-05-27 14:30:46 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2014-05-27 16:28:25 +0200
commit6ccfb74e48c423247e03c5b70d262e1071145af4 (patch)
tree37185932474c80d53de1569cc98b2a768f5c4d8c
parent9af17ef196dd5df3cb46be6c50494ff50894300f (diff)
downloadaports-6ccfb74e48c423247e03c5b70d262e1071145af4.tar.bz2
aports-6ccfb74e48c423247e03c5b70d262e1071145af4.tar.xz
testing/ruby-mustache: new aport
Inspired by ctemplate, Mustache is a framework-agnostic way to render logic-free views http://rubygems.org/gems/mustache
-rw-r--r--testing/ruby-mustache/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ruby-mustache/APKBUILD b/testing/ruby-mustache/APKBUILD
new file mode 100644
index 000000000..840ba1085
--- /dev/null
+++ b/testing/ruby-mustache/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Seung Soo Mun <hamletmun@gmail.com>
+# Maintainer:
+_gemname=mustache
+pkgname=ruby-$_gemname
+pkgver=0.99.5
+pkgrel=0
+pkgdesc="Inspired by ctemplate, Mustache is a framework-agnostic way to render logic-free views"
+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
+}
+
+md5sums="fa5bb8c782febd55b2f4f47809b40acf mustache-0.99.5.gem"
+sha256sums="c84be205017ada80aa4d4ad16b7af4bd89f840b26125a0e8eead5a914d279005 mustache-0.99.5.gem"
+sha512sums="fa85db8a2d0beea5bac93bf4214db0b65d275b7a01b4a16dbfcab0084d6a7701060d7b7cf090901830fbae2db5caa1973af427396407040053af9966782b55ef mustache-0.99.5.gem"