From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6D8661396D0 for ; Mon, 9 Oct 2017 19:43:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72B56E08C3; Mon, 9 Oct 2017 19:43:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3F485E08C3 for ; Mon, 9 Oct 2017 19:43:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A5B2333C1EB for ; Mon, 9 Oct 2017 19:43:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 391B5909C for ; Mon, 9 Oct 2017 19:43:11 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1507578186.cd15175312f40cc9b8e7adfeadc9052cb496f53a.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rbst/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/rbst/Manifest dev-ruby/rbst/metadata.xml dev-ruby/rbst/rbst-0.5.1.ebuild X-VCS-Directories: dev-ruby/rbst/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: cd15175312f40cc9b8e7adfeadc9052cb496f53a X-VCS-Branch: master Date: Mon, 9 Oct 2017 19:43:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5f99e674-485a-4e2e-8492-69b466209c68 X-Archives-Hash: d5886bbb1361cd9a49222c692c68624e commit: cd15175312f40cc9b8e7adfeadc9052cb496f53a Author: Michał Górny gentoo org> AuthorDate: Mon Oct 9 19:41:02 2017 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Oct 9 19:43:06 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd151753 dev-ruby/rbst: New package dev-ruby/rbst/Manifest | 1 + dev-ruby/rbst/metadata.xml | 8 +++++++ dev-ruby/rbst/rbst-0.5.1.ebuild | 48 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) diff --git a/dev-ruby/rbst/Manifest b/dev-ruby/rbst/Manifest new file mode 100644 index 00000000000..1f6e7cf5d9b --- /dev/null +++ b/dev-ruby/rbst/Manifest @@ -0,0 +1 @@ +DIST rbst-0.5.1.tar.gz 14039 SHA256 95d8ba25bde6c16e0565f480b377c9377168af889c32a90b0a55dd46cf74f547 SHA512 a7fffc1ccf495c1858d6d9fadd38a4d6a2c27a2da8eda8dad038f4ab881f4521223a35f97d4018d25b32c2621132a623040ba930494b36e1385356ecb87fecdc WHIRLPOOL d31d1742f9e998388da6d0f763ed558596b5a84cc1ae66ae296d45a26add0fefefb92b571d32cede481d28a2a3ac8eabf91cd1dc9bcc907d20bf9b9b604bd994 diff --git a/dev-ruby/rbst/metadata.xml b/dev-ruby/rbst/metadata.xml new file mode 100644 index 00000000000..0319eec4c8b --- /dev/null +++ b/dev-ruby/rbst/metadata.xml @@ -0,0 +1,8 @@ + + + + + mgorny@gentoo.org + Michał Górny + + diff --git a/dev-ruby/rbst/rbst-0.5.1.ebuild b/dev-ruby/rbst/rbst-0.5.1.ebuild new file mode 100644 index 00000000000..47d5cfc57ee --- /dev/null +++ b/dev-ruby/rbst/rbst-0.5.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) +USE_RUBY="ruby22 ruby23 ruby24" + +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" + +RDEPEND="dev-python/docutils" +DEPEND=" + test? ( + ${RDEPEND} + >=dev-ruby/mocha-1.1.0:1.0 + >=dev-ruby/shoulda-3.5.0:3 + >=dev-ruby/test-unit-3.0.9:2 + )" + +# Tests are pretty much useless as they depend on very specific output +# from an unknown docutils version. +RESTRICT="test" + +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 + + # force our python version + sed -i -e "s:\(python_path=\"\)python:\1${EPYTHON}:" lib/rbst.rb || die + python_fix_shebang lib/rst2parts +}