1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 USE_RUBY="ruby24 ruby25 ruby26 ruby27"
7 RUBY_FAKEGEM_RECIPE_DOC="rdoc"
8 RUBY_FAKEGEM_EXTRADOC="README.md"
10 RUBY_FAKEGEM_RECIPE_TEST="rspec3"
12 RUBY_FAKEGEM_GEMSPEC="strptime.gemspec"
14 RUBY_FAKEGEM_BINWRAP=""
16 inherit multilib ruby-fakegem
18 DESCRIPTION="A fast strptime/strftime engine which uses VM"
19 HOMEPAGE="https://github.com/nurse/strptime"
20 SRC_URI="https://github.com/nurse/strptime/archive/v${PV}.tar.gz -> ${P}.tar.gz"
28 sed -i -e 's/git ls-files -z/find -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
31 each_ruby_configure() {
32 ${RUBY} -Cext/strptime extconf.rb || die
36 emake -Cext/strptime V=1
37 cp ext/strptime/strptime$(get_modname) lib/strptime/ || die