aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-railties4.2/APKBUILD
blob: 6dadc74c2c668c746cd3f106572a9c8d408aa0bf (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.1
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="a24a5e3380945716de414aa25209171b  railties-4.2.1.gem"
sha256sums="a01ce5513806d712cca8ed60429493d18093eff680201e2e288602c1405e2e8b  railties-4.2.1.gem"
sha512sums="40d3316a0fdaf212391e25a894b6d8b7a74e80eda6d81c620d3bb62ee4f6644d1585a7f151257122e2ea12b4bdb6807f71192c7794d94f10ed7c95d21c601361  railties-4.2.1.gem"