dev-ruby/highline: version bump
authorHans de Graaff <graaff@gentoo.org>
Fri, 18 Sep 2015 05:21:37 +0000 (07:21 +0200)
committerHans de Graaff <graaff@gentoo.org>
Fri, 18 Sep 2015 05:24:47 +0000 (07:24 +0200)
Package-Manager: portage-2.2.20.1

dev-ruby/highline/Manifest
dev-ruby/highline/highline-1.7.6.ebuild [new file with mode: 0644]

index 5b12d7c6efbb65910f43cc0f1131a7bb093dce93..edeb75cf3c8e68b391f63df1e360e9f27c89813a 100644 (file)
@@ -3,3 +3,4 @@ DIST highline-1.7.1.gem 224256 SHA256 d99d40a65ea24b10e38629ccae6ab1ef466ddb3fde
 DIST highline-1.7.2.gem 224256 SHA256 5beef0869e444075e701ffd87f47a9ebc6beb4c417976425d454d2775bdf9d91 SHA512 a53e3b5685c85b6e6a890747b95bede695cd8fed0fa3b0b43eafe2337f35f0cf846fae1fe684ac59649f95f7da422dcb30100fd46eb05ade4bdd8362cd697f0a WHIRLPOOL 05c6c8e05004c70b7fe827e7760a2ce447297c69f7c322d6842cb0c46a8b28b8506c494308bf15cfc58abfae64fa0dc1ad4f1bfa990360bed5d723dec4d80165
 DIST highline-1.7.3.gem 224256 SHA256 d2f7b7bf88499a156130e40038d0b3046e1da20fd8eece46a31577a533ab2d0d SHA512 29cd6a2d77529b9c54b16cdd01866d5d779189633f39d1a3f8f36bac940e034c6073563f831d733b30a5280527f86ad6116508d6c8261af7ea09173aa5093151 WHIRLPOOL f74ce3ffe79db0553245f145c76ddf8d5438a699e7b4cd9ce2135a0738fe1fa2a45ca8ddf7fbd6e14fc3948717bcdb9c395658c968388af1f0dccc61325d5fd0
 DIST highline-1.7.5.gem 224256 SHA256 5d402f3e468a672d9921f142bbd9e0e9d46bcd5d7f1d3a6ff5bdc8f385541414 SHA512 51fdfd893bd499d3089400063cb918e0518aca18ba96f84776ed36591ad3450aca4c704ac6ad8881c6ff54bb1174f1bf9e085e587301b4292cf43d71d8281262 WHIRLPOOL 3e4cf29fe47174a2a36d1f76dc5e4239f544b09905a9e4e6f854f790e3ae5adbd75430393254f18a26e554c892b4d343068aa3dff4c190b93e50bbe6cc5514bb
+DIST highline-1.7.6.gem 224256 SHA256 17d22a44993eb5e9836cc2804a966ace22386f2a0e37cc1cb7d5b69b433fabe3 SHA512 0ecf743d92227c17d19649afd909ed90e27f159aa54dd3ccfa7591dc4a95e17aebd5082f9a89c5c663a7db53a8cf9a90bb28ee4b6987254edb34c1e494b4ac20 WHIRLPOOL c7be26f6fa3d454175d5b4102c521bc0fa8b0502798b0e3c39c8f579eac82c82a5660b89a1c10ec57cd8d5621d3f01cd1adc782e6944193f08fb7351b74cd0de
diff --git a/dev-ruby/highline/highline-1.7.6.ebuild b/dev-ruby/highline/highline-1.7.6.ebuild
new file mode 100644 (file)
index 0000000..07bc7fc
--- /dev/null
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby19 ruby20 ruby21 ruby22"
+
+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
+}