summaryrefslogtreecommitdiff
path: root/dev-ruby/gruff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-02-16 12:59:29 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-02-16 12:59:29 +0000
commit79599515788b85b18aa655e7b7f8cc05c1bbddd8 (patch)
treeade7cb031f363fad64c77139dea7aa3d81908537 /dev-ruby/gruff
parent6bc2e4d7c5906e46a8f275a876ead6ec41aca5bb (diff)
gentoo resync : 16.02.1018
Diffstat (limited to 'dev-ruby/gruff')
-rw-r--r--dev-ruby/gruff/Manifest1
-rw-r--r--dev-ruby/gruff/gruff-0.7.0-r1.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/gruff/Manifest b/dev-ruby/gruff/Manifest
index 66cfd0055cab..48e4698f42e3 100644
--- a/dev-ruby/gruff/Manifest
+++ b/dev-ruby/gruff/Manifest
@@ -1,3 +1,4 @@
DIST gruff-0.7.0.gem 318464 BLAKE2B bcc51f524089f53b89778143b444c70d4e168983edda247cdb4c9c84c288450154ce6e5234bbf7a0a8ae7251df611333c8bb411a8fd3765ccc5fe9650c3efc38 SHA512 b9842213ab3da7b4eccf8bd06e18d62aea14a6a15d7c45ebe7e51a76acd456ce140f094a9419d4c0bd1774e7d203bea49f9c39aca36c75d744f2732bcde9f688
+EBUILD gruff-0.7.0-r1.ebuild 1423 BLAKE2B 9ce52c434c8368d613b9bc0f24fe0213cb153b61540c29acfb307c7b77dc83e8aace205011011ae0e8e8f001dffde8186aa0e0d924510a6fadcf79904e2dbd5d SHA512 b53167a6c792d8462e517534bcca40adc58fae1bf26319a734f91eafba6be41fddd239b78e7a1abde94b06e9a457bba963b2b8287bad252ce254ba39d9c49de8
EBUILD gruff-0.7.0.ebuild 1265 BLAKE2B 773dd5a2592f321ec392c6755086812f94619f6bb6fcac7b50cdc876bbe026410062dd672e8d48cb251934d3b7d53cc79edd2e648462618ddc3d039a8d3c831a SHA512 674da064ce3353d84722881163424035c6fdf929acb5c56733d10cd34e5feab0ad05f929b65baa6ac4a9e14c9331e40e13cc03ada2ac03e0b89b64a48b689236
MISC metadata.xml 340 BLAKE2B e3adfc25e09939c98ba4a4323afd0babccd4b0c11ea712e93a454ea4d3074f12a895d674735f8209598336a1d62ea61d6d00c8956a47cccd583857c36f261ab7 SHA512 1136e2805ed73f18bba2c981e2788fa635face71a9b1b384e3dc20680afd4fb354f33ac099077568f7fa1f3510e1c46771f663341153ae64ef961508243c16d6
diff --git a/dev-ruby/gruff/gruff-0.7.0-r1.ebuild b/dev-ruby/gruff/gruff-0.7.0-r1.ebuild
new file mode 100644
index 000000000000..43e016e7b8d5
--- /dev/null
+++ b/dev-ruby/gruff/gruff-0.7.0-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby23 ruby24 ruby25 ruby26"
+
+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"
+
+RUBY_FAKEGEM_GEMSPEC="gruff.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Beautiful graphs for one or multiple datasets"
+HOMEPAGE="https://github.com/topfunky/gruff"
+
+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-2.13.4"
+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
+
+ # Relax rmagick dependency since 3.x is API compatible
+ sed -i -e "/rmagick/ s/'~> 2.13',//" ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:. -e "Dir['test/test_*.rb'].each{|f| require f}" || die
+}