Created
January 22, 2015 17:01
-
-
Save subak/0ea9829e2a92f4560ea1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Screen < Formula | |
homepage "https://www.gnu.org/software/screen" | |
stable do | |
url "http://ftpmirror.gnu.org/screen/screen-4.2.1.tar.gz" | |
mirror "https://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.githubusercontent.com/yujinakayama/4608863/raw/75669072f227b82777df25f99ffd9657bd113847/gistfile1.diff" | |
# sha1 "93d611f1f46c7bbca5f9575304913bd1c38e183b" | |
# end | |
end | |
head do | |
url "git://git.savannah.gnu.org/screen.git" | |
# This patch is to disable the error message | |
# "/var/run/utmp: No such file or directory" on launch | |
patch do | |
url "https://gist.githubusercontent.com/yujinakayama/4608863/raw/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment