Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/bluecloth/
Date: Mon, 07 Mar 2016 20:22:01
Message-Id: 1457382004.0fcf41e2f1afcc57c110401ae58aa690ab7d1f76.graaff@gentoo
1 commit: 0fcf41e2f1afcc57c110401ae58aa690ab7d1f76
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 7 20:15:21 2016 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 7 20:20:04 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fcf41e2
7
8 dev-ruby/bluecloth: rewrite build system
9
10 In particular, avoid rake-compiler dependency since this
11 leads to difficult-to-resolve circular build issues between
12 rspec 2 and rspec 3, and there is no real need for rake-compiler
13 in the first place.
14
15 Package-Manager: portage-2.2.26
16
17 dev-ruby/bluecloth/bluecloth-2.2.0-r3.ebuild | 58 ++++++++++++++++++++++++++++
18 1 file changed, 58 insertions(+)
19
20 diff --git a/dev-ruby/bluecloth/bluecloth-2.2.0-r3.ebuild b/dev-ruby/bluecloth/bluecloth-2.2.0-r3.ebuild
21 new file mode 100644
22 index 0000000..2093761
23 --- /dev/null
24 +++ b/dev-ruby/bluecloth/bluecloth-2.2.0-r3.ebuild
25 @@ -0,0 +1,58 @@
26 +# Copyright 1999-2016 Gentoo Foundation
27 +# Distributed under the terms of the GNU General Public License v2
28 +# $Id$
29 +
30 +EAPI=5
31 +
32 +USE_RUBY="ruby20 ruby21 ruby22"
33 +
34 +RUBY_FAKEGEM_RECIPE_DOC="rdoc"
35 +RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc"
36 +
37 +RUBY_FAKEGEM_RECIPE_TEST="rspec"
38 +
39 +inherit multilib ruby-fakegem eutils
40 +
41 +DESCRIPTION="A Ruby implementation of Markdown"
42 +HOMEPAGE="http://www.deveiate.org/projects/BlueCloth"
43 +
44 +LICENSE="BSD"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
47 +IUSE="test"
48 +
49 +DEPEND+=" doc? ( dev-lang/perl )"
50 +
51 +ruby_add_bdepend "
52 + dev-ruby/hoe
53 + test? (
54 + dev-ruby/diff-lcs
55 + dev-ruby/tidy-ext
56 + )"
57 +
58 +all_ruby_prepare() {
59 + # for Ruby 1.9.2 and 2.2.x compatibility
60 + sed -i -e '1i $: << "."' \
61 + -e 's/Config/RbConfig/' Rakefile || die
62 +}
63 +
64 +each_ruby_configure() {
65 + ${RUBY} -Cext extconf.rb || die
66 +}
67 +
68 +all_ruby_compile() {
69 + pod2man --center --release --name bluecloth --utf8 bluecloth.1.pod bluecloth.1 || die
70 +
71 + all_fakegem_compile
72 +}
73 +
74 +each_ruby_compile() {
75 + emake -Cext
76 + cp ext/bluecloth_ext$(get_modname) lib/ || die
77 +}
78 +
79 +all_ruby_install() {
80 + doman man/man1/bluecloth.1
81 +
82 + all_fakegem_install
83 +}