summaryrefslogtreecommitdiff
blob: ed64366b8c8128b2dfcbbed748b01c68ef9fa66f (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rails/rails-0.11.0-r1.ebuild,v 1.3 2005/05/22 15:25:39 swegener Exp $

inherit ruby gems

USE_RUBY="ruby18"
DESCRIPTION="ruby on rails is a web-application and persistance framework"
HOMEPAGE="http://www.rubyonrails.org"
# The URL depends implicitly on the version, unfortunately. Even if you
# change the filename on the end, it still downloads the same file.
SRC_URI="http://rubyforge.org/frs/download.php/3590/${P}.gem"

LICENSE="Ruby"
SLOT="0"
KEYWORDS="~x86"

IUSE="mysql sqlite postgres fastcgi"
DEPEND="=dev-lang/ruby-1.8*
	>=dev-ruby/rake-0.4.15-r1
	>=dev-ruby/activerecord-1.9.0
	>=dev-ruby/actionmailer-0.8.0
	>=dev-ruby/actionwebservice-0.6.1
	fastcgi? ( >=dev-ruby/ruby-fcgi-0.8.5-r1 )
	sqlite? ( >=dev-ruby/sqlite-ruby-2.2.2 )
	mysql? ( >=dev-ruby/mysql-ruby-2.5 )
	postgres? ( >=dev-ruby/ruby-postgres-0.7.1 )"

src_install() {
	gems_src_install
	cd ${D}/usr/lib/ruby/gems/1.8/gems/${P}
	#Fixes fastcgi bug where RAILS_ROOT isn't defined
	epatch ${FILESDIR}/${P}-dispatch.fcgi.diff
}

pkg_postinst() {
	einfo "If you have an existing Rails 0.9.5 application you'd like to"
	einfo "upgrade to 0.11.0 please follow these instructions:"
	einfo "http://manuals.rubyonrails.com/read/book/15"
	einfo "*"
	einfo "If you need to upgrade an existing 0.10.* app to 0.11.0 cd to the app's"
	einfo "directory and run 'rails . --skip'"
}