commit:     f35a37564107105b6defea26950b3b83313b5d21
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 22 06:14:56 2018 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Thu Nov 22 06:14:56 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f35a3756

dev-ruby/mqtt: fix USE=doc and FEATURES=test

Add missing ruby targets.
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/mqtt/Manifest          |  2 +-
 dev-ruby/mqtt/metadata.xml      |  4 ++++
 dev-ruby/mqtt/mqtt-0.5.0.ebuild | 15 ++++++++++++---
 3 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/dev-ruby/mqtt/Manifest b/dev-ruby/mqtt/Manifest
index 3ea69bb8844..46758110bb7 100644
--- a/dev-ruby/mqtt/Manifest
+++ b/dev-ruby/mqtt/Manifest
@@ -1 +1 @@
-DIST mqtt-0.5.0.gem 39936 BLAKE2B 
2bde8837d1ade162214a5a66ac1a146c2482d6277bdbafcfa6b35a855f59482de27db56c4f51eb462d4a5314e6c86d971096fecbbe03bf4a7ea652bfde4299b1
 SHA512 
998c795f742711053de235b2b71f1860a7c7c3c22a8d3c845c5e0e0c9215b74330e71fb50798e8d45a9b188f588370b988446000a33e1e9b2f6ec85c4a59dac7
+DIST mqtt-0.5.0.tar.gz 43944 BLAKE2B 
1bd1002a83af339627377ecd850980fc00788133da3393e999dd798ac7544d70a6fdd45129b03ae36402aac28a3212171b77df2223fdee45ea4778405e61543b
 SHA512 
ad6e6cb4775e89725a9aa02f2a1d91871cd34f2e5bf35033456b93ec09ec90a6fdcf1cbaf8822e1f032f0a52cde23db55fbb1e4eff4540e331397c180e7c6ed0

diff --git a/dev-ruby/mqtt/metadata.xml b/dev-ruby/mqtt/metadata.xml
index 716228b4f23..9e17fa25f64 100644
--- a/dev-ruby/mqtt/metadata.xml
+++ b/dev-ruby/mqtt/metadata.xml
@@ -5,6 +5,10 @@
     <email>[email protected]</email>
     <name>Rick Farina</name>
   </maintainer>
+  <maintainer type="project">
+    <email>[email protected]</email>
+    <name>Gentoo Ruby Project</name>
+  </maintainer>
   <upstream>
     <remote-id type="github">njh/ruby-mqtt</remote-id>
   </upstream>

diff --git a/dev-ruby/mqtt/mqtt-0.5.0.ebuild b/dev-ruby/mqtt/mqtt-0.5.0.ebuild
index edcbff7f972..b79fcdf1b13 100644
--- a/dev-ruby/mqtt/mqtt-0.5.0.ebuild
+++ b/dev-ruby/mqtt/mqtt-0.5.0.ebuild
@@ -3,15 +3,24 @@
 
 EAPI=6
 
-USE_RUBY="ruby24"
+USE_RUBY="ruby23 ruby24 ruby25"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
 
 inherit ruby-fakegem
 
 DESCRIPTION="Pure Ruby gem that implements the MQTT protocol"
 HOMEPAGE="https://github.com/njh/ruby-mqtt";
-SRC_URI="mirror://rubygems/${P}.gem"
+SRC_URI="https://github.com/njh/ruby-mqtt/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+RUBY_S="ruby-${P}"
 
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~x86"
-IUSE=""
+IUSE="test"
+
+all_ruby_prepare() {
+       sed -i -e '/bundler/I s:^:#: ; /SimpleCov/ s:^:#:' spec/spec_helper.rb 
|| die
+}

Reply via email to