homebrew-core/Formula/geda-gaf.rb

45 lines
1003 B
Ruby

require 'formula'
class GedaGaf < Formula
homepage 'http://www.geda-project.org/'
url 'http://ftp.geda-project.org/geda-gaf/stable/v1.8/1.8.2/geda-gaf-1.8.2.tar.gz'
sha1 'c61edc04997fc12398534a346dac32d8fcdabcc1'
devel do
url 'http://ftp.geda-project.org/geda-gaf/unstable/v1.9/1.9.0/geda-gaf-1.9.0.tar.gz'
sha1 '2b6732238ca5ed6693695d737e52aef1bdb2a589'
end
depends_on 'pkg-config' => :build
depends_on 'gettext'
depends_on 'gtk+'
depends_on 'guile'
depends_on 'gawk'
depends_on :x11
def install
gettext = Formula['gettext']
args = [
"--prefix=#{prefix}",
"--with-gettext=#{gettext.prefix}",
"--disable-update-xdg-database",
"--with-pcb-datadir=#{HOMEBREW_PREFIX}/share/pcb"
]
if build.stable?
pcb = Formula['pcb']
args << "--with-pcb-confdir=#{pcb.etc}/pcb"
end
system "./configure", *args
system "make"
system "make install"
end
def caveats
"This software runs under X11."
end
end