aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-shoulda
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2013-03-08 22:34:30 +0000
committerFabian Affolter <fabian@affolter-engineering.ch>2013-03-11 14:07:28 +0000
commit3f3eafd3609ae335a67ca095788792c561aeb8dd (patch)
tree0be9f6d829d6b7eec8da7daaff4e79591b875ac3 /testing/ruby-shoulda
parent9782b1c109ce9945fc31baa405eaecea8e95d7c8 (diff)
downloadaports-3f3eafd3609ae335a67ca095788792c561aeb8dd.tar.bz2
aports-3f3eafd3609ae335a67ca095788792c561aeb8dd.tar.xz
testing/ruby-shoulda: upgrade to 3.3.2
Diffstat (limited to 'testing/ruby-shoulda')
-rw-r--r--testing/ruby-shoulda/APKBUILD37
1 files changed, 21 insertions, 16 deletions
diff --git a/testing/ruby-shoulda/APKBUILD b/testing/ruby-shoulda/APKBUILD
index 97738c3549..d405c56f90 100644
--- a/testing/ruby-shoulda/APKBUILD
+++ b/testing/ruby-shoulda/APKBUILD
@@ -1,35 +1,40 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
_gemname=shoulda
pkgname=ruby-shoulda
-pkgver=2.11.0
+pkgver=3.3.2
pkgrel=0
pkgdesc="Making tests easy on the fingers and eyes"
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="a2b7206209fca2d5397ed94ce36256bb shoulda-2.11.0.gem"
+package() {
+ mkdir -p "$pkgdir" || return 1
+ cp -ra "$_builddir"/* "$pkgdir"/ || return 1
+}
+
+md5sums="a925abc6f2f556fd31615e217e52bdf1 shoulda-3.3.2.gem"
+sha256sums="52e70b71cbfb7c01dace14e268a62d86c21ddd1e5ec0116c8b1e632d8e04e412 shoulda-3.3.2.gem"
+sha512sums="31a5066a1e17e911fa1e0fce1ebc57fa343a5e57601002280fab3762212e5e6394a611a618ea27deb6ec28655b685fd1a77e84c31feb165fad43bdc010524b02 shoulda-3.3.2.gem"