You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.4 KiB
52 lines
1.4 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=6
|
||
|
USE_RUBY="ruby24 ruby25 ruby26"
|
||
8 years ago
|
|
||
|
RUBY_FAKEGEM_TASK_DOC=""
|
||
|
|
||
|
RUBY_FAKEGEM_DOCDIR="doc"
|
||
|
RUBY_FAKEGEM_EXTRADOC="History.txt Manifest.txt README.md RELEASE.md"
|
||
|
|
||
|
RUBY_FAKEGEM_EXTRAINSTALL="assets rails_generators"
|
||
|
|
||
5 years ago
|
RUBY_FAKEGEM_GEMSPEC="gruff.gemspec"
|
||
|
|
||
8 years ago
|
inherit ruby-fakegem
|
||
|
|
||
|
DESCRIPTION="Beautiful graphs for one or multiple datasets"
|
||
|
HOMEPAGE="https://github.com/topfunky/gruff"
|
||
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="0"
|
||
5 years ago
|
KEYWORDS="~amd64 ~x86 ~x86-macos"
|
||
8 years ago
|
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]"
|
||
|
|
||
5 years ago
|
ruby_add_rdepend ">=dev-ruby/rmagick-2.13.4:*"
|
||
8 years ago
|
ruby_add_bdepend "
|
||
|
test? (
|
||
|
dev-ruby/test-unit
|
||
|
)"
|
||
|
|
||
|
all_ruby_prepare() {
|
||
|
sed -i -e '/reporters/I s:^:#:' test/gruff_test_case.rb || die
|
||
6 years ago
|
sed -i -e '2irequire "date"' test/test_scatter.rb || die
|
||
5 years ago
|
|
||
|
# Relax rmagick dependency since 3.x is API compatible
|
||
|
sed -e "/rmagick/ s/'~> 2.13',//" \
|
||
|
-e 's/git ls-files/find . -print/' \
|
||
|
-i ${RUBY_FAKEGEM_GEMSPEC} || die
|
||
8 years ago
|
}
|
||
|
|
||
|
each_ruby_test() {
|
||
|
${RUBY} -Ilib:. -e "Dir['test/test_*.rb'].each{|f| require f}" || die
|
||
|
}
|