Browse Source

README and xplot formula.

Rob Austein 6 years ago
commit
8801eeaaae
2 changed files with 34 additions and 0 deletions
  1. 9 0
      README.md
  2. 25 0
      xplot.rb

+ 9 - 0
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.

+ 25 - 0
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