summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-07-11 07:09:28 +0200
committerHans de Graaff <graaff@gentoo.org>2020-07-11 07:15:14 +0200
commitab40012c6f7cbd655dcae89dd758581b86854505 (patch)
treea5f47aae80758bfb7cb864348d2b2cad0cfd38c3 /dev-ruby/uuidtools/uuidtools-2.2.0.ebuild
parentdev-ruby/multi_json: add 1.15.0 (diff)
downloadgentoo-ab40012c6f7cbd655dcae89dd758581b86854505.tar.gz
gentoo-ab40012c6f7cbd655dcae89dd758581b86854505.tar.bz2
gentoo-ab40012c6f7cbd655dcae89dd758581b86854505.zip
dev-ruby/uuidtools: add 2.2.0
Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/uuidtools/uuidtools-2.2.0.ebuild')
-rw-r--r--dev-ruby/uuidtools/uuidtools-2.2.0.ebuild35
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-ruby/uuidtools/uuidtools-2.2.0.ebuild b/dev-ruby/uuidtools/uuidtools-2.2.0.ebuild
new file mode 100644
index 000000000000..c6ce5fcee73f
--- /dev/null
+++ b/dev-ruby/uuidtools/uuidtools-2.2.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_TASK_DOC="-f tasks/yard.rake doc"
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Simple library to generate UUIDs"
+HOMEPAGE="https://github.com/sporkmonger/uuidtools"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-macos"
+IUSE="doc"
+
+ruby_add_bdepend "doc? ( dev-ruby/yard )"
+
+all_ruby_prepare() {
+ # Avoid specs that require an actual network interface to get a MAC
+ # address. We can't assume that a network interface is available.
+ sed -e '/when obtaining a MAC address/,/^end/ s:^:#:' \
+ -i spec/uuidtools/mac_address_spec.rb || die
+ sed -e '/should correctly generate timestamp variant UUIDs/,/^ end/ s:^:#:' \
+ -i spec/uuidtools/uuid_creation_spec.rb || die
+ sed -e '/should not treat a timestamp version UUID as a random node UUID/,/^ end/ s:^:#:' \
+ -i spec/uuidtools/uuid_parsing_spec.rb || die
+}