diff options
author | Hans de Graaff <graaff@gentoo.org> | 2020-09-25 07:45:04 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2020-09-25 08:09:02 +0200 |
commit | b173bf40d39751dccdb5780ec7557f61bb9b5b4b (patch) | |
tree | c7b9dc5912c49d1986bab9644fb54fb5c4041514 /dev-ruby/em-websocket/em-websocket-0.5.2.ebuild | |
parent | dev-ruby/parser: add 2.7.1.5 (diff) | |
download | gentoo-b173bf40d39751dccdb5780ec7557f61bb9b5b4b.tar.gz gentoo-b173bf40d39751dccdb5780ec7557f61bb9b5b4b.tar.bz2 gentoo-b173bf40d39751dccdb5780ec7557f61bb9b5b4b.zip |
dev-ruby/em-websocket: add 0.5.2
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/em-websocket/em-websocket-0.5.2.ebuild')
-rw-r--r-- | dev-ruby/em-websocket/em-websocket-0.5.2.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-ruby/em-websocket/em-websocket-0.5.2.ebuild b/dev-ruby/em-websocket/em-websocket-0.5.2.ebuild new file mode 100644 index 000000000000..61ebed06f908 --- /dev/null +++ b/dev-ruby/em-websocket/em-websocket-0.5.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +USE_RUBY="ruby25 ruby26" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_DOCDIR="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="EventMachine based WebSocket server" +HOMEPAGE="https://rubygems.org/gems/em-websocket" +SRC_URI="https://github.com/igrigorik/em-websocket/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" +IUSE="" + +ruby_add_rdepend " + >=dev-ruby/eventmachine-0.12.9 + =dev-ruby/http_parser_rb-0.6* +" + +all_ruby_prepare() { + # Avoid dependency on git + sed -i -e '/ls-files/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Only run unit tests since we require unpackaged code for the + # integration tests. + sed -i -e "/^require 'em-\(spec\|http\|websocket-client\)/ s:^:#:" \ + -e "/^require 'integration/ s:^:#:" spec/helper.rb || die + rm -fr spec/integration || die +} + +all_ruby_install() { + all_fakegem_install + + insinto /usr/share/doc/${PF}/ + doins -r examples +} |