summaryrefslogtreecommitdiffstats
path: root/main/ruby-rails
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-15 13:51:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-15 14:22:19 +0000
commit9b5db0978a75f66418e81d2caef7faee69bf2657 (patch)
tree9e0a66cb120a54ecb88f699ec274740deaab0832 /main/ruby-rails
parenta250a9eadc82c7223318b26d75b757b03c21a0ee (diff)
downloadaports-9b5db0978a75f66418e81d2caef7faee69bf2657.tar.bz2
aports-9b5db0978a75f66418e81d2caef7faee69bf2657.tar.xz
main/ruby-rails: upgrade to 3.2.8
Diffstat (limited to 'main/ruby-rails')
-rw-r--r--main/ruby-rails/APKBUILD38
1 files changed, 21 insertions, 17 deletions
diff --git a/main/ruby-rails/APKBUILD b/main/ruby-rails/APKBUILD
index 020a9a3bc..866623c7c 100644
--- a/main/ruby-rails/APKBUILD
+++ b/main/ruby-rails/APKBUILD
@@ -1,33 +1,37 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
-# Maintainer:
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_gemname=rails
pkgname=ruby-rails
-_realname=rails
-pkgver=2.3.11
+pkgver=3.2.8
pkgrel=0
pkgdesc="Ruby full-stack web framework"
url="http://rubyonrails.org/"
-arch="all"
-license="GPL"
+arch="noarch"
+license="MIT"
depends="ruby ruby-actionmailer ruby-actionpack ruby-activerecord
- ruby-activeresource ruby-activesupport ruby-rake ruby-rack"
+ ruby-activeresource ruby-activesupport ruby-bundler ruby-railties"
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="a730726e81b94b306fc06183afdd6bba rails-3.2.8.gem"