diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/ruby-rack/APKBUILD | 31 |
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" |