Skip to content

Instantly share code, notes, and snippets.

@jsnuggle
Forked from danslo/libeventfb.rb
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsnuggle/306cea2e6db37dd008ed to your computer and use it in GitHub Desktop.
Save jsnuggle/306cea2e6db37dd008ed 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.githubusercontent.com/hhvm/hhvm-third-party/master/libevent-1.4.14.fb-changes.diff"
end
def install
ENV.j1
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment