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/redcloth/
Date: Mon, 22 Nov 2021 08:01:18
Message-Id: 1637568070.24abd24cd2e0414aac8a040af45a4132ab7cc0ec.graaff@gentoo
1 commit: 24abd24cd2e0414aac8a040af45a4132ab7cc0ec
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 22 07:37:54 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 22 08:01:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24abd24c
7
8 dev-ruby/redcloth: use correct version number
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/redcloth/redcloth-4.3.2-r4.ebuild | 55 ++++++++++++++++++++++++++++++
14 1 file changed, 55 insertions(+)
15
16 diff --git a/dev-ruby/redcloth/redcloth-4.3.2-r4.ebuild b/dev-ruby/redcloth/redcloth-4.3.2-r4.ebuild
17 new file mode 100644
18 index 000000000000..13b216f45d45
19 --- /dev/null
20 +++ b/dev-ruby/redcloth/redcloth-4.3.2-r4.ebuild
21 @@ -0,0 +1,55 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=8
26 +
27 +USE_RUBY="ruby26 ruby27 ruby30"
28 +
29 +RUBY_FAKEGEM_NAME="RedCloth"
30 +
31 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
32 +RUBY_FAKEGEM_TASK_DOC=""
33 +
34 +RUBY_FAKEGEM_DOCDIR="doc"
35 +
36 +RUBY_FAKEGEM_EXTRADOC="README.rdoc CHANGELOG"
37 +
38 +RUBY_FAKEGEM_REQUIRE_PATHS="lib/case_sensitive_require"
39 +
40 +RUBY_FAKEGEM_GEMSPEC=redcloth.gemspec
41 +
42 +RUBY_FAKEGEM_EXTENSIONS=(ext/redcloth_scan/extconf.rb)
43 +
44 +inherit ruby-fakegem
45 +
46 +DESCRIPTION="A module for using Textile in Ruby"
47 +HOMEPAGE="http://redcloth.org/"
48 +
49 +GITHUB_USER=jgarber
50 +SRC_URI="https://github.com/${GITHUB_USER}/redcloth/archive/v${PV}.tar.gz -> ${RUBY_FAKEGEM_NAME}-${PV}.tar.gz"
51 +
52 +LICENSE="MIT"
53 +SLOT="0"
54 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
55 +IUSE=""
56 +
57 +DEPEND+=" =dev-util/ragel-6*"
58 +
59 +PATCHES=( "${FILESDIR}/${P}-load-documents.patch" )
60 +
61 +ruby_add_bdepend "
62 + >=dev-ruby/rake-0.8.7
63 + >=dev-ruby/rake-compiler-0.7.1
64 + test? ( >=dev-ruby/diff-lcs-1.1.2 )"
65 +
66 +all_ruby_prepare() {
67 + sed -i -e '/[Bb]undler/d' Rakefile ${PN}.gemspec || die
68 + rm -f tasks/{release,rspec,rvm}.rake || die
69 +
70 + # Fix version
71 + sed -i -e '/TINY/ s/1/2/' lib/redcloth/version.rb || die
72 +}
73 +
74 +each_ruby_prepare() {
75 + ${RUBY} -S rake ext/redcloth_scan/extconf.rb || die
76 +}