2010-11-25 10:10:57 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gwyddion < Formula
|
2010-11-25 10:10:57 +00:00
|
|
|
homepage 'http://gwyddion.net/'
|
2014-06-27 13:23:14 +00:00
|
|
|
url 'http://gwyddion.net/download/2.37/gwyddion-2.37.tar.gz'
|
|
|
|
sha1 '05e476de7ed920f72f444ce667646f6066d468d9'
|
2010-11-25 10:10:57 +00:00
|
|
|
|
2014-04-25 11:46:36 +00:00
|
|
|
depends_on :x11 => :optional
|
2013-02-10 05:53:25 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-11-25 10:10:57 +00:00
|
|
|
depends_on 'gtk+'
|
|
|
|
depends_on 'libxml2'
|
|
|
|
depends_on 'fftw'
|
|
|
|
depends_on 'gtkglext'
|
2014-04-25 11:46:36 +00:00
|
|
|
depends_on :python => :optional
|
|
|
|
depends_on 'pygtk' if build.with? 'python'
|
|
|
|
depends_on 'gtksourceview' if build.with? 'python'
|
|
|
|
|
2010-11-25 10:10:57 +00:00
|
|
|
def install
|
2012-05-19 19:22:01 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2010-11-25 10:10:57 +00:00
|
|
|
"--disable-desktop-file-update",
|
2012-05-19 19:22:01 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-html-dir=#{doc}"
|
2010-11-25 10:10:57 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|