commit: 8cb1b592372396da24d3e0efd8e532df0f6f587b Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Mon Nov 26 06:20:20 2018 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Mon Nov 26 06:20:20 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cb1b592
dev-ruby/em-websocket: fix FEATURES=test and dependencies Match dependencies to gemspec. Unbreak DEPEND and RDEPEND. Run unit tests only due to unpackaged dependencies. Install proper gemspec file. Add ruby as co-maintainer. Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 dev-ruby/em-websocket/em-websocket-0.5.1.ebuild | 21 +++++++++++++++------ dev-ruby/em-websocket/metadata.xml | 4 ++++ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/dev-ruby/em-websocket/em-websocket-0.5.1.ebuild b/dev-ruby/em-websocket/em-websocket-0.5.1.ebuild index 9e941fc5e43..42534c14304 100644 --- a/dev-ruby/em-websocket/em-websocket-0.5.1.ebuild +++ b/dev-ruby/em-websocket/em-websocket-0.5.1.ebuild @@ -1,14 +1,18 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 USE_RUBY="ruby23 ruby24 ruby25" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + RUBY_FAKEGEM_RECIPE_DOC="rdoc" RUBY_FAKEGEM_DOCDIR="rdoc" RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + inherit ruby-fakegem DESCRIPTION="EventMachine based WebSocket server" @@ -20,14 +24,19 @@ SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" IUSE="" -DEPEND="" -RDEPEND="" - ruby_add_rdepend " - >=dev-ruby/eventmachine-0.5 - >=dev-ruby/http_parser_rb-0.6.0 + >=dev-ruby/eventmachine-0.12.9 + =dev-ruby/http_parser_rb-0.6* " +all_ruby_prepare() { + # 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 diff --git a/dev-ruby/em-websocket/metadata.xml b/dev-ruby/em-websocket/metadata.xml index 6c884949856..8cebe0b9e50 100644 --- a/dev-ruby/em-websocket/metadata.xml +++ b/dev-ruby/em-websocket/metadata.xml @@ -5,6 +5,10 @@ <email>b...@gentoo.org</email> <name>Aaron Bauman</name> </maintainer> + <maintainer type="project"> + <email>r...@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> <upstream> <remote-id type="github">igrigorik/em-websocket</remote-id> </upstream>