aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-spruz/APKBUILD
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2013-09-07 19:13:28 +0000
committerBartłomiej Piotrowski <b@bpiotrowski.pl>2013-09-08 14:36:44 +0200
commit1416ca763ea1a916e5ddce14a4ccbfaeeb7f89f8 (patch)
tree9e36445c33144a9c86ec28372016e75160299b16 /testing/ruby-spruz/APKBUILD
parent0eb31ca41c4f0bab619ea7bf978167fdd9caecc0 (diff)
downloadaports-1416ca763ea1a916e5ddce14a4ccbfaeeb7f89f8.tar.bz2
aports-1416ca763ea1a916e5ddce14a4ccbfaeeb7f89f8.tar.xz
testing/ruby-spruz: upgrade to 0.2.13
Diffstat (limited to 'testing/ruby-spruz/APKBUILD')
-rw-r--r--testing/ruby-spruz/APKBUILD31
1 files changed, 19 insertions, 12 deletions
diff --git a/testing/ruby-spruz/APKBUILD b/testing/ruby-spruz/APKBUILD
index 4329cb690b..5e1221a29c 100644
--- a/testing/ruby-spruz/APKBUILD
+++ b/testing/ruby-spruz/APKBUILD
@@ -1,30 +1,37 @@
# Contributor: Matt Smith <mcs@darkregion.net>
-# Maintainer: Matt Smith <mcs@darkregion.net>
+# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=ruby-spruz
-_realname=spruz
-pkgver=0.2.5
+_gemname=spruz
+pkgver=0.2.13
pkgrel=0
pkgdesc="All the stuff that isn't good/big enough for a real library."
url="http://rubygems.org/gems/spruz"
arch="noarch"
license="MIT"
depends="ruby"
-depends_dev=
-makedepends="$depends_dev ruby-dev ruby rubygems"
+depends_dev="ruby-dev"
+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 || return 1
- rm -rf "$_builddir"$_gemdir/cache/
+ return 0
}
package() {
+ local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
+ local _geminstdir=$_gemdir/gems/$_gemname-$pkgver
mkdir -p "$pkgdir" || return 1
- cp -ra "$_builddir"/* "$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="06295f3d8047322201c2a1d1573c80ed spruz-0.2.13.gem"
+sha256sums="c195d5f7c4199f289c88687cfe3561b15367ec262a7767374eb2d969b9fe2e7a spruz-0.2.13.gem"
+sha512sums="544df856363e4d01b5bf7c37a5e92073e82a4b97607d0ca3e751353615a1321d0a4ade2ef503ab78e60491a12100e6b45d2ae3d1565d8fd91db47cffaf461629 spruz-0.2.13.gem"