diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
commit | 3cf7c3ef441822c889356fd1812ebf2944a59851 (patch) | |
tree | c513fe68548b40365c1c2ebfe35c58ad431cdd77 /dev-ruby/rbst/rbst-0.6.5.ebuild | |
parent | 05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff) |
gentoo resync : 25.08.2020
Diffstat (limited to 'dev-ruby/rbst/rbst-0.6.5.ebuild')
-rw-r--r-- | dev-ruby/rbst/rbst-0.6.5.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/rbst/rbst-0.6.5.ebuild b/dev-ruby/rbst/rbst-0.6.5.ebuild new file mode 100644 index 000000000000..4dd5c2e9ee65 --- /dev/null +++ b/dev-ruby/rbst/rbst-0.6.5.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6..9} ) +USE_RUBY="ruby25 ruby26 ruby27" + +RUBY_FAKEGEM_NAME="RbST" +RUBY_FAKEGEM_GEMSPEC="RbST.gemspec" + +inherit python-single-r1 ruby-fakegem + +DESCRIPTION="A simple Ruby wrapper for processing rST via docutils" +HOMEPAGE="https://github.com/alphabetum/rbst" +SRC_URI="https://github.com/alphabetum/rbst/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + dev-python/docutils + ${PYTHON_DEPS}" +DEPEND=" + test? ( ${RDEPEND} )" + +ruby_add_bdepend " + test? ( + >=dev-ruby/minitest-5.14.0:5 + >=dev-ruby/mocha-1.1.0:1.0 + )" + +pkg_setup() { + python-single-r1_pkg_setup + ruby-ng_pkg_setup +} + +all_ruby_prepare() { + # do not use bundler + sed -i -e '/bundler/,/end/d' \ + Rakefile test/helper.rb || die + # do not use python2 + sed -i -e '/python2/,/end/d' \ + test/test_rbst.rb || die + + # force our python version + sed -i -e "s:\(python_path=\"\)python:\1${EPYTHON}:" lib/rbst.rb || die + python_fix_shebang lib/rst2parts +} |