aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-02-02 00:18:07 +0800
committerknu <knu@FreeBSD.org>2001-02-02 00:18:07 +0800
commit9db984a4f5fa620ed79b27b15c71f6215e700280 (patch)
tree981101816f4489116ef6f253496d1f676d074f30 /math
parente4b7f96093d4427a2cab602ac515d557b00cedd3 (diff)
downloadfreebsd-ports-graphics-9db984a4f5fa620ed79b27b15c71f6215e700280.tar.gz
freebsd-ports-graphics-9db984a4f5fa620ed79b27b15c71f6215e700280.tar.zst
freebsd-ports-graphics-9db984a4f5fa620ed79b27b15c71f6215e700280.zip
Add ruby-gnuplot, a pipe-based interface to the gnuplot package for
Ruby.
Diffstat (limited to 'math')
-rw-r--r--math/Makefile1
-rw-r--r--math/ruby-gnuplot/Makefile41
-rw-r--r--math/ruby-gnuplot/distinfo1
-rw-r--r--math/ruby-gnuplot/pkg-comment1
-rw-r--r--math/ruby-gnuplot/pkg-descr24
-rw-r--r--math/ruby-gnuplot/pkg-plist7
6 files changed, 75 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index e6330646239..66ed27b8b3c 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -76,6 +76,7 @@
SUBDIR += rcalc
SUBDIR += ruby-bigfloat
SUBDIR += ruby-bitvector
+ SUBDIR += ruby-gnuplot
SUBDIR += ruby-narray
SUBDIR += sc
SUBDIR += scigraphica
diff --git a/math/ruby-gnuplot/Makefile b/math/ruby-gnuplot/Makefile
new file mode 100644
index 00000000000..fc886dcbbf2
--- /dev/null
+++ b/math/ruby-gnuplot/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: Ruby/Gnuplot
+# Date created: 1 Feb 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gnuplot
+PORTVERSION= 0
+CATEGORIES= math ruby
+MASTER_SITES= http://physci.gmu.edu/~gmiller/gnuplot/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+RUN_DEPENDS= ${LOCALBASE}/bin/gnuplot:${PORTSDIR}/math/gnuplot \
+ ${RUBY_SITEARCHLIBDIR}/narray.so:${PORTSDIR}/math/ruby-narray
+
+USE_RUBY= yes
+
+NO_BUILD= yes
+
+WRKSRC= ${WRKDIR}/gplot
+
+post-patch:
+ ${RUBY} -i.orig -p \
+ -e 'gsub %r:/bin/env:, "/usr/bin/env"' \
+ -e 'gsub %r:/usr/bin/gnuplot:, "${LOCALBASE}/bin/gnuplot"' \
+ ${WRKSRC}/*.rb
+
+do-install:
+ ${MKDIR} ${RUBY_SITELIBDIR}/gplot
+ ${INSTALL_DATA} ${WRKSRC}/*.rb ${RUBY_SITELIBDIR}/gplot/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_DOCDIR}/gnuplot
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/gnuplot/
+.endif
+
+.include <bsd.port.mk>
diff --git a/math/ruby-gnuplot/distinfo b/math/ruby-gnuplot/distinfo
new file mode 100644
index 00000000000..138da794a77
--- /dev/null
+++ b/math/ruby-gnuplot/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/gnuplot.tar.gz) = 116aee9fa199a944fe7794856a329fa1
diff --git a/math/ruby-gnuplot/pkg-comment b/math/ruby-gnuplot/pkg-comment
new file mode 100644
index 00000000000..7bebed0801c
--- /dev/null
+++ b/math/ruby-gnuplot/pkg-comment
@@ -0,0 +1 @@
+A pipe-based interface to the gnuplot package for Ruby
diff --git a/math/ruby-gnuplot/pkg-descr b/math/ruby-gnuplot/pkg-descr
new file mode 100644
index 00000000000..7a18448c947
--- /dev/null
+++ b/math/ruby-gnuplot/pkg-descr
@@ -0,0 +1,24 @@
+Ruby/Gnuplot is a pipe-based interface to the gnuplot package.
+Provides the full capabilities of the gnuplot package to Ruby
+programs. Inspired by the Python Gnuplot package that works on the
+same principle. Here's an example usage of Ruby/Gnuplot:
+
+ require 'narray'
+ require 'gplot/Gnuplot'
+
+ x = NArray.sfloat(100).indgen!
+ y = x.collect { |i| i*i }
+
+ plot = Plot.new ()
+
+ plot.setTitle ("Demo 1");
+ plot.setXlabel ("X");
+ plot.setYlabel ("X^2");
+
+ ds = DataSet.new (y, {"with"=> "lines", "title"=>"Data"})
+ ds.setGrid (x)
+
+ plot.draw ( ds )
+
+Author: Gordon Miller <gmiller@bittwiddlers.com>
+WWW: http://physci.gmu.edu/~gmiller/gnuplot/
diff --git a/math/ruby-gnuplot/pkg-plist b/math/ruby-gnuplot/pkg-plist
new file mode 100644
index 00000000000..f6c9341541c
--- /dev/null
+++ b/math/ruby-gnuplot/pkg-plist
@@ -0,0 +1,7 @@
+%%RUBY_SITELIBDIR%%/gplot/Gnuplot.rb
+%%RUBY_SITELIBDIR%%/gplot/Plot.rb
+%%RUBY_SITELIBDIR%%/gplot/PlotItem.rb
+%%RUBY_SITELIBDIR%%/gplot/Stream.rb
+@dirrm %%RUBY_SITELIBDIR%%/gplot
+%%RUBY_DOCDIR%%/gnuplot/README
+@dirrm %%RUBY_DOCDIR%%/gnuplot