/[gentoo-x86]/dev-ruby/radiant/radiant-0.9.1-r2.ebuild
Gentoo

Contents of /dev-ruby/radiant/radiant-0.9.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Sep 11 17:57:14 2012 UTC (22 months, 1 week ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Cleanup.

(Portage version: 2.1.11.9/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20