Skip to content

Instantly share code, notes, and snippets.

@heirloompixels
Last active May 26, 2017 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save heirloompixels/7781198 to your computer and use it in GitHub Desktop.
Save heirloompixels/7781198 to your computer and use it in GitHub Desktop.
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'
sha1 '8ee1157c799e2a382b59c45a1aca95b5111977df'
# 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