Created
December 7, 2015 16:14
-
-
Save stefanschmidt/2f9b8d72cb0e83ba464a to your computer and use it in GitHub Desktop.
Linuxbrew Formula for GNU Screen with properly working task bar and custom session folder
This file contains 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.0.tar.gz" | |
mirror "https://ftp.gnu.org/gnu/screen/screen-4.2.0.tar.gz" | |
sha256 "7dc1b7a3e7669eefe7e65f32e201704d7a11cc688244fcf71757f7792a5ff413" | |
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" | |
sha256 "9c53320cbe3a24c8fb5d77cf701c47918b3fabe8d6f339a00cfdb59e11af0ad5" | |
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", | |
"--with-socket-dir=/tmp/uscreens" | |
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