diff options
author | Hans de Graaff <graaff@gentoo.org> | 2010-06-01 07:59:45 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2010-06-01 07:59:45 +0000 |
commit | d5b25b93638a744532b28f9a839cbaa9bb9cab8f (patch) | |
tree | 0f27702f9912de3075ad5d9d6ef75cd20f9744bc /dev-ruby/radiant | |
parent | x86 stable wrt bug #320831 (diff) | |
download | historical-d5b25b93638a744532b28f9a839cbaa9bb9cab8f.tar.gz historical-d5b25b93638a744532b28f9a839cbaa9bb9cab8f.tar.bz2 historical-d5b25b93638a744532b28f9a839cbaa9bb9cab8f.zip |
Convert to ruby-fakegem. Remove some vendored packages and make them external dependencies instead.
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby/radiant')
-rw-r--r-- | dev-ruby/radiant/ChangeLog | 9 | ||||
-rw-r--r-- | dev-ruby/radiant/files/radiant-0.8.2-migration.patch | 19 | ||||
-rw-r--r-- | dev-ruby/radiant/radiant-0.8.2-r1.ebuild | 48 |
3 files changed, 75 insertions, 1 deletions
diff --git a/dev-ruby/radiant/ChangeLog b/dev-ruby/radiant/ChangeLog index 8b68dde33dd1..0b1a82b96f02 100644 --- a/dev-ruby/radiant/ChangeLog +++ b/dev-ruby/radiant/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-ruby/radiant # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/radiant/ChangeLog,v 1.16 2010/05/01 06:57:58 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/radiant/ChangeLog,v 1.17 2010/06/01 07:59:44 graaff Exp $ + +*radiant-0.8.2-r1 (01 Jun 2010) + + 01 Jun 2010; Hans de Graaff <graaff@gentoo.org> +radiant-0.8.2-r1.ebuild, + +files/radiant-0.8.2-migration.patch: + Convert to ruby-fakegem. Remove some vendored packages and make them + external dependencies instead. *radiant-0.8.2 (01 May 2010) diff --git a/dev-ruby/radiant/files/radiant-0.8.2-migration.patch b/dev-ruby/radiant/files/radiant-0.8.2-migration.patch new file mode 100644 index 000000000000..5ecf65d9872b --- /dev/null +++ b/dev-ruby/radiant/files/radiant-0.8.2-migration.patch @@ -0,0 +1,19 @@ +--- db/migrate/20081203140407_add_indexes.rb.orig 2010-06-01 09:34:51.588558179 +0200 ++++ db/migrate/20081203140407_add_indexes.rb 2010-06-01 09:35:27.728808367 +0200 +@@ -1,11 +1,11 @@ + class AddIndexes < ActiveRecord::Migration + def self.up +- add_index :pages, :class_name, :name => :pages_class_name +- add_index :pages, :parent_id, :name => :pages_parent_id +- add_index :pages, %w{slug parent_id}, :name => :pages_child_slug +- add_index :pages, %w{virtual status_id}, :name => :pages_published ++ add_index :pages, :class_name, :name => 'pages_class_name' ++ add_index :pages, :parent_id, :name => 'pages_parent_id' ++ add_index :pages, %w{slug parent_id}, :name => 'pages_child_slug' ++ add_index :pages, %w{virtual status_id}, :name => 'pages_published' + +- add_index :page_parts, %w{page_id name}, :name => :parts_by_page ++ add_index :page_parts, %w{page_id name}, :name => 'parts_by_page' + end + + def self.down diff --git a/dev-ruby/radiant/radiant-0.8.2-r1.ebuild b/dev-ruby/radiant/radiant-0.8.2-r1.ebuild new file mode 100644 index 000000000000..e3935d0fb12b --- /dev/null +++ b/dev-ruby/radiant/radiant-0.8.2-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/radiant/radiant-0.8.2-r1.ebuild,v 1.1 2010/06/01 07:59:44 graaff Exp $ + +EAPI="2" +USE_RUBY="ruby18" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_TASK_TEST="spec cucumber" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG CONTRIBUTORS README" +RUBY_FAKEGEM_EXTRAINSTALL="app config db public script vendor" + +inherit ruby-fakegem + +DESCRIPTION="A no-fluff, open source content management system" +HOMEPAGE="http://radiantcms.org/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RUBY_PATCHES=( "${P}-migration.patch" ) + +# Testing depends on a working database but creating this currently +# fails. This may be breakage related to Rails 2.3.8. Further +# investigation needed. +RESTRICT="test" + +#ruby_add_bdepend "test? ( dev-db/sqlite3-ruby dev-ruby/rspec dev-util/cucumber )" + +ruby_add_rdepend ">=dev-ruby/redcloth-4.0.0 + >=dev-ruby/rack-1.0.0 + =dev-ruby/rails-2.3* + >=dev-ruby/highline-1.5.1 + >=dev-ruby/radius-0.5.1" + +# Remove code from vendor that we support as an external dependency. +all_ruby_prepare() { + rm -rf vendor/{highline,radius,rails,redcloth} || die "Unable to remove vendored code." +} + +#each_ruby_test() { +# cp config/database.sqlite.yml config/database.yml || die "Unable to provide database.yml for testing." +# ${RUBY} -S rake db:migrate +# each_fakegem_test +# rm config/database.yml || die "Unable to remove testing database.yml." +#} |