aboutsummaryrefslogtreecommitdiff
path: root/xplot.rb
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2019-01-30 01:41:43 -0500
committerRob Austein <sra@hactrn.net>2019-01-30 01:41:43 -0500
commit8801eeaaaec3bac7b644338b82e04df08e617c28 (patch)
tree609c801b5fcaec86c79e37eb54d5bd54a6193efd /xplot.rb
README and xplot formula.
Diffstat (limited to 'xplot.rb')
-rw-r--r--xplot.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/xplot.rb b/xplot.rb
new file mode 100644
index 0000000..9e1c982
--- /dev/null
+++ b/xplot.rb
@@ -0,0 +1,25 @@
+# For reasons unknown, the Homebrew project didn't want this one when
+# Lars submitted it. Their priviledge, but I find it useful.
+
+# Documentation: https://docs.brew.sh/Formula-Cookbook
+# http://www.rubydoc.info/github/Homebrew/brew/master/Formula
+class Xplot < Formula
+ desc "xplot"
+ homepage "http://www.xplot.org"
+ url "http://www.xplot.org/xplot/xplot-0.90.7.1.tar.gz"
+ sha256 "01ceac45540f2d01e6ffe368cc0e950f4bb7fe1d235efde5349a09199e662240"
+ # depends_on "cmake" => :build
+ depends_on :x11
+
+ def install
+ # ENV.deparallelize # if your formula fails when building in parallel
+ # Remove unrecognized options if warned by configure
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking",
+ "--disable-silent-rules",
+ "--x-includes=/opt/X11/include",
+ "--x-libraries=/opt/X11/lib",
+ "--prefix=#{prefix}"
+ system "make", "install" # if this fails, try separate make/make install steps
+ end
+end