diff options
Diffstat (limited to 'dev-ruby/tty-command')
| -rw-r--r-- | dev-ruby/tty-command/Manifest | 1 | ||||
| -rw-r--r-- | dev-ruby/tty-command/metadata.xml | 9 | ||||
| -rw-r--r-- | dev-ruby/tty-command/tty-command-0.10.1-r1.ebuild | 36 |
3 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/tty-command/Manifest b/dev-ruby/tty-command/Manifest new file mode 100644 index 000000000000..f9ece87fe750 --- /dev/null +++ b/dev-ruby/tty-command/Manifest @@ -0,0 +1 @@ +DIST tty-command-0.10.1.tar.gz 32359 BLAKE2B 85dd115d113abda7464f1d6935a730c97c312bcd280c16bbff44f5da294ed9197df2615449656ce8d403b4118c6d363710eb32e49a2ebb3c75896f5feda85bce SHA512 aa707f3af6b72f20ea692469c7dc60bbf146bc59eaedf4a57408a463e7f96b48dc9ec60de31f2298e36b6d56320b238b4364ee0f90d1499784d001e963ea6fa1 diff --git a/dev-ruby/tty-command/metadata.xml b/dev-ruby/tty-command/metadata.xml new file mode 100644 index 000000000000..c685ebad7e3a --- /dev/null +++ b/dev-ruby/tty-command/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-ruby/tty-command/tty-command-0.10.1-r1.ebuild b/dev-ruby/tty-command/tty-command-0.10.1-r1.ebuild new file mode 100644 index 000000000000..0a849d0f6c62 --- /dev/null +++ b/dev-ruby/tty-command/tty-command-0.10.1-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby32 ruby33 ruby34 ruby40" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_BINWRAP="" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Terminal color capabilities detection" +HOMEPAGE="https://github.com/piotrmurach/tty-command" +SRC_URI="https://github.com/piotrmurach/tty-command/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~riscv" + +ruby_add_rdepend ">=dev-ruby/pastel-0.8:0" + +all_ruby_prepare() { + echo '-rspec_helper' > .rspec || die + + sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid flaky spec that fails with unimportant output differences + sed -e '/logs phased output in pseudo terminal mode/ s/it/xit/' \ + -i spec/unit/pty_spec.rb || die +} |
