Skip to content

Instantly share code, notes, and snippets.

@Kronuz
Created October 20, 2012 13:47
Show Gist options
  • Save Kronuz/3923317 to your computer and use it in GitHub Desktop.
Save Kronuz/3923317 to your computer and use it in GitHub Desktop.
pil formula not depending on x11
--- a/Library/Formula/pil.rb
+++ b/Library/Formula/pil.rb
@@ -5,7 +5,7 @@ class Pil < Formula
homepage 'http://www.pythonware.com/products/pil/'
sha1 '76c37504251171fda8da8e63ecb8bc42a69a5c81'
- depends_on :x11
+ # depends_on :x11
depends_on 'jpeg' => :recommended
depends_on 'little-cms' => :optional
@@ -22,10 +22,10 @@ class Pil < Formula
inreplace "setup.py" do |s|
# Tell setup where Freetype2 is on 10.5/10.6
s.gsub! 'add_directory(include_dirs, "/sw/include/freetype2")',
- "add_directory(include_dirs, \"#{MacOS::X11.include}\")"
+ "add_directory(include_dirs, \"/usr/local/Cellar/freetype/2.4.10/include\")"
s.gsub! 'add_directory(include_dirs, "/sw/lib/freetype2/include")',
- "add_directory(library_dirs, \"#{MacOS::X11.lib}\")"
+ "add_directory(library_dirs, \"/usr/local/Cellar/freetype/2.4.10/lib\")"
# Tell setup where our stuff is
s.gsub! 'add_directory(library_dirs, "/sw/lib")',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment