aboutsummaryrefslogtreecommitdiff
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
README and xplot formula.
-rw-r--r--README.md9
-rw-r--r--xplot.rb25
2 files changed, 34 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..90c2ba7
--- /dev/null
+++ b/README.md
@@ -0,0 +1,9 @@
+Mac OS Homebrew Recipes
+=======================
+
+Collection of Homebrew formulae which for whatever reason aren't
+suitable for pushing upstream.
+
+This repository is intended for use as a Homebrew tap. At some point
+I'll dig out the instructions on how to set this up and include them
+here.
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