From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-ruby/sparklines: metadata.xml ChangeLog sparklines-0.5.2.ebuild |
Date: | Sat, 25 Apr 2009 12:57:17 |
Message-Id: | E1LxhRT-00077I-Es@stork.gentoo.org |
1 | flameeyes 09/04/25 12:57:15 |
2 | |
3 | Added: metadata.xml ChangeLog sparklines-0.5.2.ebuild |
4 | Log: |
5 | Initial import of the sparklines graph generator, with fake gemspec and running testsuite. |
6 | (Portage version: 2.2_rc31/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-ruby/sparklines/metadata.xml |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/sparklines/metadata.xml?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/sparklines/metadata.xml?rev=1.1&content-type=text/plain |
13 | |
14 | Index: metadata.xml |
15 | =================================================================== |
16 | <?xml version="1.0" encoding="UTF-8"?> |
17 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
18 | <pkgmetadata> |
19 | <herd>ruby</herd> |
20 | </pkgmetadata> |
21 | |
22 | |
23 | |
24 | 1.1 dev-ruby/sparklines/ChangeLog |
25 | |
26 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/sparklines/ChangeLog?rev=1.1&view=markup |
27 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/sparklines/ChangeLog?rev=1.1&content-type=text/plain |
28 | |
29 | Index: ChangeLog |
30 | =================================================================== |
31 | # ChangeLog for dev-ruby/sparklines |
32 | # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
33 | # $Header: /var/cvsroot/gentoo-x86/dev-ruby/sparklines/ChangeLog,v 1.1 2009/04/25 12:57:15 flameeyes Exp $ |
34 | |
35 | *sparklines-0.5.2 (25 Apr 2009) |
36 | |
37 | 25 Apr 2009; Diego E. Pettenò <flameeyes@g.o> |
38 | +files/sparklines.gemspec, +metadata.xml, +sparklines-0.5.2.ebuild: |
39 | Initial import of the sparklines graph generator, with fake gemspec and |
40 | running testsuite. |
41 | |
42 | |
43 | |
44 | |
45 | 1.1 dev-ruby/sparklines/sparklines-0.5.2.ebuild |
46 | |
47 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/sparklines/sparklines-0.5.2.ebuild?rev=1.1&view=markup |
48 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/sparklines/sparklines-0.5.2.ebuild?rev=1.1&content-type=text/plain |
49 | |
50 | Index: sparklines-0.5.2.ebuild |
51 | =================================================================== |
52 | # Copyright 1999-2009 Gentoo Foundation |
53 | # Distributed under the terms of the GNU General Public License v2 |
54 | # $Header: /var/cvsroot/gentoo-x86/dev-ruby/sparklines/sparklines-0.5.2.ebuild,v 1.1 2009/04/25 12:57:15 flameeyes Exp $ |
55 | |
56 | inherit ruby |
57 | |
58 | DESCRIPTION="Create sparklines, small graphs to be used inline in texts." |
59 | HOMEPAGE="http://sparklines.rubyforge.org/" |
60 | SRC_URI="mirror://rubyforge/${PN}/${P}.tgz" |
61 | |
62 | LICENSE="MIT" |
63 | SLOT="0" |
64 | KEYWORDS="~amd64" |
65 | IUSE="doc test" |
66 | |
67 | RDEPEND="dev-ruby/rmagick" |
68 | DEPEND="doc? ( dev-ruby/rake |
69 | dev-ruby/hoe ) |
70 | test? ( dev-ruby/rake |
71 | dev-ruby/hoe |
72 | dev-ruby/tidy_table |
73 | dev-ruby/dust )" |
74 | |
75 | USE_RUBY="ruby18" |
76 | |
77 | src_compile() { |
78 | if use doc; then |
79 | rake rerocs || die "rake rerdoc failed" |
80 | fi |
81 | } |
82 | |
83 | src_test() { |
84 | for ruby in $USE_RUBY; do |
85 | [[ -n `type -p $ruby` ]] && $ruby $(type -p rake) test || die "testsuite failed" |
86 | done |
87 | } |
88 | |
89 | src_install() { |
90 | pushd lib |
91 | doruby -r * || die "doruby failed" |
92 | popd |
93 | |
94 | if use doc; then |
95 | dohtml -r doc/* || die "dohtml failed" |
96 | fi |
97 | |
98 | dodoc History.txt README.txt || die "dodoc failed" |
99 | |
100 | insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["vendorlibdir"]' | sed -e 's:vendor_ruby:gems:')/specifications |
101 | sed -e "s:@VERSION@:${PV}:" "${FILESDIR}"/${PN}.gemspec > "${T}"/${P}.gemspec |
102 | doins "${T}"/${P}.gemspec || die "Unable to install fake gemspec" |
103 | } |