Skip to content

Instantly share code, notes, and snippets.

@derekbrokeit
Created May 24, 2013 08:14
Show Gist options
  • Save derekbrokeit/5642055 to your computer and use it in GitHub Desktop.
Save derekbrokeit/5642055 to your computer and use it in GitHub Desktop.
A homebrew formula copy of torch7 that builds without OpenMP support. Additionally, it builds with significantly reduced dependencies.
require 'formula'
class Torch7 < Formula
homepage 'http://www.torch.ch/'
head 'https://github.com/andresy/torch.git'
url 'https://github.com/andresy/torch/archive/7.0.3-0.zip'
version '7.0.3-0'
sha1 'd455003b3f632ffd5062f98de774479c1de57607'
depends_on 'cmake' => :build
##depends_on 'homebrew/versions/gcc48' => :build
#depends_on 'readline'
#depends_on 'gnuplot'
#depends_on 'qt'
#depends_on 'homebrew/science/openblas'
def install
#ENV['CC'] = 'gcc-4.8'
#ENV['CXX'] = 'g++-4.8'
mkdir 'build' do
system 'cmake', '..', *std_cmake_args
system 'make install'
end
end
test do
system 'torch -h'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment