aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-mocha
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-03-25 14:27:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-03-26 14:21:41 +0000
commite02d7df06574b161ea06e5cd5ebb54ca10e2a5bf (patch)
treeb7b10a00808471c2b4d3a34e8b5237a4e51c3d71 /main/ruby-mocha
parent90bf580bd576be9cb1fd3d6ebf0eabcca010845c (diff)
downloadaports-e02d7df06574b161ea06e5cd5ebb54ca10e2a5bf.tar.bz2
aports-e02d7df06574b161ea06e5cd5ebb54ca10e2a5bf.tar.xz
main/ruby-mocha: rebuild against ruby 2.2 and fix bin symlinks
Diffstat (limited to 'main/ruby-mocha')
-rw-r--r--main/ruby-mocha/APKBUILD10
1 files changed, 9 insertions, 1 deletions
diff --git a/main/ruby-mocha/APKBUILD b/main/ruby-mocha/APKBUILD
index 178b02c0ed..7007707300 100644
--- a/main/ruby-mocha/APKBUILD
+++ b/main/ruby-mocha/APKBUILD
@@ -2,7 +2,7 @@
_gemname=mocha
pkgname=ruby-$_gemname
pkgver=1.1.0
-pkgrel=0
+pkgrel=1
pkgdesc="Mocking and stubbing library with JMock/SchMock syntax"
url="http://gofreerange.com/mocha/docs"
arch="noarch"
@@ -30,6 +30,14 @@ package() {
rm -rf "$pkgdir"/$_gemdir/cache \
"$pkgdir"/$_geminstdir/ext \
"$pkgdir"/$_geminstdir/.require_paths
+
+ cd "$pkgdir"
+ for i in usr/lib/ruby/gems/*/bin/*; do
+ if [ -e "$i" ]; then
+ mkdir -p "$pkgdir"/usr/bin
+ ln -s /$i "$pkgdir"/usr/bin/
+ fi
+ done
}
md5sums="191449b906fcffca8526f1203028b8e2 mocha-1.1.0.gem"