From 6e449286f26fccc7a6c57daee4ee9168141b6f72 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 25 Oct 2012 06:24:50 +0000 Subject: main/ruby-mocha: new aport Mocking and stubbing library with JMock/SchMock syntax http://gofreerange.com/mocha/docs --- main/ruby-mocha/APKBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 main/ruby-mocha/APKBUILD diff --git a/main/ruby-mocha/APKBUILD b/main/ruby-mocha/APKBUILD new file mode 100644 index 0000000000..b62b63c78f --- /dev/null +++ b/main/ruby-mocha/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: Natanael Copa +_gemname=mocha +pkgname=ruby-$_gemname +pkgver=0.12.7 +pkgrel=0 +pkgdesc="Mocking and stubbing library with JMock/SchMock syntax" +url="http://gofreerange.com/mocha/docs" +arch="noarch" +license="MIT" +depends="ruby" +depends_dev= +makedepends="$depends_dev ruby-gems" +install="" +subpackages="" +source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" + +_builddir="$srcdir"/$_realname-$pkgver +build() { + return 0 +} + +package() { + 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 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths +} + +md5sums="a8a04b30f2d3de001853919569475287 mocha-0.12.7.gem" -- cgit v1.2.3