summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2014-03-02 06:32:33 +0000
committerHans de Graaff <graaff@gentoo.org>2014-03-02 06:32:33 +0000
commit7058222e48814f411d581b48596461a9ad36570a (patch)
treebcb38a8239f28e8ef4d024741697ff8a238282b6 /dev-ruby/highline
parentNew package and initial release. (diff)
downloadgentoo-2-7058222e48814f411d581b48596461a9ad36570a.tar.gz
gentoo-2-7058222e48814f411d581b48596461a9ad36570a.tar.bz2
gentoo-2-7058222e48814f411d581b48596461a9ad36570a.zip
Version bump. Add ruby21.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Diffstat (limited to 'dev-ruby/highline')
-rw-r--r--dev-ruby/highline/ChangeLog7
-rw-r--r--dev-ruby/highline/highline-1.6.21.ebuild47
2 files changed, 53 insertions, 1 deletions
diff --git a/dev-ruby/highline/ChangeLog b/dev-ruby/highline/ChangeLog
index 1392041eefe3..af468b4aaf78 100644
--- a/dev-ruby/highline/ChangeLog
+++ b/dev-ruby/highline/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ruby/highline
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/highline/ChangeLog,v 1.88 2014/01/18 20:33:42 mrueg Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/highline/ChangeLog,v 1.89 2014/03/02 06:32:33 graaff Exp $
+
+*highline-1.6.21 (02 Mar 2014)
+
+ 02 Mar 2014; Hans de Graaff <graaff@gentoo.org> +highline-1.6.21.ebuild:
+ Version bump. Add ruby21.
18 Jan 2014; Manuel Rüger <mrueg@gentoo.org> -highline-1.6.13.ebuild:
Cleanup old.
diff --git a/dev-ruby/highline/highline-1.6.21.ebuild b/dev-ruby/highline/highline-1.6.21.ebuild
new file mode 100644
index 000000000000..cc15422660df
--- /dev/null
+++ b/dev-ruby/highline/highline-1.6.21.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/highline/highline-1.6.21.ebuild,v 1.1 2014/03/02 06:32:33 graaff Exp $
+
+EAPI=5
+
+USE_RUBY="ruby18 ruby19 ruby20 ruby21 jruby"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.rdoc TODO"
+RUBY_FAKEGEM_DOCDIR="doc/html"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Highline is a high-level command-line IO library for ruby."
+HOMEPAGE="http://highline.rubyforge.org/"
+
+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 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.
+ sed -i -e '/tc_highline/ s:^:#:' test/ts_all.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
+}
+
+each_ruby_test() {
+ case ${RUBY} in
+ *jruby)
+ ewarn "Skipping tests since they hang indefinitely."
+ ;;
+ *)
+ ${RUBY} -S rake test || die
+ ;;
+ esac
+}