mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
dev-ruby/gruff: add 0.22.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST gruff-0.19.0.tar.gz 25770103 BLAKE2B 6f1d45e03a4ca0a022c1f7313114bb87a06dc2265f1500fea703b2bb4dbbdba21336a63e4a10b166696baa37eb034977c7606817284f8abc06f8ce5bb4a4d6c2 SHA512 5028429c6b2d3551964190956cc5ce7e234b14aef94f8687fc9ac52aa810d98c9018ce5f1dfc04756936dfa47665d3566d53ec300523ca5786693ac99740d81f
|
||||
DIST gruff-0.21.0.tar.gz 25770436 BLAKE2B a474c1f9a18d5b87c21e20921db8529d36c6d92d0b253b8df0c8242fb0018d222501a9489804112a819a17ecd50b5ef38c22d613560e048bcf2614e88b0fdb49 SHA512 9e189b5c5a23294045109888dc3322c34408f895088f113b77a3f2e577ef9bd359be450a96d709feb91c11afbb1b77a8c3d8d78f13f4515b74484b44c6cc9834
|
||||
DIST gruff-0.22.0.tar.gz 25772970 BLAKE2B 3a56d03f0e9a53decfa7df3b6b5cc867cfe584548fe7b1435babde1486414bc97c4a46ad574692848df6483d01592e88d22ef64eb045f271df9c1e2f7c821fa0 SHA512 6d16f8a308289453eb4a51110946aca702c725e59a3ffb8c128610cbca7f521ae5cdea64ceaa0a3382b86fe2f1de74b2d33d2a49fa033728f2f5cbc474222758
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
USE_RUBY="ruby30 ruby31 ruby32"
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user