Skip to content

Instantly share code, notes, and snippets.

@reborg
Created March 8, 2012 06:30
Show Gist options
  • Save reborg/1999186 to your computer and use it in GitHub Desktop.
Save reborg/1999186 to your computer and use it in GitHub Desktop.
Custom formula pointing at a patched ctags version for objc support.
# Instructrions:
# click on "raw" and copy the link to the .rb file
# from your terminal type: brew install <copy-link>
require 'formula'
class Ctags < Formula
url 'https://github.com/fishman/ctags.git'
homepage 'http://ctags.sourceforge.net/'
version '1.2'
head 'https://github.com/fishman/ctags.git'
# true for both 5.8 and head
fails_with_llvm "Resulting executable generates erroneous tag files", :build => 2335
def install
if ARGV.build_head?
system "autoheader"
system "autoconf"
end
system "./configure", "--prefix=#{prefix}",
"--enable-macro-patterns",
"--mandir=#{man}",
"--with-readlib"
system "make install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment