diff options
Diffstat (limited to 'dev-ruby/async_sinatra/async_sinatra-1.3.0.ebuild')
-rw-r--r-- | dev-ruby/async_sinatra/async_sinatra-1.3.0.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-ruby/async_sinatra/async_sinatra-1.3.0.ebuild b/dev-ruby/async_sinatra/async_sinatra-1.3.0.ebuild new file mode 100644 index 000000000000..6e70d0fca70e --- /dev/null +++ b/dev-ruby/async_sinatra/async_sinatra-1.3.0.ebuild @@ -0,0 +1,41 @@ +# 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.rdoc README.rdoc" + +inherit ruby-fakegem + +DESCRIPTION="Asynchronous response API for Sinatra and Thin" +HOMEPAGE="https://github.com/raggi/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_add_bdepend "test? ( + >=dev-ruby/hoe-3.13 + >=dev-ruby/minitest-5.6:5 + >=dev-ruby/eventmachine-0.12.11 + dev-ruby/rake + dev-ruby/rack-test + )" + +ruby_add_rdepend ">=dev-ruby/sinatra-1.3.2 + >=dev-ruby/rack-1.4.1:*" + +each_ruby_test() { + MT_NO_PLUGINS=true ${RUBY} -S rake test || die +} + +all_ruby_install() { + all_fakegem_install + + insinto /usr/share/doc/${PF}/ + doins -r examples || die "Failed to install examples" +} |