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/uuidtools/
Date: Tue, 02 Aug 2016 05:37:26
Message-Id: 1470115683.db5cbcde5af69dd1f88f9eca3b2449c8537cb0bf.graaff@gentoo
1 commit: db5cbcde5af69dd1f88f9eca3b2449c8537cb0bf
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 2 05:28:03 2016 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 2 05:28:03 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db5cbcde
7
8 dev-ruby/uuidtools: add ruby23
9
10 Package-Manager: portage-2.2.28
11
12 dev-ruby/uuidtools/uuidtools-2.1.5-r1.ebuild | 36 ++++++++++++++++++++++++++++
13 1 file changed, 36 insertions(+)
14
15 diff --git a/dev-ruby/uuidtools/uuidtools-2.1.5-r1.ebuild b/dev-ruby/uuidtools/uuidtools-2.1.5-r1.ebuild
16 new file mode 100644
17 index 0000000..6af907e
18 --- /dev/null
19 +++ b/dev-ruby/uuidtools/uuidtools-2.1.5-r1.ebuild
20 @@ -0,0 +1,36 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +
27 +USE_RUBY="ruby20 ruby21 ruby22 ruby23"
28 +
29 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
30 +
31 +RUBY_FAKEGEM_TASK_DOC="-f tasks/yard.rake doc"
32 +RUBY_FAKEGEM_DOCDIR="doc"
33 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
34 +
35 +inherit ruby-fakegem
36 +
37 +DESCRIPTION="Simple library to generate UUIDs"
38 +HOMEPAGE="https://github.com/sporkmonger/uuidtools"
39 +
40 +LICENSE="MIT"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~x86-macos"
43 +IUSE="doc"
44 +
45 +ruby_add_bdepend "doc? ( dev-ruby/yard )"
46 +
47 +all_ruby_prepare() {
48 + # Avoid specs that require an actual network interface to get a MAC
49 + # address. We can't assume that a network interface is available.
50 + sed -e '/when obtaining a MAC address/,/^end/ s:^:#:' \
51 + -i spec/uuidtools/mac_address_spec.rb || die
52 + sed -e '/should correctly generate timestamp variant UUIDs/,/^ end/ s:^:#:' \
53 + -i spec/uuidtools/uuid_creation_spec.rb || die
54 + sed -e '/should not treat a timestamp version UUID as a random node UUID/,/^ end/ s:^:#:' \
55 + -i spec/uuidtools/uuid_parsing_spec.rb || die
56 +}