public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Hans de Graaff" <graaff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/getoptlong/
Date: Fri, 24 May 2024 08:29:49 +0000 (UTC)	[thread overview]
Message-ID: <1716539376.46b5c98512c59d4e45d3819229fe541c567a66c8.graaff@gentoo> (raw)

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>ruby@gentoo.org</email>
+    <name>Gentoo Ruby Project</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">ruby/getoptlong</remote-id>
+  </upstream>
+</pkgmetadata>


             reply	other threads:[~2024-05-24  8:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-24  8:29 Hans de Graaff [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-19  7:22 [gentoo-commits] repo/gentoo:master commit in: dev-ruby/getoptlong/ Fabian Groffen
2024-10-06 11:18 Sam James
2024-10-06 12:01 Sam James
2024-10-06 13:30 Arthur Zamarin
2024-10-06 13:33 Arthur Zamarin
2024-10-12 23:18 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1716539376.46b5c98512c59d4e45d3819229fe541c567a66c8.graaff@gentoo \
    --to=graaff@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox