aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-06-03 06:39:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-06-03 06:40:05 +0000
commit010ee3097b80bbd2fe64f0b420f942cb4507d266 (patch)
treeabeca647c6933a4341cabdfbd51278a35d18f168
parent814339f454ff9877a32f370cd548617e3f5ee48d (diff)
downloadaports-010ee3097b80bbd2fe64f0b420f942cb4507d266.tar.bz2
aports-010ee3097b80bbd2fe64f0b420f942cb4507d266.tar.xz
testing/ruby-fastthread: build fix
-rw-r--r--testing/ruby-fastthread/APKBUILD32
1 files changed, 20 insertions, 12 deletions
diff --git a/testing/ruby-fastthread/APKBUILD b/testing/ruby-fastthread/APKBUILD
index 1b1c2caed5..8565378871 100644
--- a/testing/ruby-fastthread/APKBUILD
+++ b/testing/ruby-fastthread/APKBUILD
@@ -1,30 +1,38 @@
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=ruby-fastthread
-_realname=fastthread
+_gemname=fastthread
pkgver=1.0.7
-pkgrel=0
+pkgrel=1
pkgdesc="Optimized replacement for thread.rb primitives"
url="http://rubygems.org/gems/fastthread"
-arch="all"
+arch="noarch"
license="GPL"
depends="ruby"
-depends_dev=
-makedepends="$depends_dev ruby-dev ruby rubygems"
+depends_dev=""
+makedepends="$depends_dev ruby-dev"
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="16eb06dc3661c89301de6c73c71bb16e fastthread-1.0.7.gem"
+sha256sums="bd1a8cea1dcf4ad590a8170dbb3468a94a4530fa9010b717a19ad78cae7a7600 fastthread-1.0.7.gem"
+sha512sums="71c6901ba691e3a4b6f77ad29f02be1fb0c4144226d0cd915b428301ca52f3e23ce23cd1e90696dbc31960ae8e9582eb751a5eeacf24386ac033ffab08807ad5 fastthread-1.0.7.gem"