diff options
Diffstat (limited to 'testing/ruby-shoulda-matchers')
-rw-r--r-- | testing/ruby-shoulda-matchers/APKBUILD | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/testing/ruby-shoulda-matchers/APKBUILD b/testing/ruby-shoulda-matchers/APKBUILD index 7f33b124e7..c2edd24ffd 100644 --- a/testing/ruby-shoulda-matchers/APKBUILD +++ b/testing/ruby-shoulda-matchers/APKBUILD @@ -1,4 +1,5 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: _gemname=shoulda-matchers pkgname=ruby-shoulda-matchers pkgver=1.4.1 @@ -8,28 +9,32 @@ url="https://github.com/thoughtbot/shoulda" arch="noarch" license="MIT" depends="ruby ruby-activesupport" -depends_dev= -makedepends="$depends_dev ruby-gems" +depends_dev="" +makedepends="ruby-dev ruby-gems" install="" subpackages="" -source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" +source="http://rubygems.org/downloads/$_gemname-$pkgver.gem" -_builddir="$srcdir"/$_realname-$pkgver +_builddir="$srcdir"/$_gemname-$pkgver build() { - return 0 -} - -package() { + mkdir -p "$_builddir" || return 1 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 + gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \ + --ignore-dependencies \ + --verbose \ + --no-rdoc \ + --no-ri \ + || return 1 rm -rf "$pkgdir"/$_gemdir/cache \ "$pkgdir"/$_geminstdir/ext \ "$pkgdir"/$_geminstdir/.require_paths } +package() { + mkdir -p "$pkgdir" || return 1 + cp -ra "$_builddir"/* "$pkgdir"/ || return 1 +} + md5sums="03f66e5f1d2c76df58e1fd2dcc778454 shoulda-matchers-1.4.1.gem" +sha256sums="c35693cbfa84213212dffbc2c87487427ef364927340151329a842f0a06086b9 shoulda-matchers-1.4.1.gem" +sha512sums="8987e1ca8c91f504a32e3d46b33973f8f2001c31b931b5cd14089519dcf9391b064957424e03e6da5755aee0dd9688d0f6c1c8a2276af8e80369a89b83f9018f shoulda-matchers-1.4.1.gem" |