tmux: use new dsl
This commit is contained in:
parent
b33b46b79c
commit
e8a833ad88
1 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ class Tmux < Formula
|
||||||
depends_on 'pkg-config' => :build
|
depends_on 'pkg-config' => :build
|
||||||
depends_on 'libevent'
|
depends_on 'libevent'
|
||||||
|
|
||||||
if ARGV.build_head?
|
if build.head?
|
||||||
depends_on :automake
|
depends_on :automake
|
||||||
depends_on :libtool
|
depends_on :libtool
|
||||||
end
|
end
|
||||||
|
@ -20,11 +20,11 @@ class Tmux < Formula
|
||||||
# NOTE: it applies to 1.6 only, and should be removed when 1.7 is out.
|
# NOTE: it applies to 1.6 only, and should be removed when 1.7 is out.
|
||||||
# (because it has been merged upstream)
|
# (because it has been merged upstream)
|
||||||
def patches
|
def patches
|
||||||
DATA if ARGV.build_stable?
|
DATA if build.stable?
|
||||||
end
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "sh", "autogen.sh" if ARGV.build_head?
|
system "sh", "autogen.sh" if build.head?
|
||||||
|
|
||||||
ENV.append "LDFLAGS", '-lresolv'
|
ENV.append "LDFLAGS", '-lresolv'
|
||||||
system "./configure", "--disable-dependency-tracking",
|
system "./configure", "--disable-dependency-tracking",
|
||||||
|
|
Loading…
Reference in a new issue