From 684e907debbf95d27143fd6945b9574b8f70e048 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 10 Aug 2014 15:55:48 -0700 Subject: znc: modernize --- Library/Formula/znc.rb | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3