From 146a451a6dc912656a0186b96a7f5a919facc647 Mon Sep 17 00:00:00 2001 From: pgollucci Date: Fri, 17 Dec 2010 03:47:18 +0000 Subject: Prawn::Graph aims to add this functionality to Prawn by using the native PDF drawing tools Prawn exposes and a friendly single-method call to draw the graph. The graphs and the values plotted and drawn are all relatively sized within the bounds of the width and height you have set and should scale pretty well to any size of value. Of course, if things do end up looking too squashed, you can always just make your graph bigger. At the moment, only Bar and Line charts are implemented, with others coming soon. Both charts work in mostly the same way. WWW: http://ryanstenhouse.eu/ --- print/Makefile | 1 + print/rubygem-prawn-graph/Makefile | 21 +++++++++++++++++++++ print/rubygem-prawn-graph/distinfo | 2 ++ print/rubygem-prawn-graph/pkg-descr | 13 +++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 print/rubygem-prawn-graph/Makefile create mode 100644 print/rubygem-prawn-graph/distinfo create mode 100644 print/rubygem-prawn-graph/pkg-descr diff --git a/print/Makefile b/print/Makefile index 6003ca19b713..b5edde30e6da 100644 --- a/print/Makefile +++ b/print/Makefile @@ -318,6 +318,7 @@ SUBDIR += rubygem-prawn-core SUBDIR += rubygem-prawn-flexible-table SUBDIR += rubygem-prawn-format + SUBDIR += rubygem-prawn-graph SUBDIR += rubygem-prawn-layout SUBDIR += rubygem-prawn-security SUBDIR += scribus diff --git a/print/rubygem-prawn-graph/Makefile b/print/rubygem-prawn-graph/Makefile new file mode 100644 index 000000000000..6d7c25b00213 --- /dev/null +++ b/print/rubygem-prawn-graph/Makefile @@ -0,0 +1,21 @@ +# Ports collection makefile for: rubygem-prawn-graph +# Date created: December 16, 2010 +# Whom: Philip M. Gollucci +# +# $FreeBSD$ + +PORTNAME= prawn-graph +PORTVERSION= 0.0.4 +CATEGORIES= print rubygems +MASTER_SITES= RG + +MAINTAINER= ruby@FreeBSD.org +COMMENT= Draw basic graphs and charts natively in your PDFs + +RUN_DEPENDS= rubygem-prawn>=0:${PORTSDIR}/print/rubygem-prawn + +USE_RUBY= yes +USE_RUBYGEMS= yes +RUBYGEM_AUTOPLIST= yes + +.include diff --git a/print/rubygem-prawn-graph/distinfo b/print/rubygem-prawn-graph/distinfo new file mode 100644 index 000000000000..129989b24f6b --- /dev/null +++ b/print/rubygem-prawn-graph/distinfo @@ -0,0 +1,2 @@ +SHA256 (rubygem/prawn-graph-0.0.4.gem) = ad64c11706ab317a96e8994c443a4bf9e0a775584eb5392231a9e8c7bb37efcd +SIZE (rubygem/prawn-graph-0.0.4.gem) = 12288 diff --git a/print/rubygem-prawn-graph/pkg-descr b/print/rubygem-prawn-graph/pkg-descr new file mode 100644 index 000000000000..21a678f9cbb9 --- /dev/null +++ b/print/rubygem-prawn-graph/pkg-descr @@ -0,0 +1,13 @@ +Prawn::Graph aims to add this functionality to Prawn by using the +native PDF drawing tools Prawn exposes and a friendly single-method +call to draw the graph. + +The graphs and the values plotted and drawn are all relatively sized +within the bounds of the width and height you have set and should +scale pretty well to any size of value. Of course, if things do end +up looking too squashed, you can always just make your graph bigger. + +At the moment, only Bar and Line charts are implemented, with others +coming soon. Both charts work in mostly the same way. + +WWW: http://ryanstenhouse.eu/ -- cgit