diff options
author | Hans de Graaff <graaff@gentoo.org> | 2012-12-14 16:08:58 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2012-12-14 16:08:58 +0000 |
commit | cfd7cd92973b0ac9bff609e66ec979ba8d6915f7 (patch) | |
tree | e30fde59815455c668c543a914f9531640d7a7ea /dev-ruby/async_sinatra | |
parent | Remove the (untested) jython support. (diff) | |
download | gentoo-2-cfd7cd92973b0ac9bff609e66ec979ba8d6915f7.tar.gz gentoo-2-cfd7cd92973b0ac9bff609e66ec979ba8d6915f7.tar.bz2 gentoo-2-cfd7cd92973b0ac9bff609e66ec979ba8d6915f7.zip |
Version bump.
(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Diffstat (limited to 'dev-ruby/async_sinatra')
-rw-r--r-- | dev-ruby/async_sinatra/ChangeLog | 10 | ||||
-rw-r--r-- | dev-ruby/async_sinatra/async_sinatra-1.0.0.ebuild | 46 | ||||
-rw-r--r-- | dev-ruby/async_sinatra/files/async_sinatra-1.0.0-extended-sinatra.patch | 19 |
3 files changed, 73 insertions, 2 deletions
diff --git a/dev-ruby/async_sinatra/ChangeLog b/dev-ruby/async_sinatra/ChangeLog index 9b37e4dd9678..7f1d637efe3d 100644 --- a/dev-ruby/async_sinatra/ChangeLog +++ b/dev-ruby/async_sinatra/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/async_sinatra -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/async_sinatra/ChangeLog,v 1.5 2011/03/19 06:31:31 graaff Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/async_sinatra/ChangeLog,v 1.6 2012/12/14 16:08:57 graaff Exp $ + +*async_sinatra-1.0.0 (14 Dec 2012) + + 14 Dec 2012; Hans de Graaff <graaff@gentoo.org> +async_sinatra-1.0.0.ebuild, + +files/async_sinatra-1.0.0-extended-sinatra.patch: + Version bump. 19 Mar 2011; Hans de Graaff <graaff@gentoo.org> -async_sinatra-0.1.5.ebuild, -async_sinatra-0.3.0.ebuild: diff --git a/dev-ruby/async_sinatra/async_sinatra-1.0.0.ebuild b/dev-ruby/async_sinatra/async_sinatra-1.0.0.ebuild new file mode 100644 index 000000000000..611ee96fad6b --- /dev/null +++ b/dev-ruby/async_sinatra/async_sinatra-1.0.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/async_sinatra/async_sinatra-1.0.0.ebuild,v 1.1 2012/12/14 16:08:57 graaff Exp $ + +EAPI=5 +USE_RUBY="ruby18 ree18 ruby19" + +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc README.rdoc" +RUBY_FAKEGEM_TASK_DOC="docs" + +inherit ruby-fakegem + +DESCRIPTION="Asynchronous response API for Sinatra and Thin" +HOMEPAGE="http://libraggi.rubyforge.org/async_sinatra" +SRC_URI="https://github.com/raggi/async_sinatra/archive/v${PV}.tar.gz -> ${P}-git.tgz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +RUBY_PATCHES=( "${FILESDIR}/${P}-extended-sinatra.patch" ) + +ruby_add_bdepend "test? ( + >=dev-ruby/hoe-2.9.1 + >=dev-ruby/minitest-2.5.1 + >=dev-ruby/rubyforge-2.0.4 + >=dev-ruby/eventmachine-0.12.11 + )" +ruby_add_bdepend "doc? ( >=dev-ruby/hoe-2.9.1 )" + +ruby_add_rdepend ">=dev-ruby/sinatra-1.3.2 + >=dev-ruby/rack-1.4.1" + +all_ruby_prepare() { + # Remove development dependencies that we don't have from the gemspec + sed -i -e '/\(hoe-doofus\|hoe-seattlerb\|hoe-git\|hoe-gemspec2\)/d' async_sinatra.gemspec || die +} + +all_ruby_install() { + all_fakegem_install + + insinto /usr/share/doc/${PF}/ + doins -r examples || die "Failed to install examples" +} diff --git a/dev-ruby/async_sinatra/files/async_sinatra-1.0.0-extended-sinatra.patch b/dev-ruby/async_sinatra/files/async_sinatra-1.0.0-extended-sinatra.patch new file mode 100644 index 000000000000..9c3ccc0cf912 --- /dev/null +++ b/dev-ruby/async_sinatra/files/async_sinatra-1.0.0-extended-sinatra.patch @@ -0,0 +1,19 @@ +commit f00c791c8baa150bea4de7a4efbe941b93470c02 +Author: Sam Soffes <sam@samsoff.es> +Date: Fri Sep 14 11:55:10 2012 -0700 + + Support Sinatra::ExtendedRack. Fixes #30 + +diff --git a/lib/sinatra/async/test.rb b/lib/sinatra/async/test.rb +index 1571dbe..7e98aca 100644 +--- a/lib/sinatra/async/test.rb ++++ b/lib/sinatra/async/test.rb +@@ -87,6 +87,8 @@ class Sinatra::Async::Test + # This hack exists because sinatra is now returning a proper rack stack. + # We might need to consider alternative approaches in future. + app = app() ++ app = app.app if app.is_a?(Sinatra::ExtendedRack) ++ + until app.nil? || app.is_a?(Sinatra::Base) + app = app.instance_variable_get(:@app) + end |