1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 USE_RUBY="ruby24 ruby25 ruby26 ruby27"
7 RUBY_FAKEGEM_TASK_DOC=""
9 RUBY_FAKEGEM_DOCDIR="doc"
10 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
12 RUBY_FAKEGEM_EXTRAINSTALL="assets rails_generators"
14 RUBY_FAKEGEM_GEMSPEC="gruff.gemspec"
18 DESCRIPTION="Beautiful graphs for one or multiple datasets"
19 HOMEPAGE="https://github.com/topfunky/gruff"
20 SRC_URI="https://github.com/topfunky/gruff/archive/v${PV}.tar.gz -> ${P}.tar.gz"
24 KEYWORDS="~amd64 ~x86 ~x86-macos"
27 # imagemagick is an indirect dependency through rmagick. However, for
28 # gruff to work properly imagemagick needs to be compiled with truetype
29 # support and this cannot be expressed in the rmagick dependency. Tests
30 # also require imagemagick to have jpeg and png support.
31 DEPEND="${DEPEND} test? ( media-gfx/imagemagick[jpeg,png,truetype,webp] )"
32 RDEPEND="${RDEPEND} media-gfx/imagemagick[truetype]"
34 ruby_add_rdepend "dev-ruby/rmagick:*"
41 sed -i -e '/reporters/I s:^:#:' test/gruff_test_case.rb || die
42 sed -i -e '2irequire "date"' test/test_scatter.rb || die
44 sed -e 's/git ls-files/find . -print/' \
45 -i ${RUBY_FAKEGEM_GEMSPEC} || die
49 ${RUBY} -Ilib:. -e "Dir['test/test_*.rb'].each{|f| require f}" || die