forked from Sharpie/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
screen.rb
30 lines (24 loc) · 803 Bytes
/
screen.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require 'formula'
# This duplicates the system "screen", but fixes the ability
# to use vertical splits.
class Screen < Formula
url 'http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz'
homepage 'http://www.gnu.org/software/screen'
md5 '8506fd205028a96c741e4037de6e3c42'
version '4.00.03'
head 'git://git.savannah.gnu.org/screen.git', :branch => 'master'
def patches
"http://trac.macports.org/raw-attachment/ticket/20862/screen-4.0.3-snowleopard.patch"
end unless ARGV.build_head?
def install
if ARGV.build_head?
cd 'src'
system "autoconf"
system "autoheader"
end
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}", "--infodir=#{info}",
"--enable-colors256"
system "make"
system "make install"
end
end