aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-shoulda-context
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2013-03-08 22:36:47 +0000
committerFabian Affolter <fabian@affolter-engineering.ch>2013-03-11 14:07:28 +0000
commit9913dce8f922f3fbfe17f4bfe186e36b5fa7659c (patch)
treeb5be5247df41231ce2b34707b12ca321702d5d5d /testing/ruby-shoulda-context
parent3f3eafd3609ae335a67ca095788792c561aeb8dd (diff)
downloadaports-9913dce8f922f3fbfe17f4bfe186e36b5fa7659c.tar.bz2
aports-9913dce8f922f3fbfe17f4bfe186e36b5fa7659c.tar.xz
testing/ruby-shoulda-context: upgrade to 1.0.2
Diffstat (limited to 'testing/ruby-shoulda-context')
-rw-r--r--testing/ruby-shoulda-context/APKBUILD37
1 files changed, 21 insertions, 16 deletions
diff --git a/testing/ruby-shoulda-context/APKBUILD b/testing/ruby-shoulda-context/APKBUILD
index 4c4190990e..c561a828eb 100644
--- a/testing/ruby-shoulda-context/APKBUILD
+++ b/testing/ruby-shoulda-context/APKBUILD
@@ -1,35 +1,40 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
_gemname=shoulda-context
pkgname=ruby-shoulda-context
-pkgver=1.0.1
+pkgver=1.0.2
pkgrel=0
pkgdesc="Context framework extracted from Shoulda"
url="https://github.com/thoughtbot/shoulda"
arch="noarch"
license="MIT"
depends="ruby"
-depends_dev=
-makedepends="$depends_dev ruby-gems"
+depends_dev=""
+makedepends="ruby-dev ruby-gems"
install=""
subpackages=""
-source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
+source="http://rubygems.org/downloads/$_gemname-$pkgver.gem"
-_builddir="$srcdir"/$_realname-$pkgver
+_builddir="$srcdir"/$_gemname-$pkgver
build() {
- return 0
-}
-
-package() {
+ mkdir -p "$_builddir" || 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
+ gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \
+ --ignore-dependencies \
+ --verbose \
+ --no-rdoc \
+ --no-ri \
+ || return 1
rm -rf "$pkgdir"/$_gemdir/cache \
"$pkgdir"/$_geminstdir/ext \
"$pkgdir"/$_geminstdir/.require_paths
}
-md5sums="f7c0aaf97f462336cb0136635a679c4b shoulda-context-1.0.1.gem"
+package() {
+ mkdir -p "$pkgdir" || return 1
+ cp -ra "$_builddir"/* "$pkgdir"/ || return 1
+}
+
+md5sums="01ad6b98a2644bda239037553ef2ccce shoulda-context-1.0.2.gem"
+sha256sums="ee5559aa13248c70fdec6868a3c144adf7438c904c59d1a76b04a002e5151de5 shoulda-context-1.0.2.gem"
+sha512sums="557b85b4e4941bfa92595e8b5f1c1cd37c10f82c2f65a4f645a2f7c56043ef67f7a8ae67fc66aee4ce450261c38f595b455a711159789227cfce14a7e341e7df shoulda-context-1.0.2.gem"