summaryrefslogtreecommitdiffstats
path: root/main/ruby-railties/APKBUILD
blob: 1384e85cd08d7ec3ba71b7737766371c24997ddb (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=railties
pkgname=ruby-$_gemname
pkgver=4.0.0
pkgrel=1
pkgdesc="Rails internals: application bootup, plugins, generators, and rake tasks"
url="http://www.rubyonrails.org/"
arch="noarch"
license="MIT"
depends="ruby ruby-actionpack ruby-activesupport ruby-rack-ssl ruby-rake
	ruby-rdoc 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
}

md5sums="2f1e894cd5391f4de00960e5fc729c78  railties-4.0.0.gem"
sha256sums="9e2e8cf21fae8ae7993bc956325075d05a6108f6dfab1ab205ffa055cef57e18  railties-4.0.0.gem"
sha512sums="7a9d5e25a446af8a3fd005d0f4991cb12442e1866f70d4dbb52bf8b8c0616187d0ac5797a9d6ff2f7438a09ab468f72d60fd84da26bc8d3d53a55de66e1652a0  railties-4.0.0.gem"