diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-05-04 17:42:50 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-05-05 07:50:09 +0200 |
commit | 537d6911f63c1a3ee9b6a542328bad45ebad3c86 (patch) | |
tree | 23a7ce208a6a04fa7b6a5db181401bcd843ad45b /dev-ruby/gruff | |
parent | dev-python/kiwisolver: Stabilize 1.4.2 arm64, #842528 (diff) | |
download | gentoo-537d6911f63c1a3ee9b6a542328bad45ebad3c86.tar.gz gentoo-537d6911f63c1a3ee9b6a542328bad45ebad3c86.tar.bz2 gentoo-537d6911f63c1a3ee9b6a542328bad45ebad3c86.zip |
dev-ruby/gruff: add 0.16.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/gruff')
-rw-r--r-- | dev-ruby/gruff/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/gruff/gruff-0.16.0.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-ruby/gruff/Manifest b/dev-ruby/gruff/Manifest index bec2b540fd27..c805f62ce87b 100644 --- a/dev-ruby/gruff/Manifest +++ b/dev-ruby/gruff/Manifest @@ -1,2 +1,3 @@ DIST gruff-0.14.0.tar.gz 20193671 BLAKE2B b8cdaaca71c5b034206c4f88b1e50e09f8d9c5a3227eaa59a5c66718468ffa643509acfe8bd6919fd012a50daa27709569c210b030e25207c17a0ce13b60616f SHA512 e3c3acbce0888698e2aa92b8e86d2ada5499f394d100209b94ac4284f05a6a4f64c2bdcce91f76be7cec860d0546ebf5fa24aab73b51c0ca9763dc07855c8a68 DIST gruff-0.15.0.tar.gz 20408532 BLAKE2B 979d027b7763a03dc98e42b195df36d8095f85118187ba63c10fb504ce5e12191691d1a512e780b95030129e2c30a6b9525a4ff3424cd2638e4fa5e42578b33f SHA512 05fadae5895340130dedf2d75a4c99852602334148c7a3179e48001abdb885d519400883067599044f660ea2ef6aded815cdef96dffda307f749af3d2e7751d0 +DIST gruff-0.16.0.tar.gz 23371113 BLAKE2B 94d83e8b410c391283e06b6bde9171851599181cc553cd0e924254c07f6ba3724a8737667f56487c7ada97b28aa4b25c97585312fbc7b70b528a492359524358 SHA512 1e4199620cb049b8e70c4462cd9ce9a4d72d3639522c97bf320e176cdd3484f632533573f6ead53b881c87ef0886461c86ec5051d470febfc9cfa26d9a012c60 diff --git a/dev-ruby/gruff/gruff-0.16.0.ebuild b/dev-ruby/gruff/gruff-0.16.0.ebuild new file mode 100644 index 000000000000..7823d71da2ac --- /dev/null +++ b/dev-ruby/gruff/gruff-0.16.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby26 ruby27 ruby30" + +RUBY_FAKEGEM_TASK_DOC="" + +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_EXTRAINSTALL="assets rails_generators" + +RUBY_FAKEGEM_GEMSPEC="gruff.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Beautiful graphs for one or multiple datasets" +HOMEPAGE="https://github.com/topfunky/gruff" +SRC_URI="https://github.com/topfunky/gruff/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# imagemagick is an indirect dependency through rmagick. However, for +# gruff to work properly imagemagick needs to be compiled with truetype +# support and this cannot be expressed in the rmagick dependency. Tests +# also require imagemagick to have jpeg and png support. +DEPEND="${DEPEND} test? ( media-gfx/imagemagick[jpeg,png,truetype,webp] )" +RDEPEND="${RDEPEND} media-gfx/imagemagick[truetype]" + +ruby_add_rdepend "dev-ruby/histogram >=dev-ruby/rmagick-4.2:*" +ruby_add_bdepend " + test? ( + dev-ruby/test-unit + )" + +all_ruby_prepare() { + sed -i -e '/\(reporters\|simplecov\)/I s:^:#:' test/gruff_test_case.rb || die + sed -i -e '2irequire "date"' test/test_scatter.rb || die + + sed -e 's/git ls-files/find . -print/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + # Skip the image comparison checks since the images are not + # pixel-perfect identical, most likely due to the use of a slightly + # different font. + SKIP_CHECK=true ${RUBY} -Ilib:. -e "Dir['test/test_*.rb'].each{|f| require f}" || die +} |