Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/strptime/
Date: Sat, 26 Sep 2020 07:20:25
Message-Id: 1601104802.7aadfdc10ba230aa458a070549dbfe5a7abaa075.graaff@gentoo
1 commit: 7aadfdc10ba230aa458a070549dbfe5a7abaa075
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 26 07:18:56 2020 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 26 07:20:02 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7aadfdc1
7
8 dev-ruby/strptime: add 0.2.5
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/strptime/Manifest | 1 +
14 dev-ruby/strptime/strptime-0.2.5.ebuild | 37 +++++++++++++++++++++++++++++++++
15 2 files changed, 38 insertions(+)
16
17 diff --git a/dev-ruby/strptime/Manifest b/dev-ruby/strptime/Manifest
18 index 98817d4643b..5bdd00b172b 100644
19 --- a/dev-ruby/strptime/Manifest
20 +++ b/dev-ruby/strptime/Manifest
21 @@ -1,2 +1,3 @@
22 DIST strptime-0.2.3.tar.gz 17375 BLAKE2B 583566c19cdd96f97b469d3353236624b814ea9200e1479d32c552d06431e0008cd9dcf5be03564948898fb9e5a1470a5a8bdb531d4054bfe64899bbd6ec92e0 SHA512 1b9ee2f7c0fa747c6df5a56c5d7f667c4a9314c334472867e890758074f9da387aae54d9171b2460036a21e890fd743187571c6d4a995e4117d6c4307b8134cc
23 DIST strptime-0.2.4.tar.gz 17429 BLAKE2B 9b6a7f29075ef5e55a17f28859961013d96778c7bd78fac9138a455819ec062f4b0d311038026a9da45ecc96e3f92207462970201c5d3095b9b0d653706c64a2 SHA512 ae92df60e049eb57e60f414e0a436fd90b56c6a3f5812597619aaac2d78b80046aeef77cdaae6f8822f37d069903d2806b9f7710ff1520eaf11070aaf3465f56
24 +DIST strptime-0.2.5.tar.gz 17431 BLAKE2B c9234ed0207e6bf214d4c011c883bc985cf527672f4bf9590617a742b4ea9a5cc0743388af23cc5f106350126eef16ffa89089d8715b0f8d371315412c7e5660 SHA512 6a85a3b45c43aa62a5c62e3902655351a839c4f2c397347356307c73ab160d053ea9dfc989f6d8687663bea5d8a60575f26b99b198b872bc1a3b2e0caa00a51f
25
26 diff --git a/dev-ruby/strptime/strptime-0.2.5.ebuild b/dev-ruby/strptime/strptime-0.2.5.ebuild
27 new file mode 100644
28 index 00000000000..69d7704d293
29 --- /dev/null
30 +++ b/dev-ruby/strptime/strptime-0.2.5.ebuild
31 @@ -0,0 +1,37 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +USE_RUBY="ruby25 ruby26 ruby27"
37 +
38 +RUBY_FAKEGEM_EXTRADOC="README.md"
39 +
40 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
41 +
42 +RUBY_FAKEGEM_GEMSPEC="strptime.gemspec"
43 +
44 +RUBY_FAKEGEM_BINWRAP=""
45 +
46 +inherit multilib ruby-fakegem
47 +
48 +DESCRIPTION="A fast strptime/strftime engine which uses VM"
49 +HOMEPAGE="https://github.com/nurse/strptime"
50 +SRC_URI="https://github.com/nurse/strptime/archive/v${PV}.tar.gz -> ${P}.tar.gz"
51 +
52 +LICENSE="BSD-2"
53 +SLOT="0"
54 +KEYWORDS="~amd64"
55 +IUSE=""
56 +
57 +all_ruby_prepare() {
58 + sed -i -e 's/git ls-files -z/find -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
59 +}
60 +
61 +each_ruby_configure() {
62 + ${RUBY} -Cext/strptime extconf.rb || die
63 +}
64 +
65 +each_ruby_compile() {
66 + emake -Cext/strptime V=1
67 + cp ext/strptime/strptime$(get_modname) lib/strptime/ || die
68 +}