Skip to content

Instantly share code, notes, and snippets.

@daz
Last active March 20, 2016 01:53
Show Gist options
  • Save daz/5411271 to your computer and use it in GitHub Desktop.
Save daz/5411271 to your computer and use it in GitHub Desktop.
live-f1 libevent for Homebrew
# git clone https://gist.github.com/daz/5411271 live-f1-recipe
# brew install live-f1-recipe/live-f1.rb
require 'formula'
class LiveF1 < Formula
homepage 'https://launchpad.net/live-f1'
version '0.2.11-libevent'
url 'https://github.com/daz/live-f1/archive/libevent.zip'
sha1 '1fa0dbfadf2d144a1f9af8a075822de7fd324bde'
depends_on 'autoconf' => :build
depends_on 'automake' => :build
depends_on 'pkg-config' => :build
depends_on 'gettext' => :build
depends_on 'libevent'
def install
system 'autoreconf -i'
system './configure', '--disable-debug', '--disable-dependency-tracking',
"--prefix=#{prefix}"
system 'make', 'install'
end
end
@johnkernke
Copy link

Small problem with a fresh install of OS X Yosemite (and maybe previous too), to install xz must be installed. Might be good to add depends_on 'xz' to the list 😄

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