diff --git a/dev-ruby/getoptlong/Manifest b/dev-ruby/getoptlong/Manifest new file mode 100644 index 0000000000000..8a4e97015337b --- /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 0000000000000..e1260e1781e63 --- /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 0000000000000..a8d17c94ea7be --- /dev/null +++ b/dev-ruby/getoptlong/metadata.xml @@ -0,0 +1,11 @@ + + + + + ruby@gentoo.org + Gentoo Ruby Project + + + ruby/getoptlong + +