From: | "Alex Legler (a3li)" <a3li@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-ruby/thor: metadata.xml ChangeLog thor-0.14.0.ebuild |
Date: | Tue, 31 Aug 2010 20:14:28 |
Message-Id: | 20100831201424.8B56C20051@flycatcher.gentoo.org |
1 | a3li 10/08/31 20:14:24 |
2 | |
3 | Added: metadata.xml ChangeLog thor-0.14.0.ebuild |
4 | Log: |
5 | Adding thor, needed by Rails 3. Ebuild by me. |
6 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-ruby/thor/metadata.xml |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/thor/metadata.xml?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/thor/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 | <longdescription> |
21 | Thor is a simple and efficient tool for building self-documenting |
22 | command line utilities. It removes the pain of parsing command line |
23 | options, writing "USAGE:" banners, and can also be used as an |
24 | alternative to the Rake build tool. The syntax is Rake-like, so it |
25 | should be familiar to most Rake users. |
26 | </longdescription> |
27 | </pkgmetadata> |
28 | |
29 | |
30 | |
31 | 1.1 dev-ruby/thor/ChangeLog |
32 | |
33 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/thor/ChangeLog?rev=1.1&view=markup |
34 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/thor/ChangeLog?rev=1.1&content-type=text/plain |
35 | |
36 | Index: ChangeLog |
37 | =================================================================== |
38 | # ChangeLog for dev-ruby/thor |
39 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
40 | # $Header: /var/cvsroot/gentoo-x86/dev-ruby/thor/ChangeLog,v 1.1 2010/08/31 20:14:24 a3li Exp $ |
41 | |
42 | *thor-0.14.0 (31 Aug 2010) |
43 | |
44 | 31 Aug 2010; Alex Legler <a3li@g.o> +thor-0.14.0.ebuild, |
45 | +metadata.xml: |
46 | Initial import. Ebuild by me. |
47 | |
48 | |
49 | |
50 | |
51 | 1.1 dev-ruby/thor/thor-0.14.0.ebuild |
52 | |
53 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/thor/thor-0.14.0.ebuild?rev=1.1&view=markup |
54 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/thor/thor-0.14.0.ebuild?rev=1.1&content-type=text/plain |
55 | |
56 | Index: thor-0.14.0.ebuild |
57 | =================================================================== |
58 | # Copyright 1999-2010 Gentoo Foundation |
59 | # Distributed under the terms of the GNU General Public License v2 |
60 | # $Header: /var/cvsroot/gentoo-x86/dev-ruby/thor/thor-0.14.0.ebuild,v 1.1 2010/08/31 20:14:24 a3li Exp $ |
61 | |
62 | EAPI=2 |
63 | USE_RUBY="ruby18 ree18 ruby19" |
64 | |
65 | RUBY_FAKEGEM_TASK_DOC="" |
66 | RUBY_FAKEGEM_TASK_TEST="" |
67 | RUBY_FAKEGEM_DOCDIR="rdoc" |
68 | RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc README.md" |
69 | RUBY_FAKEGEM_BINWRAP="thor" |
70 | |
71 | inherit ruby-fakegem |
72 | |
73 | DESCRIPTION="A scripting framework that replaces rake and sake" |
74 | HOMEPAGE="http://github.com/wycats/thor" |
75 | |
76 | SRC_URI="http://github.com/wycats/${PN}/tarball/v${PV} -> ${PN}-git-${PV}.tgz" |
77 | S="${WORKDIR}/wycats-${PN}-4647c98" |
78 | |
79 | LICENSE="MIT" |
80 | SLOT="0" |
81 | KEYWORDS="~amd64 ~x86" |
82 | IUSE="doc" |
83 | |
84 | ruby_add_bdepend " |
85 | test? ( dev-ruby/fakeweb ) |
86 | doc? ( dev-ruby/rdoc )" |
87 | |
88 | all_ruby_prepare() { |
89 | einfo $(pwd) |
90 | # Having VERSION in the docs makes the rdoc generation fail. |
91 | sed -i -e '/EXTRA_RDOC_FILES/s/"VERSION", //' Thorfile || die |
92 | } |
93 | |
94 | all_ruby_compile() { |
95 | einfo $(pwd) |
96 | use doc && ruby -Ilib bin/thor rdoc || die "RDoc generation failed" |
97 | } |
98 | |
99 | each_ruby_test() { |
100 | ${RUBY} -Ilib/ bin/thor spec || die "Tests for ${RUBY} failed" |
101 | } |