diff options
author | 2009-06-21 19:59:35 +0000 | |
---|---|---|
committer | 2009-06-21 19:59:35 +0000 | |
commit | 8b1105f3636310e3a884bb8c7d9e56cac3603f55 (patch) | |
tree | 453db66ca9ba3d5cb992650a3d03361fb424fb94 | |
parent | amd64 stable, security bug #273908 (diff) | |
download | gentoo-2-8b1105f3636310e3a884bb8c7d9e56cac3603f55.tar.gz gentoo-2-8b1105f3636310e3a884bb8c7d9e56cac3603f55.tar.bz2 gentoo-2-8b1105f3636310e3a884bb8c7d9e56cac3603f55.zip |
Fix fakegem code to work also with ruby 1.8.6.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
-rw-r--r-- | dev-ruby/sparklines/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/sparklines/sparklines-0.5.2-r1.ebuild | 55 |
2 files changed, 62 insertions, 1 deletions
diff --git a/dev-ruby/sparklines/ChangeLog b/dev-ruby/sparklines/ChangeLog index 42305e0c19bd..c4e51253c9ff 100644 --- a/dev-ruby/sparklines/ChangeLog +++ b/dev-ruby/sparklines/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/sparklines # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sparklines/ChangeLog,v 1.3 2009/06/13 07:20:10 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sparklines/ChangeLog,v 1.4 2009/06/21 19:59:35 graaff Exp $ + +*sparklines-0.5.2-r1 (21 Jun 2009) + + 21 Jun 2009; Hans de Graaff <graaff@gentoo.org> + +sparklines-0.5.2-r1.ebuild: + Fix fakegem code to also work with ruby 1.8.6. 27 May 2009; Hans de Graaff <graaff@gentoo.org> sparklines-0.5.2.ebuild: Also works on x86, keywording. diff --git a/dev-ruby/sparklines/sparklines-0.5.2-r1.ebuild b/dev-ruby/sparklines/sparklines-0.5.2-r1.ebuild new file mode 100644 index 000000000000..35541b8f18b6 --- /dev/null +++ b/dev-ruby/sparklines/sparklines-0.5.2-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sparklines/sparklines-0.5.2-r1.ebuild,v 1.1 2009/06/21 19:59:35 graaff Exp $ + +inherit ruby + +DESCRIPTION="Create sparklines, small graphs to be used inline in texts." +HOMEPAGE="http://sparklines.rubyforge.org/" +SRC_URI="mirror://rubyforge/${PN}/${P}.tgz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND="dev-ruby/rmagick" +DEPEND="doc? ( dev-ruby/rake + dev-ruby/hoe ) + test? ( dev-ruby/rake + dev-ruby/hoe + dev-ruby/tidy_table + dev-ruby/dust )" + +USE_RUBY="ruby18" + +src_compile() { + if use doc; then + rake rerocs || die "rake rerdoc failed" + fi +} + +src_test() { + for ruby in $USE_RUBY; do + [[ -n `type -p $ruby` ]] || continue + $ruby $(type -p rake) test || die "testsuite failed" + done +} + +src_install() { + pushd lib + doruby -r * || die "doruby failed" + popd + + if use doc; then + dohtml -r doc/* || die "dohtml failed" + fi + + dodoc History.txt README.txt || die "dodoc failed" + + # Note: this only works with 1.8 so if you need to make it work + # with 1.9 you better wait for ruby-fakegem.eclass. + insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')/../gems/1.8/specifications + sed -e "s:@VERSION@:${PV}:" "${FILESDIR}"/${PN}.gemspec > "${T}"/${P}.gemspec + doins "${T}"/${P}.gemspec || die "Unable to install fake gemspec" +} |