summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-08-02 16:18:10 +0100
committerMarek Szuba <marecki@gentoo.org>2021-08-02 17:42:43 +0100
commit9094f5f13acfb1f082c87eec3c1f6e60fd0e884d (patch)
treedb870eb80fde7abc3a7845d68a38a482d2b55e6b /dev-ruby/tty-editor
parentmedia-libs/libavif: keyword 0.9.2 for ~riscv (diff)
downloadgentoo-9094f5f13acfb1f082c87eec3c1f6e60fd0e884d.tar.gz
gentoo-9094f5f13acfb1f082c87eec3c1f6e60fd0e884d.tar.bz2
gentoo-9094f5f13acfb1f082c87eec3c1f6e60fd0e884d.zip
dev-ruby/tty-editor: initial import
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-ruby/tty-editor')
-rw-r--r--dev-ruby/tty-editor/Manifest1
-rw-r--r--dev-ruby/tty-editor/metadata.xml11
-rw-r--r--dev-ruby/tty-editor/tty-editor-0.7.0.ebuild31
3 files changed, 43 insertions, 0 deletions
diff --git a/dev-ruby/tty-editor/Manifest b/dev-ruby/tty-editor/Manifest
new file mode 100644
index 000000000000..899446d4cb5f
--- /dev/null
+++ b/dev-ruby/tty-editor/Manifest
@@ -0,0 +1 @@
+DIST tty-editor-0.7.0.tar.gz 18140 BLAKE2B 917ea287b30588ffdf705d4ea06c711884b4dc7ba348f9acd08f0cf4e71c854ebcec6f7b8285e9fc1d45225f8ccb295dcb23b9493fcea2ac831c352cd7cc3680 SHA512 c5d6a781b0be00ee14e6fa30ff0bbb26fd9548726ff0e101163a8b4206bec9c7ffb520679041c1f174c2f65d76ea71177718a6fc5e06e8191dc5510aafd33175
diff --git a/dev-ruby/tty-editor/metadata.xml b/dev-ruby/tty-editor/metadata.xml
new file mode 100644
index 000000000000..6ffa142e1abc
--- /dev/null
+++ b/dev-ruby/tty-editor/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>marecki@gentoo.org</email>
+ <name>Marek Szuba</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">piotrmurach/tty-editor</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/tty-editor/tty-editor-0.7.0.ebuild b/dev-ruby/tty-editor/tty-editor-0.7.0.ebuild
new file mode 100644
index 000000000000..ac5dd0f45c8c
--- /dev/null
+++ b/dev-ruby/tty-editor/tty-editor-0.7.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby26 ruby27"
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_EXTRADOC="README.md"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Opens a file or text in the user's preferred editor"
+HOMEPAGE="https://github.com/piotrmurach/tty-editor"
+SRC_URI="https://github.com/piotrmurach/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+ruby_add_rdepend ">=dev-ruby/tty-prompt-0.22"
+
+all_ruby_prepare() {
+ sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die
+ echo '-rspec_helper' > .rspec || die
+}
+
+each_ruby_prepare() {
+ mkdir tmp || die
+}