aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-railties4.2/APKBUILD
blob: a7d73aaca58748ad7b9bb636e57152d15b8c691e (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
46
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=railties
pkgname=ruby-${_gemname}4.2
pkgver=4.2.3
pkgrel=0
pkgdesc="Rails internals: application bootup, plugins, generators, and rake tasks"
url="http://www.rubyonrails.org/"
arch="noarch"
license="MIT"
depends="ruby ruby-actionpack4.2 ruby-activesupport4.2
	ruby-rake ruby-thor"
depends_dev=
makedepends="$depends_dev ruby"
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="21330f84e308f173e0d37ebad99ac851  railties-4.2.3.gem"
sha256sums="29f993882585797ceac7b10938beb4c24d7bc3f56f5eeb1318224f43c52e3076  railties-4.2.3.gem"
sha512sums="2eb6ae079282dcafd20322d48190bb7411c0dd54be8159a488ca5b9944249d11c06a249cdfa5d3e85e0e1fc7d889b11d4d7eb4fde751b00d13f9920e0c4a88d0  railties-4.2.3.gem"