forked from rdowinton/homebrew-x11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyxplot.rb
37 lines (32 loc) · 1.05 KB
/
pyxplot.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
class Pyxplot < Formula
desc "Multi-purpose graph plotting tool"
homepage "http://pyxplot.org.uk/"
url "http://pyxplot.org.uk/src/pyxplot_0.9.2.tar.gz"
sha256 "1c592a0bc77caec445a8d72534471c01d66ca1806309e6c983847c2e0b95e689"
revision 2
bottle :disable, "Homebrew cannot currently build bottles against TeX"
depends_on :x11
depends_on "fftw"
depends_on "homebrew/science/cfitsio" => :recommended
depends_on "gv" => :recommended
depends_on "wget" => :recommended
depends_on "ghostscript" => "with-x11"
depends_on "gsl"
depends_on "imagemagick"
depends_on "libpng"
depends_on "readline"
def install
# Fix undefined symbol error for _history_list
# Reported 3 Sep 2016 to [email protected]
ENV.prepend "LDFLAGS", "-lhistory" # libhistory.dylib belongs to `readline`
# changes install directory to Cellar, per instructions
inreplace "Makefile.skel" do |s|
s.change_make_var! "USRDIR", prefix
end
system "./configure"
system "make", "install"
end
test do
system bin/"pyxplot", "-h"
end
end