diff options
author | Hans de Graaff <graaff@gentoo.org> | 2020-07-11 07:09:28 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2020-07-11 07:15:14 +0200 |
commit | ab40012c6f7cbd655dcae89dd758581b86854505 (patch) | |
tree | a5f47aae80758bfb7cb864348d2b2cad0cfd38c3 | |
parent | dev-ruby/multi_json: add 1.15.0 (diff) | |
download | gentoo-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>
-rw-r--r-- | dev-ruby/uuidtools/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/uuidtools/uuidtools-2.2.0.ebuild | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/uuidtools/Manifest b/dev-ruby/uuidtools/Manifest index 64285f0efa5f..c3fcb8f666c8 100644 --- a/dev-ruby/uuidtools/Manifest +++ b/dev-ruby/uuidtools/Manifest @@ -1 +1,2 @@ DIST uuidtools-2.1.5.gem 25600 BLAKE2B 8219d559d92d86e7a87b97d4eda9454b6c203f89beb4a74ff619f51470d339c4063b1982ffb6f8acd5b9c206ac7d0dc537e968b1744a030a4f6cd629a358fc7a SHA512 c56e6329e48638bd5049d348beedec7fadb9ee7a133a5013ddd41ae98baa8213d8944903059729c9ca4f38b24d9b565b5653332685982337a4233f11d4865ac0 +DIST uuidtools-2.2.0.gem 27136 BLAKE2B 1760c3fcb193901a552b8d32acddd67a0737b95a79bde47854c11a3a6378b008b0e17339ac2e95157329314f35612adc9355068eaef90f93f4d1976fdd430182 SHA512 17f15e8816fd17d31e1296522d9c68b8da71211556c3284770197b06a6fe01f9038c1e6c6e5e8272b4290cfb23b48914a27717c4705fba17e5d9848257664360 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 +} |