diff options
| author | Adam Vandenberg | 2014-08-10 15:55:48 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-08-10 15:55:58 -0700 |
| commit | 684e907debbf95d27143fd6945b9574b8f70e048 (patch) | |
| tree | fb84883584ed96cbbbe80ea697d4bc19b27dfcb6 /Library/Formula | |
| parent | 9db7bb4aee5e55aafea614b4ba505d0f3b69904c (diff) | |
| download | homebrew-684e907debbf95d27143fd6945b9574b8f70e048.tar.bz2 | |
znc: modernize
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/znc.rb | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/Library/Formula/znc.rb b/Library/Formula/znc.rb index bb228e240..604538a32 100644 --- a/Library/Formula/znc.rb +++ b/Library/Formula/znc.rb @@ -1,9 +1,17 @@ -require 'formula' +require "formula" class Znc < Formula - homepage 'http://wiki.znc.in/ZNC' - url 'http://znc.in/releases/archive/znc-1.4.tar.gz' - sha1 '6dafcf12b15fdb95eac5b427c8507c1095e904b4' + homepage "http://wiki.znc.in/ZNC" + url "http://znc.in/releases/archive/znc-1.4.tar.gz" + sha1 "6dafcf12b15fdb95eac5b427c8507c1095e904b4" + + head do + url "https://github.com/znc/znc.git" + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build + end bottle do sha1 "b899a3090ce637a09a12c22d76d130a5108b5b42" => :mavericks @@ -11,21 +19,13 @@ class Znc < Formula sha1 "bc2c4a31596a72d501d70b9e7b21b09580f58da2" => :lion end - head do - url 'https://github.com/znc/znc.git' - - depends_on :autoconf - depends_on :automake - depends_on :libtool - end - - option 'enable-debug', "Compile ZNC with --enable-debug" + option "enable-debug", "Compile ZNC with --enable-debug" - depends_on 'pkg-config' => :build + depends_on "pkg-config" => :build def install args = ["--prefix=#{prefix}"] - args << "--enable-debug" if build.include? 'enable-debug' + args << "--enable-debug" if build.include? "enable-debug" system "./autogen.sh" if build.head? system "./configure", *args |
