Commit b45f7253 authored by Damian Montero's avatar Damian Montero

cleaning again

parent d09f4926
require 'package' require 'package'
class Llvm < Package class Llvm < Package
version '0.19.8' version '3.8.1'
source_url 'http://ftp.gnu.org/pub/gnu/gettext/gettext-0.19.8.tar.xz' source_url 'http://llvm.org/releases/3.8.1/llvm-3.8.1.src.tar.xz'
source_sha1 'dc551d4783edf691c1f0095ca927d3128b5093e8' source_sha1 'e0c48c4c182424b99999367d688cd8ce7876827b'
depends_on 'buildessential' depends_on 'buildessential'
depends_on 'openssl_devel' depends_on 'cmake'
def self.build def self.build
system "CC='gcc' ./configure" system "mkdir mybuilddir"
system "make" Dir.chdir CREW_BREW_DIR+"llvm-"+version+".src/mybuilddir" do
system "cmake .."
system "cmake --build ."
end
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" Dir.chdir CREW_BREW_DIR+"llvm-"+version+".src/mybuilddir" do
system "cmake -DCMAKE_INSTALL_PREFIX=/usr/local -P cmake_install.cmake"
end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment