aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-bundler
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-15 13:34:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-15 14:22:19 +0000
commitd4c81f7745e5d5e215d087a558e89301fd80e74b (patch)
tree868f51f1ce6a6de11fd94b09050e989ed5762fe1 /main/ruby-bundler
parent12298dd2d2405a2bc6208222237a7ec2062a26d2 (diff)
downloadaports-d4c81f7745e5d5e215d087a558e89301fd80e74b.tar.bz2
aports-d4c81f7745e5d5e215d087a558e89301fd80e74b.tar.xz
main/ruby-bundler: new aport
A tool manage an applications dependencies across all machines" http://gembundler.com/
Diffstat (limited to 'main/ruby-bundler')
-rw-r--r--main/ruby-bundler/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/ruby-bundler/APKBUILD b/main/ruby-bundler/APKBUILD
new file mode 100644
index 0000000000..da55f05506
--- /dev/null
+++ b/main/ruby-bundler/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_gemname=bundler
+pkgname=ruby-$_gemname
+pkgver=1.2.1
+pkgrel=0
+pkgdesc="Manage an application's gem dependencies"
+url="http://gembundler.com/"
+arch="noarch"
+license="MIT"
+depends="ruby ruby-i18n ruby-mime-types ruby-treetop"
+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="76a43745352365221b2b7ad06e7a409a bundler-1.2.1.gem"