Skip to content

Instantly share code, notes, and snippets.

@clemensg
Last active December 21, 2015 15:49
Show Gist options
  • Select an option

  • Save clemensg/6329084 to your computer and use it in GitHub Desktop.

Select an option

Save clemensg/6329084 to your computer and use it in GitHub Desktop.
Mavericks guessing game
require 'formula'
class Libmemcached < Formula
homepage 'http://libmemcached.org'
url 'https://launchpad.net/libmemcached/1.0/1.0.17/+download/libmemcached-1.0.17.tar.gz'
sha1 '1023bc8c738b1f5b8ea2cd16d709ec6b47c3efa8'
depends_on 'memcached'
# Disable superenv
env :std
def install
ENV.append_to_cflags "-undefined dynamic_lookup" if MacOS.version <= :leopard
ENV.append 'CPPFLAGS', "-I#{MacOS.sdk_path}/usr/include/c++/4.2.1" if MacOS.version > :mountain_lion
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