forked from keitheis/homebrew-dupes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreen.rb
63 lines (52 loc) · 2.08 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
52
53
54
55
56
57
58
59
60
61
62
63
class Screen < Formula
desc "Terminal multiplexer with VT100/ANSI terminal emulation"
homepage "https://www.gnu.org/software/screen"
stable do
url "https://ftpmirror.gnu.org/screen/screen-4.5.1.tar.gz"
mirror "https://ftp.gnu.org/gnu/screen/screen-4.5.1.tar.gz"
sha256 "97db2114dd963b016cd4ded34831955dcbe3251e5eee45ac2606e67e9f097b2d"
# This patch is to disable the error message
# "/var/run/utmp: No such file or directory" on launch
patch :p2 do
url "https://gist.githubusercontent.com/yujinakayama/4608863/raw/75669072f227b82777df25f99ffd9657bd113847/gistfile1.diff"
sha256 "9c53320cbe3a24c8fb5d77cf701c47918b3fabe8d6f339a00cfdb59e11af0ad5"
end
end
bottle do
rebuild 1
sha256 "469507b70e1576650d0ef3b555fa38eeeb7ce148b26f39935bae22b0b0751336" => :sierra
sha256 "a86d97e7f911f237827627261d5ab89bab335126f56bfd4e08364326e0b363dd" => :el_capitan
sha256 "afd149c84096771007871190af3b722bb082c2df5c9c6e36bbf4f26792cfec75" => :yosemite
end
head do
url "git://git.savannah.gnu.org/screen.git"
# This patch avoid a bug that prevents detached sessions to reattach
# See http://lists.gnu.org/archive/html/screen-users/2016-10/msg00007.html
patch do
url "https://gist.githubusercontent.com/sobrinho/5a7672e088868c2d036957dbe7825dd0/raw/c6fe5dc20cb7dbd0e23f9053aa3867fcbc01d983/diff.patch"
sha256 "47892633ccb137316a0532b034d0be81edc26fc72a6babca9761a1649bc67fd1"
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",
"--enable-pam"
system "make"
system "make", "install"
end
test do
shell_output("#{bin}/screen -h", 1)
end
end