aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-fcgi/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-15 10:00:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-15 14:22:18 +0000
commit7fdaf8748466bca65c11f725de0f4dfbf7365007 (patch)
tree6d483fb831f8dbd47eb911e2a9d6f9fcf464ce99 /main/ruby-fcgi/APKBUILD
parentae834bdd953bfe659ac744fe85d1b28c3bf2d8cc (diff)
downloadaports-7fdaf8748466bca65c11f725de0f4dfbf7365007.tar.bz2
aports-7fdaf8748466bca65c11f725de0f4dfbf7365007.tar.xz
main/ruby-fcgi: rebuild against ruby 1.9
Diffstat (limited to 'main/ruby-fcgi/APKBUILD')
-rw-r--r--main/ruby-fcgi/APKBUILD32
1 files changed, 18 insertions, 14 deletions
diff --git a/main/ruby-fcgi/APKBUILD b/main/ruby-fcgi/APKBUILD
index 9bb0ea3016..e557874312 100644
--- a/main/ruby-fcgi/APKBUILD
+++ b/main/ruby-fcgi/APKBUILD
@@ -1,32 +1,36 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
-# Maintainer:
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ruby-fcgi
-_realname=fcgi
+_gemname=fcgi
pkgver=0.8.8
-pkgrel=0
+pkgrel=1
pkgdesc="Ruby fast CGI support"
url="http://rubygems.org/gems/fcgi"
arch="all"
license="GPL"
depends="ruby"
depends_dev="fcgi-dev ruby-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="395e5e069edab8cb64cf3db4a6a81c90 fcgi-0.8.8.gem"