summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-01-10 07:59:42 +0100
committerHans de Graaff <graaff@gentoo.org>2016-01-10 07:59:42 +0100
commit31f4b05b3be3f146f47716d3b041c6e9adba9a92 (patch)
tree4a8137243c9839aba5274415770fc9c771b0893b /dev-ruby/msgpack
parentdev-ruby/msgpack: cleanup (diff)
downloadgentoo-31f4b05b3be3f146f47716d3b041c6e9adba9a92.tar.gz
gentoo-31f4b05b3be3f146f47716d3b041c6e9adba9a92.tar.bz2
gentoo-31f4b05b3be3f146f47716d3b041c6e9adba9a92.zip
dev-ruby/msgpack: add 0.7.4
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-ruby/msgpack')
-rw-r--r--dev-ruby/msgpack/Manifest1
-rw-r--r--dev-ruby/msgpack/msgpack-0.7.4.ebuild41
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-ruby/msgpack/Manifest b/dev-ruby/msgpack/Manifest
index 2e50a4ef4a18..8da1b546fc0b 100644
--- a/dev-ruby/msgpack/Manifest
+++ b/dev-ruby/msgpack/Manifest
@@ -1 +1,2 @@
DIST msgpack-0.7.1.gem 73216 SHA256 27d6182a94057f1d73f04acbd242c647e089a4bac469d5dc7dc4195afab53947 SHA512 dde9492b6bfa56e070043e4f55beaba1f9fc509df643acb946048b30d566a3e3d9c278f6691bc065507382cfe9a975fd658e2ccfc7370123d67cededf18cd807 WHIRLPOOL 9679761d5b780852ebf6a1cbc3746b63079139c6df86d8c8b9292e6d7fb4268076cc924f7ad51e9b32e8fd54ee200444a28874e537cf94e3e43446fc8e7f7855
+DIST msgpack-0.7.4.gem 74752 SHA256 c4fa8f8d727877b3dc9f90dfe0fff0b012df5d49e6498c5a33a4ec03f9e2be72 SHA512 4e78df4abe0f9c91a67f66108ee4e8420651d8d23a6ec7de9241138fd1065ce723ad68648c0bd4572801f800363e7f1f34362312d8f861857ffcdfc7accd950a WHIRLPOOL e08f686772af7e549e3997dfa382c8f94b97fe40ce1de3cb6fbfda01286d1e55bc80854c82869e0a0d54125a855e3761ede25225e9c8b69f5e732581bf23593e
diff --git a/dev-ruby/msgpack/msgpack-0.7.4.ebuild b/dev-ruby/msgpack/msgpack-0.7.4.ebuild
new file mode 100644
index 000000000000..d6f6e81f595f
--- /dev/null
+++ b/dev-ruby/msgpack/msgpack-0.7.4.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_TASK_DOC="doc"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_EXTRADOC="README.rdoc"
+
+inherit multilib ruby-fakegem
+
+DESCRIPTION="Binary-based efficient data interchange format for ruby binding"
+HOMEPAGE="http://msgpack.org/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE="doc"
+
+ruby_add_bdepend "doc? ( dev-ruby/yard )"
+
+all_ruby_prepare() {
+ sed -i -e '/bundler/I s:^:#:' Rakefile || die
+
+ # Remove jruby-specific specs that are run also for other rubies.
+ rm -rf spec/jruby || die
+
+ sed -i -e '/git ls-files/d' msgpack.gemspec || die
+}
+
+each_ruby_configure() {
+ ${RUBY} -Cext/${PN} extconf.rb || die "Configuration of extension failed."
+}
+
+each_ruby_compile() {
+ emake V=1 -Cext/${PN}
+ cp ext/${PN}/msgpack$(get_modname) lib/${PN} || die "Unable to install msgpack library."
+}