Commit 3f283c45 authored by Damian Montero's avatar Damian Montero

cleaning code

parent 8c924d23
require 'package'
class Llvm < Package
version '0.19.8'
source_url 'http://ftp.gnu.org/pub/gnu/gettext/gettext-0.19.8.tar.xz'
source_sha1 'dc551d4783edf691c1f0095ca927d3128b5093e8'
depends_on 'buildessential'
depends_on 'openssl_devel'
def self.build
system "CC='gcc' ./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
class Gettext < Package
version '0.18.3.1'
binary_url ({
armv7l: 'https://dl.dropboxusercontent.com/s/c6pqmdrvl6epblv/gettext-0.18.3.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.dropboxusercontent.com/s/xmsfr7q9r99dhcs/gettext-0.18.3.1-chromeos-i686.tar.gz?token_hash=AAGJo0pqudCOkGU3NHOcBuFG2zLwWpapNXLX-zUJLcS3aA&dl=1',
x86_64: 'https://dl.dropboxusercontent.com/s/nidj0ehxwserhz6/gettext-0.18.3.1-chromeos-x86_64.tar.gz?token_hash=AAFn-kdXlB23HDVDCKTn9n_U-i9LFNCIB6HU0jSUiJTctA&dl=1'
})
binary_sha1 ({
armv7l: '985fb8b666289b8abb3a820423a10860fa35e8ef',
i686: '1ecbff59d6134c7f8804bcf18fb2b1b7a9a6d4c0',
x86_64: '22174347defa4f034a360078c248a61710c5f854'
})
end
require 'package'
class Llvm < Package
version '3.8.1'
source_url 'http://llvm.org/releases/3.8.1/llvm-3.8.1.src.tar.xz'
source_sha1 'e0c48c4c182424b99999367d688cd8ce7876827b'
version '0.19.8'
source_url 'http://ftp.gnu.org/pub/gnu/gettext/gettext-0.19.8.tar.xz'
source_sha1 'dc551d4783edf691c1f0095ca927d3128b5093e8'
depends_on 'buildessential'
depends_on 'cmake'
depends_on 'openssl_devel'
def self.build
system "mkdir mybuilddir"
Dir.chdir CREW_BREW_DIR+"llvm-"+version+".src/mybuilddir" do
system "cmake .."
system "cmake --build ."
end
system "CC='gcc' ./configure"
system "make"
end
def self.install
Dir.chdir CREW_BREW_DIR+"llvm-"+version+".src/mybuilddir" do
system "cmake -DCMAKE_INSTALL_PREFIX=/usr/local -P cmake_install.cmake"
end
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
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