From 919c63599dd494f083f3d669cb2cbb4a7c6deeea Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Thu, 14 Apr 2011 01:38:02 -0500 Subject: testing/ruby-fastthread: new aport Optimized replacement for thread.rb primitives http://rubygems.org/gems/fastthread --- testing/ruby-fastthread/APKBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 testing/ruby-fastthread/APKBUILD (limited to 'testing/ruby-fastthread') diff --git a/testing/ruby-fastthread/APKBUILD b/testing/ruby-fastthread/APKBUILD new file mode 100644 index 0000000000..1b1c2caed5 --- /dev/null +++ b/testing/ruby-fastthread/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Matt Smith +# Maintainer: Matt Smith +pkgname=ruby-fastthread +_realname=fastthread +pkgver=1.0.7 +pkgrel=0 +pkgdesc="Optimized replacement for thread.rb primitives" +url="http://rubygems.org/gems/fastthread" +arch="all" +license="GPL" +depends="ruby" +depends_dev= +makedepends="$depends_dev ruby-dev ruby rubygems" +install="" +subpackages="" +source="" + +_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/ +} + +package() { + mkdir -p "$pkgdir" || return 1 + cp -ra "$_builddir"/* "$pkgdir"/ || return 1 +} -- cgit v1.2.3