summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-05-26 08:10:43 +0200
committerHans de Graaff <graaff@gentoo.org>2017-05-26 08:10:43 +0200
commitd130e5492fc05cacd68af2b59aa0a7a4c9a7f9a5 (patch)
tree5afc7db21e4482e8c2d699403a45b9547f7a8d86 /dev-ruby/hitimes
parentdev-ruby/hitimes: cleanup (diff)
downloadgentoo-d130e5492fc05cacd68af2b59aa0a7a4c9a7f9a5.tar.gz
gentoo-d130e5492fc05cacd68af2b59aa0a7a4c9a7f9a5.tar.bz2
gentoo-d130e5492fc05cacd68af2b59aa0a7a4c9a7f9a5.zip
dev-ruby/hitimes: add 1.2.5
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'dev-ruby/hitimes')
-rw-r--r--dev-ruby/hitimes/Manifest1
-rw-r--r--dev-ruby/hitimes/hitimes-1.2.5.ebuild35
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/hitimes/Manifest b/dev-ruby/hitimes/Manifest
index 31259b517db3..853501e1e60f 100644
--- a/dev-ruby/hitimes/Manifest
+++ b/dev-ruby/hitimes/Manifest
@@ -1 +1,2 @@
DIST hitimes-1.2.4.gem 32256 SHA256 9f026a767ccd2c50654d5772de3f3fc57aeba72ee4a7e481e8afdc7d24749ea8 SHA512 a4da8590297f4472ec6e98db0083e5fb5923284fea15e9c2da62476c1200f9cb6d12b77f369c374706457b5ce260dd1d9bfc93bf4c256cb1fbc63a4c463185c3 WHIRLPOOL f4a76a8e4ec2b48d2fd06f818410b1ceef3218c1d4c3c6666711d6f34841e728531b4c65e2a4f507fef225ac4e49132f8c4de2a48398ddaf72a243552f0d31fc
+DIST hitimes-1.2.5.gem 32256 SHA256 01a86a5bf571a6787877347226aa36e18d81b48cdc25c014e92ddfaeece542b5 SHA512 b59915b96076bb229213710bfe21a8efb1602ea01a7b7559e91ae770b1051300901b572655c0c030ad543632b57443fd0ff34296b9018376cdc40d460198c5e3 WHIRLPOOL 25abc1b7f95bfda45ce9fc9370e952e3251d3c6054deb28277ce056e5e4823c77ed68681a9319ffc3b76f835bc97dc96cd9b9aa8c9d012c1d06e533b8d4c19a8
diff --git a/dev-ruby/hitimes/hitimes-1.2.5.ebuild b/dev-ruby/hitimes/hitimes-1.2.5.ebuild
new file mode 100644
index 000000000000..2c939425fb9e
--- /dev/null
+++ b/dev-ruby/hitimes/hitimes-1.2.5.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md HISTORY.md"
+
+inherit multilib ruby-fakegem
+
+DESCRIPTION="A fast, high resolution timer library"
+HOMEPAGE="https://github.com/copiousfreetime/hitimes"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+all_ruby_prepare() {
+ sed -i -e "/RUBY_VERSION >= '1.9.2'/,+4d" spec/spec_helper.rb || die
+}
+
+each_ruby_configure() {
+ ${RUBY} -Cext/hitimes/c extconf.rb || die
+}
+
+each_ruby_compile() {
+ emake -Cext/hitimes/c V=1
+ cp ext/hitimes/c/hitimes$(get_modname) lib/hitimes || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:spec:. -e 'Dir["spec/*_spec.rb"].each{|f| require f}' || die
+}