Skip to content

Instantly share code, notes, and snippets.

View jiayun's full-sized avatar

Jiayun Zhou (Claudia) jiayun

View GitHub Profile
@jiayun
jiayun / graph-tool.rb
Created June 1, 2014 06:33
Homebrew formula for installing graph-tool to Python 3
require 'formula'
class GraphTool < Formula
homepage 'http://graph-tool.skewed.de/'
url 'http://downloads.skewed.de/graph-tool/graph-tool-2.2.31.tar.bz2'
sha1 '5e0b1c215ecd76191a82c745df0fac17e33bfb09'
head 'https://github.com/count0/graph-tool.git'
depends_on 'pkg-config' => :build
depends_on 'boost' => 'c++11'
@jiayun
jiayun / boost.rb
Created June 1, 2014 06:29
Homebrew formula for installing boost with Python 3
require 'formula'
class UniversalPython < Requirement
satisfy(:build_env => false) { archs_for_command("python").universal? }
def message; <<-EOS.undent
A universal build was requested, but Python is not a universal build
Boost compiles against the Python it finds in the path; if this Python
is not a universal build then linking will likely fail.