gentoo-ebuilds/dev-ruby/ast/ast-2.4.3.ebuild
Hans de Graaff 42a2a9dc73
dev-ruby/ast: add 2.4.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
2025-03-31 16:32:37 +02:00

27 lines
674 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby31 ruby32 ruby33 ruby34"
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
RUBY_FAKEGEM_GEMSPEC="ast.gemspec"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
inherit ruby-fakegem
DESCRIPTION="A library for working with abstract syntax trees"
HOMEPAGE="https://github.com/whitequark/ast"
SRC_URI="https://github.com/whitequark/ast/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~sparc"
IUSE="test"
all_ruby_prepare() {
sed -i -e "/[Bb]undler/d" Rakefile || die
sed -e '/simplecov/,/^end/ s:^:#:' \
-i spec/helper.rb || die
}