/[gentoo-x86]/dev-ruby/radiant/radiant-1.0.0_rc3.ebuild
Gentoo

Contents of /dev-ruby/radiant/radiant-1.0.0_rc3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Dec 8 19:41:44 2011 UTC (2 years, 8 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump; add a dependency over the new revision of activesupport so that it actually works (and force a rebuild due to bundler).

(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/radiant/radiant-1.0.0_rc3.ebuild,v 1.1 2011/12/05 20:52:44 flameeyes Exp $
4
5 EAPI="2"
6 USE_RUBY="ruby18"
7
8 RUBY_FAKEGEM_VERSION=${PV/_/.}
9
10 RUBY_FAKEGEM_TASK_DOC=""
11 RUBY_FAKEGEM_TASK_TEST="spec cucumber"
12 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md CONTRIBUTORS.md README.md"
13
14 # All these files are needed because the generator expect to install them.
15 RUBY_FAKEGEM_EXTRAINSTALL="CHANGELOG.md CONTRIBUTORS.md INSTALL.md LICENSE.md README.md Gemfile Gemfile.lock Rakefile app config db log public script vendor"
16
17 inherit ruby-fakegem
18
19 DESCRIPTION="A no-fluff, open source content management system"
20 HOMEPAGE="http://radiantcms.org/"
21
22 LICENSE="MIT"
23 SLOT="0"
24 KEYWORDS="~amd64"
25 IUSE=""
26
27 # Testing depends on a working database and a bundled version of Rails 2.3.8
28 # Needs more work later.
29 RESTRICT="test"
30
31 #ruby_add_bdepend "test? ( dev-db/sqlite3-ruby dev-ruby/rspec dev-util/cucumber )"
32
33 ruby_add_rdepend ">=dev-ruby/redcloth-4.0.0
34 >=dev-ruby/rack-1.1.0
35 >=dev-ruby/rails-2.3.14:2.3
36 >=dev-ruby/highline-1.5.1
37 >=dev-ruby/radius-0.5.1
38 =dev-ruby/will_paginate-2.3*
39 dev-ruby/rack-cache
40 >=dev-ruby/sqlite3-ruby-1.3.4
41 dev-ruby/bundler"
42
43 # Remove code from vendor that we support as an external dependency.
44 all_ruby_prepare() {
45 rm -rf vendor/{highline,radius,rails,redcloth} Gemfile.lock
46
47 epatch "${FILESDIR}"/${P}-deps.patch
48 }
49
50 each_ruby_compile() {
51 # we force a lock here so that it actually works without trying to
52 # write in /usr as user.
53 bundle install --local || die
54 }
55
56 each_ruby_test() {
57 cp config/database.sqlite.yml config/database.yml || die "Unable to provide database.yml for testing."
58 ${RUBY} -S rake db:migrate
59 each_fakegem_test
60 rm config/database.yml || die "Unable to remove testing database.yml."
61 }

  ViewVC Help
Powered by ViewVC 1.1.20