summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-08-05 07:52:45 +0200
committerHans de Graaff <graaff@gentoo.org>2017-08-05 07:52:45 +0200
commitb1b385eb50047606ca80af8f886a99013b28ee4c (patch)
treeb3920c9fb86d970c29c3045cc6957de2189ebe35 /dev-ruby/hitimes
parentx11-misc/xsetleds: remove old and fix metadata. (diff)
downloadgentoo-b1b385eb50047606ca80af8f886a99013b28ee4c.tar.gz
gentoo-b1b385eb50047606ca80af8f886a99013b28ee4c.tar.bz2
gentoo-b1b385eb50047606ca80af8f886a99013b28ee4c.zip
dev-ruby/hitimes: add 1.2.6
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-ruby/hitimes')
-rw-r--r--dev-ruby/hitimes/Manifest1
-rw-r--r--dev-ruby/hitimes/hitimes-1.2.6.ebuild35
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/hitimes/Manifest b/dev-ruby/hitimes/Manifest
index 853501e1e60f..9c70e69f87d7 100644
--- a/dev-ruby/hitimes/Manifest
+++ b/dev-ruby/hitimes/Manifest
@@ -1,2 +1,3 @@
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
+DIST hitimes-1.2.6.gem 32256 SHA256 5939da5baf4bed890b481d77dc37d481297d0f06f1d2569f4c5c9a2112144218 SHA512 41954000f38f4671b8ac7b5e408aa4a8d36756cee7807a5fc8b1584ecd463c38c36e9ac06966e2302730042193faea1a1a35dbb06f7c53bc594af8420f687257 WHIRLPOOL f60be9b82dbfd73705016c70cc1ff1a9ca47c2874c689d2658725f26bfa8cb1e97a420696768e02e18209a6909c6bc52365b8157d32b4f42efff7874c120fdb4
diff --git a/dev-ruby/hitimes/hitimes-1.2.6.ebuild b/dev-ruby/hitimes/hitimes-1.2.6.ebuild
new file mode 100644
index 000000000000..2c939425fb9e
--- /dev/null
+++ b/dev-ruby/hitimes/hitimes-1.2.6.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
+}