dev-ruby/getoptlong: new package, add 0.2.1

This code is extraced from dev-lang/ruby and inherits its set of
KEYWORDS.

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2024-05-24 10:28:58 +02:00
parent 6150ffedb8
commit 46b5c98512
3 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST getoptlong-0.2.1.tar.gz 10505 BLAKE2B b67b04b6f0952393a4f8e7a0cbeccd1aa78c5580b122f1822e2ffe0fedefa5eb9b77ab7ec8e149099d09a4845673f848e46eb11676b968bdf929ea9f07290162 SHA512 8a2c24ef680d0bbd84f255e69a6da0684199fac01ff24158ad9d28e615f5bc3c139ff0eebd66ab62b11413c85d39b7460b7820e51183eb5c6b75e3f5b61b4a49

View File

@@ -0,0 +1,30 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby31 ruby32 ruby33"
RUBY_FAKEGEM_BINWRAP=""
RUBY_FAKEGEM_EXTRADOC="README.md"
RUBY_FAKEGEM_GEMSPEC="getoptlong.gemspec"
inherit ruby-fakegem
DESCRIPTION="Allows you to parse command line options similarly to getopt_long()"
HOMEPAGE="https://github.com/ruby/getoptlong"
SRC_URI="https://github.com/ruby/getoptlong/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
all_ruby_prepare() {
sed -e 's/__FILE__/"getoptlong.gemspec"/' \
-e 's/__dir__/"."/' \
-e 's/git ls-files -z/find * -print0/' \
-i ${RUBY_FAKEGEM_GEMSPEC} || die
}
each_ruby_test() {
${RUBY} -Ilib:.:test:test/lib -e 'Dir["test/**/test_*.rb"].each{|f| require f}' || die
}

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>ruby@gentoo.org</email>
<name>Gentoo Ruby Project</name>
</maintainer>
<upstream>
<remote-id type="github">ruby/getoptlong</remote-id>
</upstream>
</pkgmetadata>