Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rbst/
Date: Wed, 18 May 2022 07:36:21
Message-Id: 1652859370.cbc86ab7d3fb2afd7f0baba35b838763a02dc398.mgorny@gentoo
1 commit: cbc86ab7d3fb2afd7f0baba35b838763a02dc398
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 18 07:14:32 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 18 07:36:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbc86ab7
7
8 dev-ruby/rbst: Modernize, enable py3.10 & py3.11
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-ruby/rbst/rbst-0.6.5-r1.ebuild | 60 ++++++++++++++++++++++++++++++++++++++
13 1 file changed, 60 insertions(+)
14
15 diff --git a/dev-ruby/rbst/rbst-0.6.5-r1.ebuild b/dev-ruby/rbst/rbst-0.6.5-r1.ebuild
16 new file mode 100644
17 index 000000000000..580e897b1276
18 --- /dev/null
19 +++ b/dev-ruby/rbst/rbst-0.6.5-r1.ebuild
20 @@ -0,0 +1,60 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +PYTHON_COMPAT=( python3_{8..11} )
27 +USE_RUBY="ruby25 ruby26 ruby27"
28 +
29 +RUBY_FAKEGEM_NAME="RbST"
30 +RUBY_FAKEGEM_GEMSPEC="RbST.gemspec"
31 +
32 +inherit python-single-r1 ruby-fakegem
33 +
34 +DESCRIPTION="A simple Ruby wrapper for processing rST via docutils"
35 +HOMEPAGE="https://github.com/xwmx/rbst/"
36 +SRC_URI="
37 + https://github.com/xwmx/rbst/archive/${PV}.tar.gz -> ${P}.tar.gz
38 +"
39 +
40 +LICENSE="MIT"
41 +SLOT="0"
42 +KEYWORDS="~amd64"
43 +IUSE="test"
44 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
45 +
46 +RDEPEND="
47 + dev-python/docutils
48 + ${PYTHON_DEPS}
49 +"
50 +DEPEND="
51 + test? ( ${RDEPEND} )
52 +"
53 +
54 +ruby_add_bdepend "
55 + test? (
56 + >=dev-ruby/minitest-5.14.0:5
57 + >=dev-ruby/mocha-1.1.0:1.0
58 + )
59 +"
60 +
61 +pkg_setup() {
62 + python-single-r1_pkg_setup
63 + ruby-ng_pkg_setup
64 +}
65 +
66 +all_ruby_prepare() {
67 + # do not use bundler
68 + sed -i -e '/bundler/,/end/d' \
69 + Rakefile test/helper.rb || die
70 + # do not use python2
71 + sed -i -e '/python2/,/end/d' \
72 + test/test_rbst.rb || die
73 + # broken by new docutils
74 + sed -i -e '/it.*LaTeX/,/end/d' \
75 + test/test_rbst.rb || die
76 +
77 + # force our python version
78 + sed -i -e "s:\(python_path=\"\)python:\1${EPYTHON}:" lib/rbst.rb || die
79 + python_fix_shebang lib/rst2parts
80 +}