summaryrefslogtreecommitdiff
path: root/dev-ruby/launchy
diff options
context:
space:
mode:
authorPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
committerPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
commitecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch)
treeb89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-ruby/launchy
parent1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff)
downloadbaldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip
Updating liguros repo
Diffstat (limited to 'dev-ruby/launchy')
-rw-r--r--dev-ruby/launchy/Manifest2
-rw-r--r--dev-ruby/launchy/files/launchy-2.4.2-drop-failing-test.patch25
-rw-r--r--dev-ruby/launchy/launchy-2.4.3-r2.ebuild36
-rw-r--r--dev-ruby/launchy/launchy-2.5.0.ebuild34
-rw-r--r--dev-ruby/launchy/metadata.xml12
5 files changed, 109 insertions, 0 deletions
diff --git a/dev-ruby/launchy/Manifest b/dev-ruby/launchy/Manifest
new file mode 100644
index 000000000000..b85aeb88b089
--- /dev/null
+++ b/dev-ruby/launchy/Manifest
@@ -0,0 +1,2 @@
+DIST launchy-2.4.3.gem 29184 BLAKE2B d6e8e26f37a811fc994ee762791ea9ddb424dc99d23790905f80416734677535aa8b2087eab233dc1535556c240f260c5995185e10642cd682bbe508e3e30654 SHA512 7c3e0377c9a310b2e7a4d1544b4790f6f959d24b6aba91660e979eb943f4bee641e0b5a44687b693ffe99304ceb96a9a6cf9fed142e231af01135bd2b73321d6
+DIST launchy-2.5.0.gem 30208 BLAKE2B 30719f97fdf1bca8a66eb113992c8714103a7fe87262c3677a0fa64b58070593bcbdba7357b81e5bada9e8a143e6601e28ef2d2730f0028fdaecefad23156fd8 SHA512 d80811009155d9cea6a2e69b5f7482aaec7d0bf23ecca4cbe72e440fb4eae1c38bc5904e863998f1966c7a99b98bad1f4456cec1cb076f96f5a99b835448b39f
diff --git a/dev-ruby/launchy/files/launchy-2.4.2-drop-failing-test.patch b/dev-ruby/launchy/files/launchy-2.4.2-drop-failing-test.patch
new file mode 100644
index 000000000000..00a0d4bf27e0
--- /dev/null
+++ b/dev-ruby/launchy/files/launchy-2.4.2-drop-failing-test.patch
@@ -0,0 +1,25 @@
+diff --git a/spec/applications/browser_spec.rb b/spec/applications/browser_spec.rb
+index 8cfa8e7..3886ce3 100644
+--- a/spec/applications/browser_spec.rb
++++ b/spec/applications/browser_spec.rb
+@@ -12,20 +12,7 @@ describe Launchy::Application::Browser do
+ ENV.delete( 'KDE_FULL_SESSION' )
+ ENV.delete( 'BROWSER' )
+ end
+
+- { 'windows' => 'start "launchy" /b' ,
+- 'darwin' => '/usr/bin/open',
+- 'cygwin' => 'cmd /C start "launchy" /b',
+-
+- # when running these tests on a linux box, this test will fail
+- 'linux' => nil }.each do |host_os, cmdline|
+- it "when host_os is '#{host_os}' the appropriate 'app_list' method is called" do
+- Launchy.host_os = host_os
+- browser = Launchy::Application::Browser.new
+- browser.app_list.first.must_equal cmdline
+- end
+- end
+-
+ %w[ linux windows darwin cygwin ].each do |host_os|
+ it "the BROWSER environment variable overrides any host defaults on '#{host_os}'" do
+ ENV['BROWSER'] = "my_special_browser --new-tab '%s'"
diff --git a/dev-ruby/launchy/launchy-2.4.3-r2.ebuild b/dev-ruby/launchy/launchy-2.4.3-r2.ebuild
new file mode 100644
index 000000000000..061b8cfc357f
--- /dev/null
+++ b/dev-ruby/launchy/launchy-2.4.3-r2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby23 ruby24 ruby25 ruby26"
+
+RUBY_FAKEGEM_EXTRADOC="README.md HISTORY.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Helper class for launching cross-platform applications"
+HOMEPAGE="https://github.com/copiousfreetime/launchy"
+
+LICENSE="ISC"
+
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ~x86"
+IUSE=""
+
+# File collision conflict with x11-misc/launchy, bug 545170
+ruby_add_rdepend ">=dev-ruby/addressable-2.3 !!x11-misc/launchy"
+
+ruby_add_bdepend "test? ( >=dev-ruby/minitest-5.0:5 )"
+
+# This test is expected to fail on linux, drop it
+RUBY_PATCHES=( "${FILESDIR}"/${PN}-2.4.2-drop-failing-test.patch )
+
+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
+}
diff --git a/dev-ruby/launchy/launchy-2.5.0.ebuild b/dev-ruby/launchy/launchy-2.5.0.ebuild
new file mode 100644
index 000000000000..8cf4802c944a
--- /dev/null
+++ b/dev-ruby/launchy/launchy-2.5.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby24 ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_EXTRADOC="README.md HISTORY.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Helper class for launching cross-platform applications"
+HOMEPAGE="https://github.com/copiousfreetime/launchy"
+
+LICENSE="ISC"
+
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE=""
+
+ruby_add_rdepend ">=dev-ruby/addressable-2.7"
+
+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
+}
diff --git a/dev-ruby/launchy/metadata.xml b/dev-ruby/launchy/metadata.xml
new file mode 100644
index 000000000000..db8cd6c5be42
--- /dev/null
+++ b/dev-ruby/launchy/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://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">copiousfreetime/launchy</remote-id>
+ </upstream>
+ <origin>gentoo-staging</origin>
+</pkgmetadata>