aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2013-06-11 15:25:44 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2013-06-11 15:25:44 +0000
commitaa183f7dac38494a6618cefc6cde4a5a71258cef (patch)
tree4ca683348e6456888b0b235823c07ab526138707 /testing
parent7145b9ac4068b4ed0f12c137b5e4a5cf3dfc0c96 (diff)
downloadaports-aa183f7dac38494a6618cefc6cde4a5a71258cef.tar.bz2
aports-aa183f7dac38494a6618cefc6cde4a5a71258cef.tar.xz
testing/ruby-sinatra: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/ruby-sinatra/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ruby-sinatra/APKBUILD b/testing/ruby-sinatra/APKBUILD
new file mode 100644
index 0000000000..a5028329b6
--- /dev/null
+++ b/testing/ruby-sinatra/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_gemname=sinatra
+pkgname=ruby-$_gemname
+pkgver=1.4.3
+pkgrel=0
+pkgdesc="Sinatra is a DSL for quickly creating web applications in Ruby with minimal effort."
+url="https://rubygems.org/gems/sinatra"
+arch="noarch"
+license="GPL"
+depends="ruby ruby-tilt ruby-rack ruby-rack-protection"
+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="669eeccc2d8ab4931668eaa555ca2e64 sinatra-1.4.3.gem"
+sha256sums="1561dfa634e54e37a1d0cea2291a64f2d2dae34c1c4e875ab8e87b9df9b938a9 sinatra-1.4.3.gem"
+sha512sums="b7021f0138abbf69fa276f0a84000f66cf320ab03d0c13073070f9976917232d3b6204660bfa1e8cbe3f43de35b023480d77555b79c31380eba8c4144a9153de sinatra-1.4.3.gem"