aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-actionpack
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-15 09:43:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-15 14:22:19 +0000
commit0b6343846b5c569120bc303129ab22f5fafc215a (patch)
tree35f38af30608d4e5c052c86bec672d0fce613832 /main/ruby-actionpack
parentd57e17d4bed999c15608dd93c8dfd453f08dc17e (diff)
downloadaports-0b6343846b5c569120bc303129ab22f5fafc215a.tar.bz2
aports-0b6343846b5c569120bc303129ab22f5fafc215a.tar.xz
main/ruby-actionpack: upgrade to 3.2.8
Diffstat (limited to 'main/ruby-actionpack')
-rw-r--r--main/ruby-actionpack/APKBUILD37
1 files changed, 21 insertions, 16 deletions
diff --git a/main/ruby-actionpack/APKBUILD b/main/ruby-actionpack/APKBUILD
index 1dd66953dc..a728879007 100644
--- a/main/ruby-actionpack/APKBUILD
+++ b/main/ruby-actionpack/APKBUILD
@@ -1,32 +1,37 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
-# Maintainer:
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ruby-actionpack
-_realname=actionpack
-pkgver=2.3.14
+_gemname=actionpack
+pkgver=3.2.8
pkgrel=0
pkgdesc="Eases web-request routing, handling, and response as a half-way front, half-way page controller"
url="http://rubygems.org/gems/actionpack"
-arch="all"
+arch="noarch"
license="GPL"
-depends="ruby"
+depends="ruby ruby-activemodel ruby-activesupport ruby-builder ruby-erubis
+ ruby-journey ruby-rack ruby-rack-cache ruby-rack-test ruby-sprockets"
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="0ace7e6119cd5edcfc9cd66b5fd791ee actionpack-3.2.8.gem"