8c29982153
This reverts commit adee5315265cc46aa6a3057071527abb16e1cd94. Turns out one of the "other things" is a dealbreaker. We only create kegs using a formula's canonical name. However, we do not check that this is the case when mapping existing kegs back to formula objects, and thus a keg with a name that happens to be an alias can fool Homebrew into thinking the canonically-named keg exists. So anything that enumerates kegs and then tries to do stuff with the resulting formula objects will just break. This is obviously worse than the debugger being broken, so reverting this for the time being.
31 lines
830 B
Ruby
31 lines
830 B
Ruby
require 'formula'
|
|
|
|
class Ekg2 < Formula
|
|
homepage 'http://ekg2.org'
|
|
url 'http://pl.ekg2.org/ekg2-0.3.1.tar.gz'
|
|
sha1 '8b6f53086e8e1d2890fdc1ec274a7b1615da0fa1'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'readline'
|
|
depends_on 'libgadu' if build.include? "with-libgadu"
|
|
|
|
option "with-libgadu", "Compiles ekg2 with gadu-gadu support"
|
|
|
|
def install
|
|
readline = Formula.factory 'readline'
|
|
|
|
args = ["--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--without-python",
|
|
"--without-perl",
|
|
"--with-readline=#{readline.prefix}",
|
|
"--without-gtk",
|
|
"--enable-unicode"]
|
|
|
|
args << build.include?("with-libgadu") ? "--with-libgadu" : "--without-libgadu"
|
|
|
|
system "./configure", *args
|
|
system "make install"
|
|
end
|
|
end
|
|
|