aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-activesupport/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-15 11:27:39 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-15 14:22:18 +0000
commiteed4de36e5f95632a03ea0461fe0dab2ae164ae8 (patch)
treec3677c9d7af6b57a14fc65339eae3934b86d4f49 /main/ruby-activesupport/APKBUILD
parent82b3ffbbad8c4d2ff71563a9c8344f29b47d65cd (diff)
downloadaports-eed4de36e5f95632a03ea0461fe0dab2ae164ae8.tar.bz2
aports-eed4de36e5f95632a03ea0461fe0dab2ae164ae8.tar.xz
main/ruby-activesupport: upgrade to 3.2.8
Diffstat (limited to 'main/ruby-activesupport/APKBUILD')
-rw-r--r--main/ruby-activesupport/APKBUILD36
1 files changed, 20 insertions, 16 deletions
diff --git a/main/ruby-activesupport/APKBUILD b/main/ruby-activesupport/APKBUILD
index 24df309d59..1e1b3a5f42 100644
--- a/main/ruby-activesupport/APKBUILD
+++ b/main/ruby-activesupport/APKBUILD
@@ -1,32 +1,36 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
-# Maintainer:
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ruby-activesupport
-_realname=activesupport
-pkgver=2.3.11
+_gemname=activesupport
+pkgver=3.2.8
pkgrel=0
pkgdesc="Utility classes and extension to the standard library"
url="https://rubyforge.org/projects/activesupport/"
-arch="all"
+arch="noarch"
license="GPL"
-depends="ruby"
+depends="ruby ruby-i18n ruby-multi_json"
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="65c4dc238e26ee7b92b705135452615e activesupport-3.2.8.gem"