diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-25 06:24:50 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-25 06:24:50 +0000 |
commit | 6e449286f26fccc7a6c57daee4ee9168141b6f72 (patch) | |
tree | 99aa255ba634a123c33bacc6e1ead9fcd1683465 /main/ruby-mocha/APKBUILD | |
parent | e006090622882985366cf9144d23911547c63126 (diff) | |
download | aports-6e449286f26fccc7a6c57daee4ee9168141b6f72.tar.bz2 aports-6e449286f26fccc7a6c57daee4ee9168141b6f72.tar.xz |
main/ruby-mocha: new aport
Mocking and stubbing library with JMock/SchMock syntax
http://gofreerange.com/mocha/docs
Diffstat (limited to 'main/ruby-mocha/APKBUILD')
-rw-r--r-- | main/ruby-mocha/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
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 <ncopa@alpinelinux.org> +_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" |