commit: 46b5c98512c59d4e45d3819229fe541c567a66c8 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Fri May 24 08:28:58 2024 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Fri May 24 08:29:36 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46b5c985
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 <AT> gentoo.org> dev-ruby/getoptlong/Manifest | 1 + dev-ruby/getoptlong/getoptlong-0.2.1.ebuild | 30 +++++++++++++++++++++++++++++ dev-ruby/getoptlong/metadata.xml | 11 +++++++++++ 3 files changed, 42 insertions(+) diff --git a/dev-ruby/getoptlong/Manifest b/dev-ruby/getoptlong/Manifest new file mode 100644 index 000000000000..8a4e97015337 --- /dev/null +++ b/dev-ruby/getoptlong/Manifest @@ -0,0 +1 @@ +DIST getoptlong-0.2.1.tar.gz 10505 BLAKE2B b67b04b6f0952393a4f8e7a0cbeccd1aa78c5580b122f1822e2ffe0fedefa5eb9b77ab7ec8e149099d09a4845673f848e46eb11676b968bdf929ea9f07290162 SHA512 8a2c24ef680d0bbd84f255e69a6da0684199fac01ff24158ad9d28e615f5bc3c139ff0eebd66ab62b11413c85d39b7460b7820e51183eb5c6b75e3f5b61b4a49 diff --git a/dev-ruby/getoptlong/getoptlong-0.2.1.ebuild b/dev-ruby/getoptlong/getoptlong-0.2.1.ebuild new file mode 100644 index 000000000000..e1260e1781e6 --- /dev/null +++ b/dev-ruby/getoptlong/getoptlong-0.2.1.ebuild @@ -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 +} diff --git a/dev-ruby/getoptlong/metadata.xml b/dev-ruby/getoptlong/metadata.xml new file mode 100644 index 000000000000..a8d17c94ea7b --- /dev/null +++ b/dev-ruby/getoptlong/metadata.xml @@ -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>[email protected]</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <upstream> + <remote-id type="github">ruby/getoptlong</remote-id> + </upstream> +</pkgmetadata>
