aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-bundler/APKBUILD
blob: 376beae47d29497a16266deceef5757d1a0d5605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=bundler
pkgname=ruby-$_gemname
pkgver=1.9.1
pkgrel=0
pkgdesc="Manage an application's gem dependencies"
url="http://gembundler.com/"
arch="noarch"
license="MIT"
depends="ruby ruby-io-console"
depends_dev=
makedepends="$depends_dev"
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
	
	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="b0559ab705fbbd91a029243557f0960b  bundler-1.9.1.gem"
sha256sums="55a9d7e34133130614c4552886fa4a480a33fb44f2479ebbee3b6ea33d2888ab  bundler-1.9.1.gem"
sha512sums="cd6ee9acf017f96693e4fbe4758dc0f9e55cc2a6d63101eeca478339f5a6a8cef96b8bc81d26aa610ef5111955af42973367d16a879f053401ecb84aa1878999  bundler-1.9.1.gem"