summaryrefslogtreecommitdiff
path: root/dev-ruby/highline
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-ruby/highline
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-ruby/highline')
-rw-r--r--dev-ruby/highline/Manifest5
-rw-r--r--dev-ruby/highline/highline-1.7.8.ebuild39
-rw-r--r--dev-ruby/highline/highline-2.0.0.ebuild34
-rw-r--r--dev-ruby/highline/metadata.xml11
4 files changed, 89 insertions, 0 deletions
diff --git a/dev-ruby/highline/Manifest b/dev-ruby/highline/Manifest
new file mode 100644
index 000000000000..111f17d43e00
--- /dev/null
+++ b/dev-ruby/highline/Manifest
@@ -0,0 +1,5 @@
+DIST highline-1.7.8.gem 224768 BLAKE2B 683fa70e3ea4bf697ab5a1cd40da2528e2586f8fe12fb0ffb799938f2bfa2efe64fe1424c0ee1f90ae3df69f86a92f44eebcbb2ab34f18b3c4cdbb143e596067 SHA512 85f57ab732009cc961b824e252f0b65bbe7c0a8c97849d453773a331016b2ea8fa0efe393bc1a0073eae6d3cf523d97b9434cd73bdceed55bc069be0b6f4b41d
+DIST highline-2.0.0.tar.gz 233750 BLAKE2B ac696d63aaf15309a8235d9a0c25e4722b257cda154bd00a420675e1bccedb5f06122f3532ac200685f22753783152255194751f2e3bdc908f80b278f325328c SHA512 d1a96233ffb97b2985e7afebd3755d1b28d89ac2d84a3ec8c04450680c1149f1fcc46f0221242768a2aafa8bfbde4f5a6f3951013c0b5d25a3aa88f1e571b4d8
+EBUILD highline-1.7.8.ebuild 1257 BLAKE2B deb0d4c65d9f398f6439b807382fdc2443c36ddb71afad3836ef39c903cbb2d1f1672dab1cbb097b5ca573e0567edae4ff3829eb3abb5ede257052c0ca30caff SHA512 38fce67ec881c2252937c9bb06692fc8ac5ec79a3e742d4ded53b2dfc60095f487f543de74d55359cee316abd3ae690c2874a2ada699b0b31ce9f610a0270f4d
+EBUILD highline-2.0.0.ebuild 1059 BLAKE2B ed1d31388afe508096023d8b25150ab2630cace14e77ba8cf2bab647a5340590f5feca87993807845c260930ce140b9003cbed3779aeed1e86fa4adfe815a4e4 SHA512 e58836abfc956d17ac88e832d602c0281c318aa68eb30dda5a29adb4e5f617574383d006464cc8e9e7f4fba30a739d0fe60f3ea65f5c18697c2985f2f0cb2996
+MISC metadata.xml 339 BLAKE2B 58671f84213ed36194c80df5fdac1618917b26161ddf8a8829980f5ce7e7aa242c84d17aaef0be655a36ccdad24d93714ccd6875fc073ab537c2186e33da5e8a SHA512 723488f3e201d857ceffdbc6779199469aea1d3d21a391c5bd5ab9402388e6c32e4964491a609d7065d0684a256811be04f2df20b3db745d83c4cb8bd769a945
diff --git a/dev-ruby/highline/highline-1.7.8.ebuild b/dev-ruby/highline/highline-1.7.8.ebuild
new file mode 100644
index 000000000000..b96e814ec0af
--- /dev/null
+++ b/dev-ruby/highline/highline-1.7.8.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+USE_RUBY="ruby22 ruby23 ruby24 ruby25"
+
+RUBY_FAKEGEM_EXTRADOC="Changelog.md README.rdoc TODO"
+RUBY_FAKEGEM_DOCDIR="doc/html"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Highline is a high-level command-line IO library for ruby"
+HOMEPAGE="https://github.com/JEG2/highline"
+
+IUSE=""
+LICENSE="|| ( GPL-2 Ruby )"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+
+all_ruby_prepare() {
+ # fix up gemspec file not to call git
+ sed -i -e '/git ls-files/d' highline.gemspec || die
+
+ # Avoid unneeded dependencies
+ sed -i -e '/\(bundler\|code_statistics\)/ s:^:#:' \
+ -e '/PackageTask/,/end/ s:^:#:' Rakefile || die
+
+ # Avoid tests that require a real console because we can't provide
+ # that when running tests through portage. These should pass when
+ # run in a console. We should probably narrow this down more to the
+ # specific tests.
+ rm test/tc_highline.rb || die
+
+ sed -i -e '/test_question_options/,/^ end/ s:^:#:' \
+ -e '/test_paged_print_infinite_loop_bug/,/^ end/ s:^:#:' \
+ -e '/test_cancel_paging/,/^ end/ s:^:#:' \
+ test/tc_menu.rb || die
+}
diff --git a/dev-ruby/highline/highline-2.0.0.ebuild b/dev-ruby/highline/highline-2.0.0.ebuild
new file mode 100644
index 000000000000..6a3821d48355
--- /dev/null
+++ b/dev-ruby/highline/highline-2.0.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby23 ruby24 ruby25"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+
+RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md TODO"
+
+inherit ruby-fakegem eapi7-ver
+
+DESCRIPTION="Highline is a high-level command-line IO library for ruby"
+HOMEPAGE="https://github.com/JEG2/highline"
+SRC_URI="https://github.com/JEG2/highline/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+IUSE=""
+LICENSE="|| ( GPL-2 Ruby )"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+
+all_ruby_prepare() {
+ # fix up gemspec file not to call git
+ sed -i -e '/git ls-files/d' highline.gemspec || die
+
+ # Avoid unneeded dependencies
+ sed -i -e '/\(bundler\|code_statistics\)/ s:^:#:' \
+ -e '/PackageTask/,/end/ s:^:#:' Rakefile || die
+ sed -i -e '/simplecov/ s:^:#:' test/test_helper.rb || die
+
+ # Remove almost empty doc directory to allow rdoc recipe to work
+ rm -rf doc || die
+}
diff --git a/dev-ruby/highline/metadata.xml b/dev-ruby/highline/metadata.xml
new file mode 100644
index 000000000000..1c5e41a1bb52
--- /dev/null
+++ b/dev-ruby/highline/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="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">JEG2/highline</remote-id>
+ </upstream>
+</pkgmetadata>