diff options
| author | Adam Vandenberg | 2014-02-24 22:08:25 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-27 08:21:17 -0800 |
| commit | f0bf6a1dbe71bf502a9d706fae0f6e565691a355 (patch) | |
| tree | 3f6d6b773a76964a79001e33318a74b82011733a /Library/Formula | |
| parent | 454ec60a9840ba6ec375a9c3ac98f2decdff956c (diff) | |
| download | homebrew-f0bf6a1dbe71bf502a9d706fae0f6e565691a355.tar.bz2 | |
geda-gaf: use Formula[]
Also fix other style nits
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/geda-gaf.rb | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/Library/Formula/geda-gaf.rb b/Library/Formula/geda-gaf.rb index 18a097efc..0e80e9ed9 100644 --- a/Library/Formula/geda-gaf.rb +++ b/Library/Formula/geda-gaf.rb @@ -18,20 +18,21 @@ class GedaGaf < Formula depends_on :x11 def install - # Help configure find libraries - gettext = Formula.factory('gettext') - pcb = Formula.factory('pcb') - - extra_configure_args = [] - if !build.devel? - extra_configure_args << "--with-pcb-confdir=#{pcb.etc/:pcb}" + 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", "--prefix=#{prefix}", - "--with-gettext=#{gettext.prefix}", - "--disable-update-xdg-database", - "--with-pcb-datadir=#{HOMEBREW_PREFIX/:share/:pcb}", - *extra_configure_args + system "./configure", *args system "make" system "make install" end |
