homebrew-core/Formula/xplanet.rb
Mike McQuaid eefdf6b3f3 formulae: fix with/without usage.
Closes Homebrew/homebrew#27275.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-03-08 00:54:35 +00:00

30 lines
679 B
Ruby

require 'formula'
class Xplanet < Formula
homepage 'http://xplanet.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/xplanet/xplanet/1.3.0/xplanet-1.3.0.tar.gz'
sha1 '7c5208b501b441a0184cbb334a5658d0309d7dac'
option "with-x", "Build for X11 instead of Aqua"
depends_on 'pkg-config' => :build
depends_on 'jpeg'
depends_on 'giflib'
depends_on 'libtiff'
depends_on :x11
def install
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
]
if build.with? "x"
args << "--with-x"
else
args << "--with-aqua" << "--without-x"
end
system "./configure", *args
system "make install"
end
end