mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 04:23:16 -04:00
dev-ruby/byebug: new package
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
42
dev-ruby/byebug/byebug-11.1.3.ebuild
Normal file
42
dev-ruby/byebug/byebug-11.1.3.ebuild
Normal file
@@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
USE_RUBY="ruby25 ruby26 ruby27"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md GUIDE.md README.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC=${PN}.gemspec
|
||||
|
||||
RUBY_FAKEGEM_BINDIR="exe"
|
||||
|
||||
RUBY_FAKEGEM_EXTENSIONS=(ext/byebug/extconf.rb)
|
||||
RUBY_FAKEGEM_EXTENSION_LIBDIR=lib/byebug
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="a Ruby 2 debugger"
|
||||
HOMEPAGE="https://github.com/deivid-rodriguez/byebug"
|
||||
SRC_URI="https://github.com/deivid-rodriguez/byebug/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
# Tests require bundler and hang when run from portage
|
||||
RESTRICT="test"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
dev-ruby/byebug
|
||||
dev-ruby/pry
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '/simplecov/ s:^:#:' test/test_helper.rb || die
|
||||
sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
NOCOV=true ${RUBY} -r./test/minitest_runner -e Byebug::MinitestRunner.new.run || die
|
||||
}
|
||||
Reference in New Issue
Block a user