diff options
-rw-r--r-- | dev-ruby/hitimes/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/hitimes/hitimes-1.2.5.ebuild | 35 |
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 +} |