summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2009-04-25 12:57:15 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2009-04-25 12:57:15 +0000
commit3abf8b95d9cae8ab9867ee048eafca785e1c0f1d (patch)
treec0ecf3e8d64115f7f008227aa75ffb435125d1c8 /dev-ruby
parentInitial import of tidy_table, test dependency for sparklines. (diff)
downloadgentoo-2-3abf8b95d9cae8ab9867ee048eafca785e1c0f1d.tar.gz
gentoo-2-3abf8b95d9cae8ab9867ee048eafca785e1c0f1d.tar.bz2
gentoo-2-3abf8b95d9cae8ab9867ee048eafca785e1c0f1d.zip
Initial import of the sparklines graph generator, with fake gemspec and running testsuite.
(Portage version: 2.2_rc31/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/sparklines/ChangeLog11
-rw-r--r--dev-ruby/sparklines/files/sparklines.gemspec11
-rw-r--r--dev-ruby/sparklines/metadata.xml5
-rw-r--r--dev-ruby/sparklines/sparklines-0.5.2.ebuild52
4 files changed, 79 insertions, 0 deletions
diff --git a/dev-ruby/sparklines/ChangeLog b/dev-ruby/sparklines/ChangeLog
new file mode 100644
index 000000000000..c9de2042ea0a
--- /dev/null
+++ b/dev-ruby/sparklines/ChangeLog
@@ -0,0 +1,11 @@
+# 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.1 2009/04/25 12:57:15 flameeyes Exp $
+
+*sparklines-0.5.2 (25 Apr 2009)
+
+ 25 Apr 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+ +files/sparklines.gemspec, +metadata.xml, +sparklines-0.5.2.ebuild:
+ Initial import of the sparklines graph generator, with fake gemspec and
+ running testsuite.
+
diff --git a/dev-ruby/sparklines/files/sparklines.gemspec b/dev-ruby/sparklines/files/sparklines.gemspec
new file mode 100644
index 000000000000..7112bc08cda7
--- /dev/null
+++ b/dev-ruby/sparklines/files/sparklines.gemspec
@@ -0,0 +1,11 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = "sparklines"
+ s.version = "@VERSION@"
+ s.author = "Geoffrey Grosenbach"
+ s.description = "Tiny graphs."
+ s.email = 'boss@topfunky.com'
+ s.summary = "Tiny graphs."
+ s.homepage = "http://nubyonrails.com/pages/sparklines"
+end
diff --git a/dev-ruby/sparklines/metadata.xml b/dev-ruby/sparklines/metadata.xml
new file mode 100644
index 000000000000..852136183369
--- /dev/null
+++ b/dev-ruby/sparklines/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ruby</herd>
+</pkgmetadata>
diff --git a/dev-ruby/sparklines/sparklines-0.5.2.ebuild b/dev-ruby/sparklines/sparklines-0.5.2.ebuild
new file mode 100644
index 000000000000..41a6c6e96780
--- /dev/null
+++ b/dev-ruby/sparklines/sparklines-0.5.2.ebuild
@@ -0,0 +1,52 @@
+# 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.ebuild,v 1.1 2009/04/25 12:57:15 flameeyes 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"
+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` ]] && $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"
+
+ insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["vendorlibdir"]' | sed -e 's:vendor_ruby:gems:')/specifications
+ sed -e "s:@VERSION@:${PV}:" "${FILESDIR}"/${PN}.gemspec > "${T}"/${P}.gemspec
+ doins "${T}"/${P}.gemspec || die "Unable to install fake gemspec"
+}