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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Jan 17 22:20:31 2014 UTC (8 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove dev-ruby/radiant (pmasked since 15th Dec 2013). It worked only with deprecated ruby18.

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/radiant/radiant-1.0.0_rc3-r1.ebuild,v 1.2 2012/08/16 03:55:50 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-1.3.4
41 dev-ruby/bundler
42 >=dev-ruby/activesupport-2.3.14-r1:2.3"
43
44 # Remove code from vendor that we support as an external dependency.
45 all_ruby_prepare() {
46 rm -rf vendor/{highline,radius,rails,redcloth} Gemfile.lock
47
48 epatch "${FILESDIR}"/${P}-deps.patch
49 }
50
51 each_ruby_compile() {
52 # we force a lock here so that it actually works without trying to
53 # write in /usr as user.
54 bundle install --local || die
55 }
56
57 each_ruby_test() {
58 cp config/database.sqlite.yml config/database.yml || die "Unable to provide database.yml for testing."
59 ${RUBY} -S rake db:migrate
60 each_fakegem_test
61 rm config/database.yml || die "Unable to remove testing database.yml."
62 }

  ViewVC Help
Powered by ViewVC 1.1.20