commit:     8fb27b581453b37d399988e445ee3104cdb0d285
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 22 06:20:30 2025 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Tue Apr 22 06:20:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fb27b58

dev-ruby/localhost: add 1.5.0

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/localhost/Manifest               |  1 +
 dev-ruby/localhost/localhost-1.5.0.ebuild | 43 +++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/dev-ruby/localhost/Manifest b/dev-ruby/localhost/Manifest
index 79002813afaf..3221eff1fe1f 100644
--- a/dev-ruby/localhost/Manifest
+++ b/dev-ruby/localhost/Manifest
@@ -1,2 +1,3 @@
 DIST localhost-1.3.0.tar.gz 2128850 BLAKE2B 
fe7db9958759be39107116b45ee1f8d3678a2407f25956ee551a41a18da2bb12b46add992ca2b9615b68f69156afc384c453318af5b77751095b643fb27b7344
 SHA512 
6196cf4ff79cd53c222e19158a7233b8ba384225f24fd791d92952c80b11c469e99d619c3825e0f831e99e2a822aaf69e3b3a9ed0dc2e1ad0316c8b6717165c5
 DIST localhost-1.3.1.tar.gz 2127046 BLAKE2B 
16ae987c53dba2a70ec324c7f79403d40e2b4345f92906c37b7f87814bdf8635f746823924b6c62cbeadee0565b1accd8fc340816ea5743c5e89cad4b952a755
 SHA512 
0120d58b80b0dd88f10ffcefaf67424950e77782ffc67f58144a18cb1d4fff29c4bd128fbff33e420b850a5a97c8670c945039950c59b1f448cb47bb588f5d3e
+DIST localhost-1.5.0.tar.gz 13437 BLAKE2B 
9c6c8cb668af49f1b8250b4f1d977854ecc8bf7fa931b5d41db0712d2811900d7e7380d2c1235eb6800d2ae57a4eeadf56b76a5805cdb2c9bdd5ecf2e53076e4
 SHA512 
f95a0f53d8c88d61ff28591aae53faac631989b422102dd02f25707532fa38c297700bce020897442a12352af4da1e84bae0be9f1fedbab7c409188fc0b31377

diff --git a/dev-ruby/localhost/localhost-1.5.0.ebuild 
b/dev-ruby/localhost/localhost-1.5.0.ebuild
new file mode 100644
index 000000000000..cffaa67d6eea
--- /dev/null
+++ b/dev-ruby/localhost/localhost-1.5.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby32 ruby33"
+
+RUBY_FAKEGEM_EXTRADOC="readme.md releases.md"
+RUBY_FAKEGEM_GEMSPEC="localhost.gemspec"
+RUBY_FAKEGEM_RECIPE_TEST="sus"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Manage a local CA for self-signed localhost development servers"
+HOMEPAGE="https://github.com/socketry/localhost";
+SRC_URI="https://github.com/socketry/localhost/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+
+ruby_add_bdepend "
+       test? (
+               dev-ruby/async-io
+               dev-ruby/async-process
+               dev-ruby/io-endpoint
+               dev-ruby/sus-fixtures-async
+       )
+"
+
+all_ruby_prepare() {
+       sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die
+       sed -i -e '/covered/Id' config/sus.rb || die
+
+       # Avoid unpackaged sus-fixtures-async-http which has a huge dependency 
tree.
+       rm -f test/localhost/protocol.rb || die
+}
+
+each_ruby_test() {
+       # Tests fail in parallel as it tries to use the same port so
+       # manually replicate ruby-ng_sus for now, as ruby-ng_sus runs 
sus-parallel.
+       ${RUBY} -S sus || die
+}

Reply via email to