Skip to content

Instantly share code, notes, and snippets.

@danslo
Last active December 18, 2015 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save danslo/5841552 to your computer and use it in GitHub Desktop.
Save danslo/5841552 to your computer and use it in GitHub Desktop.
require 'formula'
class Libeventfb < Formula
homepage 'http://libevent.org/'
url 'https://github.com/libevent/libevent.git', :tag => 'release-1.4.14b-stable'
version '1.4.14b'
keg_only 'We are just a patched version.'
depends_on :autoconf => :build
depends_on :automake
depends_on :libtool
def patches
"https://raw.github.com/facebook/hiphop-php/master/hphp/third_party/libevent-1.4.14.fb-changes.diff"
end
def install
ENV.j1
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
end
@pepegar
Copy link

pepegar commented Jul 26, 2014

The url in patches is returning a 404. you might want to update it to something like this:
https://gist.github.com/pepegar/13a9409a29c90a232afd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment