Last active
October 27, 2016 08:49
-
-
Save tomohiro/70feedac347a67b61821 to your computer and use it in GitHub Desktop.
Homebrew recipe for GNU Screen 4.2.0 (Support NFD)
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
# Usage: | |
# $ brew install https://gist.githubusercontent.com/Tomohiro/70feedac347a67b61821/raw/screen.rb | |
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" | |
sha1 "85a206e1e474fd608f17e88bfe5f90a55f21c51a" | |
# Support NFD | |
# - http://rcmdnk.github.io/blog/2014/05/04/computer-screen/ | |
# - http://qiita.com/knaka/items/48e1799b56d520af6a09 | |
patch :p2 do | |
url "https://gist.githubusercontent.com/mrkn/626040/raw/be6a04f0e64c56185ba5850415ac59dad4cd62a0/screen-utf8-nfd.patch" | |
sha1 "75522565629e49ce42e9a332795241491a270bad" | |
end | |
patch :p2 do | |
url "https://gist.githubusercontent.com/rcmdnk/143cb56d31335dbccf70/raw/78bab47b91e0e918f55b112cb23d12e1cf6d5146/screen-utf8-osc.diff" | |
sha1 "7fa23604bd748dbbdf9eda2ecfe80b0ce9334868" | |
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