| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rails/rails-2.3.14.ebuild,v 1.5 2011/08/27 19:09:48 armin76 Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
USE_RUBY="ruby18 ree18"
|
| 7 |
|
| 8 |
RUBY_FAKEGEM_EXTRAINSTALL="builtin configs doc dispatches environments fresh_rakefile helpers html README"
|
| 9 |
RUBY_FAKEGEM_EXTRADOC="README CHANGELOG"
|
| 10 |
|
| 11 |
RUBY_FAKEGEM_BINWRAP=""
|
| 12 |
|
| 13 |
# gem lacks tests
|
| 14 |
RUBY_FAKEGEM_TASK_TEST=""
|
| 15 |
|
| 16 |
inherit ruby-fakegem
|
| 17 |
|
| 18 |
DESCRIPTION="ruby on rails is a web-application and persistance framework"
|
| 19 |
HOMEPAGE="http://www.rubyonrails.org"
|
| 20 |
|
| 21 |
LICENSE="MIT"
|
| 22 |
SLOT="2.3"
|
| 23 |
KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
| 24 |
|
| 25 |
IUSE=""
|
| 26 |
|
| 27 |
RDEPEND=">=app-admin/eselect-rails-0.15"
|
| 28 |
|
| 29 |
ruby_add_rdepend ">=dev-ruby/rake-0.8.3
|
| 30 |
dev-ruby/rdoc
|
| 31 |
~dev-ruby/activerecord-${PV}
|
| 32 |
~dev-ruby/activeresource-${PV}
|
| 33 |
~dev-ruby/activesupport-${PV}
|
| 34 |
~dev-ruby/actionmailer-${PV}
|
| 35 |
~dev-ruby/actionpack-${PV}"
|
| 36 |
ruby_add_bdepend "doc? ( dev-ruby/redcloth )"
|
| 37 |
|
| 38 |
all_ruby_prepare() {
|
| 39 |
sed -i -e '/horo/d' Rakefile || die "Could not remove reference to unavailable documentation template."
|
| 40 |
|
| 41 |
# Create the documentation that we create on the fly in a separate
|
| 42 |
# directory, since we need to install the doc directory for the
|
| 43 |
# rails script.
|
| 44 |
sed -i -e "s/rdoc_dir = 'doc'/rdoc_dir = 'rdoc'/" Rakefile || die
|
| 45 |
|
| 46 |
}
|
| 47 |
|
| 48 |
all_ruby_install() {
|
| 49 |
all_fakegem_install
|
| 50 |
|
| 51 |
ruby_fakegem_binwrapper rails rails-${PV}
|
| 52 |
|
| 53 |
if use doc; then
|
| 54 |
pushd rdoc
|
| 55 |
docinto api
|
| 56 |
dohtml -r *
|
| 57 |
popd
|
| 58 |
fi
|
| 59 |
}
|
| 60 |
|
| 61 |
pkg_postinst() {
|
| 62 |
elog "To select between slots of rails, use:"
|
| 63 |
elog "\teselect rails"
|
| 64 |
|
| 65 |
eselect rails update
|
| 66 |
}
|
| 67 |
|
| 68 |
pkg_postrm() {
|
| 69 |
eselect rails update
|
| 70 |
}
|