Files
gentoo/dev-ruby/inifile/inifile-3.0.0.ebuild
Christopher Fore 637abdbec7 dev-ruby/inifile: new package, add 3.0.0
Commit e624295cad881e04fc9e1c883a47b1daea805521 from graaff.git.

Dependency for glsa-overview.

Co-authored-by: Hans de Graaff <graaff@gentoo.org>
Signed-off-by: Christopher Fore <csfore@gentoo.org>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/484
Signed-off-by: Sam James <sam@gentoo.org>
2026-04-02 02:30:48 +01:00

31 lines
724 B
Bash

# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby32 ruby33 ruby34 ruby40"
RUBY_FAKEGEM_EXTRADOC="History.txt README.md"
inherit ruby-fakegem
DESCRIPTION="Native Ruby package for reading and writing INI files"
HOMEPAGE="https://github.com/twp/inifile"
LICENSE="MIT"
SLOT="$(ver_cut 1)"
KEYWORDS="~amd64"
PATCHES=( "${FILESDIR}/${P}-tainted.patch" )
all_ruby_prepare() {
# Taint has been removed from ruby and not done anything since ruby 2.7
sed -e '/test_taint/,/^ end/ s:^:#:' \
-e '/taint/ s:^:#:' \
-i test/test_inifile.rb || die
}
each_ruby_test() {
${RUBY} -Ilib:.:test -e "Dir['test/test_*.rb'].each { require _1 }" || die
}