dev-ruby/gruff: add 0.27.1

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff 2025-07-16 06:54:12 +02:00
parent 83a92d45ae
commit c31ae86ba1
No known key found for this signature in database
GPG Key ID: DB347F938654FA34
2 changed files with 60 additions and 0 deletions

View File

@ -1,3 +1,4 @@
DIST gruff-0.25.0.tar.gz 25941069 BLAKE2B 593eecb7d0e97907c2c0fa98b7ff709b4e7357e4d5b6c37fbb334909396b7ef318f0c1d2540a7e57efae4d5f1e2314bdd85bda5027b0f38d12c1854351852ce9 SHA512 d65592c600350596e1996aff32afb8984e254a3af0bd388e47f1c18a8226d009840677032c1c69898efb555924b4c9699c85496712aa4dfcc7029f95a89aebaf
DIST gruff-0.26.0.tar.gz 25950885 BLAKE2B 4e7375a1a7ae19491204ee275c152ebfbc6f974bc1ec9c8607e21798dd364dad62791f93878ddbf5eea7d1f914478cac51f5fb7c754db1e97ef8fa257693e261 SHA512 edbc276d83434035aab038bfa4e6e4cdfd52b4b338f7d39a90ce90770111fac877eb5fa1fb9706d4ebdb84077a7303ad0e710b209e6ba7beffdf433b6e44d269
DIST gruff-0.27.0.tar.gz 26100366 BLAKE2B aa5e8ffb1b3acc232529f8b5b1b0f86683ca038fe1b8e8ba6da7722631cf296398f37d106d807c79f8a9704083f96b65ff09c8ad99a459a8e6c7e6e6043bbab6 SHA512 aa79eb3bc17f9657dda829cc8c85bc251ba2e02e3325a6b1f3ae54dc60f0a973c8834c9c1340fd0385e3a666e0ad065bd9881bba5ac4d553b6279b0022337d71
DIST gruff-0.27.1.tar.gz 26102158 BLAKE2B bc95dd9f6624c497bc13e368af6e59d74bc98e5e510afcd8a1b1e55a8e52a65e4f9b401cbb3668e5dfcebfed2676bc261294aa774dda500f6d7c636d76c04d6a SHA512 8d7f5af82eb7b37a8ec8d4e1a02aa969c1c99549b0451f5840559c0c6c5410bf0ed2e06a508adf55bd4c44aa239101d1fdbcbf138b85e49496715d0d4c85e766

View File

@ -0,0 +1,59 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby32 ruby33 ruby34"
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="test"
# 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="test? ( media-gfx/imagemagick[jpeg,png,truetype,webp] )"
RDEPEND="media-gfx/imagemagick[truetype]"
ruby_add_rdepend "
>=dev-ruby/bigdecimal-3.0
dev-ruby/histogram
>=dev-ruby/rmagick-5.5:*
"
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
}