mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-ruby/gruff: add 0.8.0
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST gruff-0.7.0.gem 318464 BLAKE2B bcc51f524089f53b89778143b444c70d4e168983edda247cdb4c9c84c288450154ce6e5234bbf7a0a8ae7251df611333c8bb411a8fd3765ccc5fe9650c3efc38 SHA512 b9842213ab3da7b4eccf8bd06e18d62aea14a6a15d7c45ebe7e51a76acd456ce140f094a9419d4c0bd1774e7d203bea49f9c39aca36c75d744f2732bcde9f688
|
||||
DIST gruff-0.8.0.tar.gz 24712264 BLAKE2B 836ea41e8c7a91ec09ef5356e4f021f99381be4ba437bd043ac628a31ad02f1846cfcf182c2ee038ff90918386413cc9d213d9958412c2bd0c89b1ee2d5c481d SHA512 867fdf50c41bf0e1040ef954c00bced11df0c3d382333aef42f6325a30a950f2ab04e0a5beedf1ab5c3cb23d1682b56d2a398d8afc8d7aa665980ddac4e6cdcb
|
||||
|
||||
50
dev-ruby/gruff/gruff-0.8.0.ebuild
Normal file
50
dev-ruby/gruff/gruff-0.8.0.ebuild
Normal file
@@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
USE_RUBY="ruby24 ruby25 ruby26"
|
||||
|
||||
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 ~x86-macos"
|
||||
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/rmagick:*"
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
dev-ruby/test-unit
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '/reporters/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() {
|
||||
${RUBY} -Ilib:. -e "Dir['test/test_*.rb'].each{|f| require f}" || die
|
||||
}
|
||||
Reference in New Issue
Block a user