summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2013-10-05 12:32:58 +0000
committerManuel Rüger <mrueg@gentoo.org>2013-10-05 12:32:58 +0000
commit0c12e2e3ebd3d05643c21dc2a88b8e2a7024baf1 (patch)
tree0d8a9cdfb4e537945488ee84054b2534e50c80b9 /dev-ruby/session
parentVersion bump, with thanks to Lars Wendler for the ebuild in bug 483264 (diff)
downloadgentoo-2-0c12e2e3ebd3d05643c21dc2a88b8e2a7024baf1.tar.gz
gentoo-2-0c12e2e3ebd3d05643c21dc2a88b8e2a7024baf1.tar.bz2
gentoo-2-0c12e2e3ebd3d05643c21dc2a88b8e2a7024baf1.zip
Add ruby20 target. Remove virtual/ruby-test-unit dep.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key )
Diffstat (limited to 'dev-ruby/session')
-rw-r--r--dev-ruby/session/ChangeLog7
-rw-r--r--dev-ruby/session/session-3.1.0-r2.ebuild52
2 files changed, 58 insertions, 1 deletions
diff --git a/dev-ruby/session/ChangeLog b/dev-ruby/session/ChangeLog
index a3488d551375..f7a33445f40c 100644
--- a/dev-ruby/session/ChangeLog
+++ b/dev-ruby/session/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ruby/session
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/session/ChangeLog,v 1.30 2013/08/03 07:39:32 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/session/ChangeLog,v 1.31 2013/10/05 12:32:58 mrueg Exp $
+
+*session-3.1.0-r2 (05 Oct 2013)
+
+ 05 Oct 2013; Manuel Rüger <mrueg@gentoo.org> +session-3.1.0-r2.ebuild:
+ Add ruby20 target. Remove virtual/ruby-test-unit dep.
03 Aug 2013; Agostino Sarubbo <ago@gentoo.org> session-3.1.0-r1.ebuild:
Stable for sparc, wrt bug #472910
diff --git a/dev-ruby/session/session-3.1.0-r2.ebuild b/dev-ruby/session/session-3.1.0-r2.ebuild
new file mode 100644
index 000000000000..85c98cacb10e
--- /dev/null
+++ b/dev-ruby/session/session-3.1.0-r2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/session/session-3.1.0-r2.ebuild,v 1.1 2013/10/05 12:32:58 mrueg Exp $
+
+EAPI=5
+
+USE_RUBY="ruby18 ruby19 ruby20 jruby"
+
+RUBY_FAKEGEM_TASK_TEST=""
+RUBY_FAKEGEM_TASK_DOC=""
+
+RUBY_FAKEGEM_EXTRADOC="README"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A set of classes to drive external programs via pipe"
+HOMEPAGE="http://codeforpeople.com/lib/ruby/session/"
+#SRC_URI="http://codeforpeople.com/lib/ruby/session/${P}.tgz"
+
+# License info based on http://github.com/ahoward/session as indicated
+# by author.
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE="test"
+
+DEPEND+=" test? ( || ( sys-apps/coreutils sys-freebsd/freebsd-bin ) )"
+
+all_ruby_prepare() {
+ # needed to void a collision with the Timeout::Error alias in Ruby
+ # 1.8.7 at least.
+ sed -i -e 's:TimeoutError:SessionTimeoutError:' test/session.rb || die
+}
+
+each_ruby_prepare() {
+ case ${RUBY} in
+ *jruby)
+ epatch "${FILESDIR}"/${P}-jruby.patch
+ ;;
+ esac
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib test/*.rb || die "tests failed"
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ docinto examples
+ dodoc sample/*
+}