forked from keitheis/homebrew-dupes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
screen.rb
51 lines (42 loc) · 1.48 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
require "formula"
class Screen < Formula
homepage "http://www.gnu.org/software/screen"
stable do
url "http://ftpmirror.gnu.org/screen/screen-4.2.1.tar.gz"
mirror "http://ftp.gnu.org/gnu/screen/screen-4.2.1.tar.gz"
sha1 "21eadf5f1d64120649f3390346253c6bc8a5103c"
# This patch is to disable the error message
# "/var/run/utmp: No such file or directory" on launch
patch :p2 do
url "https://gist.github.com/raw/4608863/75669072f227b82777df25f99ffd9657bd113847/gistfile1.diff"
sha1 "93d611f1f46c7bbca5f9575304913bd1c38e183b"
end
end
head do
url "git://git.savannah.gnu.org/screen.git", :branch => "master"
# This patch is to disable the error message
# "/var/run/utmp: No such file or directory" on launch
patch :p1 do
url "https://gist.github.com/raw/4608863/75669072f227b82777df25f99ffd9657bd113847/gistfile1.diff"
sha1 "93d611f1f46c7bbca5f9575304913bd1c38e183b"
end
end
depends_on "autoconf" => :build
depends_on "automake" => :build
def install
if build.head?
cd "src"
end
# With parallel build, it fails
# because of trying to compile files which depend osdef.h
# before osdef.sh script generates it.
ENV.deparallelize
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
"--infodir=#{info}",
"--enable-colors256"
system "make"
system "make install"
end
end