dev-ruby/scanf: new package, add 1.0.0

Required by app-admin/openvox for both runtime if users intend to use
scanf and testing. Looks like puppet's built-in scanf() function has
been broken since Ruby 2.6.

The starting keywords are derived from dev-lang/ruby, because this used
to be part fo the ruby stdlib and underwent the same testing and
portability.

Bug: https://bugs.gentoo.org/965200

Signed-off-by: Anthony Ryan <anthonyryan1@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/46085
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Anthony Ryan
2026-05-17 15:54:23 -04:00
committed by Sam James
parent 964ab624bf
commit 86d37f1963
4 changed files with 42 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
EAPI=8
USE_RUBY="ruby32 ruby33"
USE_RUBY="ruby32 ruby33 ruby34"
RUBY_FAKEGEM_GEMSPEC="openfact.gemspec"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
RUBY_FAKEGEM_RECIPE_DOC="yard"

1
dev-ruby/scanf/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST scanf-1.0.0.tar.gz 14080 BLAKE2B a2ef15388b5ae93253b7dd6778b8bb0d1e3f5c617b140f92c72b5568b3b136983832659ef9d8cc4ed2300c405f7f4ab8a86b5b3db497abaa1d82a3d199de9e15 SHA512 608833c45d43f2ef1043bb584c3f8186399f8c03ecc1ab21e23f240203830e9372019a399f39a658199b0938c39fcbcb6f83e4994441488f3646ca75b59537cd

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>anthonyryan1@gmail.com</email>
<name>Anthony Ryan</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
<remote-id type="github">ruby/scanf</remote-id>
<remote-id type="rubygems">scanf</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,24 @@
# 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="README.md"
RUBY_FAKEGEM_GEMSPEC="scanf.gemspec"
RUBY_FAKEGEM_RECIPE_TEST="rake"
RUBY_FAKEGEM_BINWRAP=""
inherit ruby-fakegem
DESCRIPTION="Ruby implementation of the C function scanf(3)"
HOMEPAGE="https://github.com/ruby/scanf"
SRC_URI="https://github.com/ruby/scanf/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
IUSE="test"
ruby_add_bdepend "test? ( dev-ruby/test-unit:2 )"