summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-07-12 07:59:28 +0200
committerHans de Graaff <graaff@gentoo.org>2023-07-12 09:46:28 +0200
commit4cddbb5f23fe05f50dbb7b66840a4d417bf92487 (patch)
tree05a430cdbceb912dcc66251a655a2e9f252f063e /dev-ruby/em-websocket
parentdev-ruby/evented-spec: enable ruby32 (diff)
downloadgentoo-4cddbb5f23fe05f50dbb7b66840a4d417bf92487.tar.gz
gentoo-4cddbb5f23fe05f50dbb7b66840a4d417bf92487.tar.bz2
gentoo-4cddbb5f23fe05f50dbb7b66840a4d417bf92487.zip
dev-ruby/em-websocket: add ruby32
Fix http_parser_rb version requirement. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/em-websocket')
-rw-r--r--dev-ruby/em-websocket/em-websocket-0.5.3-r1.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/em-websocket/em-websocket-0.5.3-r1.ebuild b/dev-ruby/em-websocket/em-websocket-0.5.3-r1.ebuild
new file mode 100644
index 000000000000..43c8a335c529
--- /dev/null
+++ b/dev-ruby/em-websocket/em-websocket-0.5.3-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby30 ruby31 ruby32"
+
+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 ~x64-solaris"
+IUSE=""
+
+ruby_add_rdepend "
+ >=dev-ruby/eventmachine-0.12.9
+ dev-ruby/http_parser_rb:0
+"
+
+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
+
+ dodoc -r examples
+}