summaryrefslogtreecommitdiffstats
path: root/main/ruby-tilt/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-15 12:55:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-15 14:22:19 +0000
commitb1d9cb8f38718d3f90a779637a61095a2b6591aa (patch)
tree89f75356d4004f2d1dda3b5bb23f9a58aea7a470 /main/ruby-tilt/APKBUILD
parentc7f6b2e5d66b8a8f38131c605b5c4cd0fc65bc07 (diff)
downloadaports-b1d9cb8f38718d3f90a779637a61095a2b6591aa.tar.bz2
aports-b1d9cb8f38718d3f90a779637a61095a2b6591aa.tar.xz
main/ruby-tilt: new aport
Generic interface to multiple Ruby template engines http://github.com/rtomayko/tilt/
Diffstat (limited to 'main/ruby-tilt/APKBUILD')
-rw-r--r--main/ruby-tilt/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/ruby-tilt/APKBUILD b/main/ruby-tilt/APKBUILD
new file mode 100644
index 000000000..707f9ea3d
--- /dev/null
+++ b/main/ruby-tilt/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_gemname=tilt
+pkgname=ruby-$_gemname
+pkgver=1.3.3
+pkgrel=0
+pkgdesc="Generic interface to multiple Ruby template engines"
+url="http://github.com/rtomayko/tilt/"
+arch="noarch"
+license="MIT"
+depends="ruby"
+depends_dev=
+makedepends="$depends_dev ruby-gems"
+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="499458da7755dddaee177922f1641659 tilt-1.3.3.gem"