-
-
Save awt/6ae5b3cafe8796ac0c5e51fa8be4cc2f 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
require 'formula' | |
# homebrew formula to install ratpoison | |
class Ratpoison < Formula | |
homepage '' | |
url 'http://download.savannah.nongnu.org/releases/ratpoison/ratpoison-1.4.6.tar.xz' | |
sha256 'b9b181dd2aa08508cb3c3d40aa670ef179f7d11bb439e6d7ea05ea3d1a82956c' | |
# depends_on 'cmake' => :build | |
depends_on :x11 # if your formula requires any X11/XQuartz components | |
def install | |
# ENV.j1 # if your formula's build system can't parallelize | |
# Remove unrecognized options if warned by configure | |
system "./configure", "--disable-debug", | |
"--disable-dependency-tracking", | |
"--disable-silent-rules", | |
"--prefix=#{prefix}", | |
"--x-include=/usr/X11/include", | |
"--x-libraries=/usr/X11/lib" | |
# system "cmake", ".", *std_cmake_args | |
system "make", "install" # if this fails, try separate make/make install steps | |
end | |
test do | |
system "false" | |
end | |
def caveats | |
<<-EOS | |
To launch ratpoison upon starting X11 / XQuartz, you must set | |
the USERWM environment variable to "ratpoison". | |
EOS | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment