xplot.rb 1.1 KB

12345678910111213141516171819202122232425
  1. # For reasons unknown, the Homebrew project didn't want this one when
  2. # Lars submitted it. Their priviledge, but I find it useful.
  3. # Documentation: https://docs.brew.sh/Formula-Cookbook
  4. # http://www.rubydoc.info/github/Homebrew/brew/master/Formula
  5. class Xplot < Formula
  6. desc "xplot"
  7. homepage "http://www.xplot.org"
  8. url "http://www.xplot.org/xplot/xplot-0.90.7.1.tar.gz"
  9. sha256 "01ceac45540f2d01e6ffe368cc0e950f4bb7fe1d235efde5349a09199e662240"
  10. # depends_on "cmake" => :build
  11. depends_on :x11
  12. def install
  13. # ENV.deparallelize # if your formula fails when building in parallel
  14. # Remove unrecognized options if warned by configure
  15. system "./configure", "--disable-debug",
  16. "--disable-dependency-tracking",
  17. "--disable-silent-rules",
  18. "--x-includes=/opt/X11/include",
  19. "--x-libraries=/opt/X11/lib",
  20. "--prefix=#{prefix}"
  21. system "make", "install" # if this fails, try separate make/make install steps
  22. end
  23. end