aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-15 09:40:42 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-15 14:22:18 +0000
commit88782882702d03d74a2bcdebbf6b9ece0f427ba1 (patch)
treec1b6e0ad2ec71ce1b8c437b07521aa56fdddadfc /main
parentaffc941bf3261e94db8547483aa27956d3f78c2c (diff)
downloadaports-88782882702d03d74a2bcdebbf6b9ece0f427ba1.tar.bz2
aports-88782882702d03d74a2bcdebbf6b9ece0f427ba1.tar.xz
main/ruby-rack: upgrade to 1.4.1
Diffstat (limited to 'main')
-rw-r--r--main/ruby-rack/APKBUILD31
1 files changed, 18 insertions, 13 deletions
diff --git a/main/ruby-rack/APKBUILD b/main/ruby-rack/APKBUILD
index 150aefc861..100afd9095 100644
--- a/main/ruby-rack/APKBUILD
+++ b/main/ruby-rack/APKBUILD
@@ -1,31 +1,36 @@
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=ruby-rack
-_realname=rack
-pkgver=1.1.2
-pkgrel=1
+_gemname=rack
+pkgver=1.4.1
+pkgrel=0
pkgdesc="Rack is a Ruby Webserver Interface"
url="http://rack.rubyforge.org/"
arch="noarch"
license="MIT"
depends="ruby"
depends_dev=""
-makedepends="$depends_dev rubygems"
+makedepends="$depends_dev ruby-gems"
install=""
subpackages=""
-source=""
+source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
_builddir="$srcdir"/$_realname-$pkgver
build() {
- mkdir -p "$_builddir" || return 1
- local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
- gem install $_realname -v $pkgver -i "$_builddir"$_gemdir \
- --ignore-dependencies --verbose \
- --no-rdoc --no-ri || return 1
- rm -rf "$_builddir"$_gemdir/cache/
+ return 0
}
package() {
- mkdir -p "$pkgdir" || return 1
- cp -ra "$_builddir"/* "$pkgdir"/ || return 1
+ 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="a278fe5208c2412b724d6eac432e2807 rack-1.4.1.gem"