summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/launchy/Manifest1
-rw-r--r--dev-ruby/launchy/launchy-3.0.1.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/launchy/Manifest b/dev-ruby/launchy/Manifest
index 24a854f7441e..287413e9a024 100644
--- a/dev-ruby/launchy/Manifest
+++ b/dev-ruby/launchy/Manifest
@@ -1,2 +1,3 @@
DIST launchy-2.5.2.gem 30208 BLAKE2B 7e3c3464292026a93953995c5df7dd407b51bd36b363bb0c57fed6ebf2122390348f415273b6ce7ee2dcb89bd444a58458c0a95b84428fec02280654239223e0 SHA512 40777dabd25e6646c6673b33d9d296b66de7976fdf7454c9a7ae809a161ed992572b2232d94591731a7c8405875803172c6fafd09a5570f09e5eb119e23e7773
DIST launchy-3.0.0.gem 27648 BLAKE2B 71fb8dadc37d9b25f861177c6579c9328786d16e64758d24ca297c8b6a773d307abd26b674c221b9a6318a2edd56e90d889fcf66cb1e3c279d85d045e9b1243d SHA512 6c4a8c320b4d149a3ab322f9cc03c73b7decb50d8dd2a8954bae27f5d265594fc6498af4a3d41a0693d232cbdce3dbbdf76cba3da2199a4bc85d8cda60e59187
+DIST launchy-3.0.1.tar.gz 26613 BLAKE2B 4646fa7eef280fe439c513e1780ff80bf97eb2d084ca9a35d583568a1babbc2c85abb951382dceffbf08986b9cae07bea56078fd437097c6b1f5816e9cf4bba5 SHA512 98ec8f0389da8bc56491f4cda4fc128184a09f923bc7c0c7b2275a505f9af074172754abbbd5e9c48680c26fac5d10c23b9fee3e14af1e73dc176b3793ff2311
diff --git a/dev-ruby/launchy/launchy-3.0.1.ebuild b/dev-ruby/launchy/launchy-3.0.1.ebuild
new file mode 100644
index 000000000000..36f5cc8cee4e
--- /dev/null
+++ b/dev-ruby/launchy/launchy-3.0.1.ebuild
@@ -0,0 +1,45 @@
+# 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 HISTORY.md"
+RUBY_FAKEGEM_GEMSPEC="launchy.gemspec"
+
+inherit ruby-fakegem virtualx
+
+DESCRIPTION="Helper class for launching cross-platform applications"
+HOMEPAGE="https://github.com/copiousfreetime/launchy"
+SRC_URI="https://github.com/copiousfreetime/launchy/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="ISC"
+
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+IUSE="test"
+
+ruby_add_rdepend "
+ >=dev-ruby/addressable-2.8
+ dev-ruby/childprocess:5
+ !<dev-ruby/launchy-2.5.2-r1
+"
+
+ruby_add_bdepend "test? ( >=dev-ruby/minitest-5.0:5 )"
+
+all_ruby_prepare() {
+ sed -i -e "/[Ss]implecov/d" spec/spec_helper.rb || die
+
+ # Avoid tests depending on the current user's desktop environment.
+ sed -e '/returns NotFound if it cannot determine/askip "gentoo"' \
+ -i spec/detect/nix_desktop_environment_spec.rb || die
+ sed -e '/asssumes we open a local file if we have an exception/askip "gentoo"' \
+ -i spec/launchy_spec.rb || die
+ sed -e "/'darwin'/ s:^:#:" \
+ -i spec/applications/browser_spec.rb || die
+}
+
+each_ruby_test() {
+ CI=true virtx each_fakegem_test
+}