Commit d71b57b5 authored by Damian Montero's avatar Damian Montero Committed by GitHub

Merge pull request #206 from thedamian/new-packages

New packages - libtools and unzip
parents 6decd456 2338f0a4
require 'package'
class Cmake < Package
version '3.0.2'
source_url 'http://www.cmake.org/files/v3.0/cmake-3.0.2.tar.gz'
source_sha1 '379472e3578902a1d6f8b68a9987773151d6f21a'
version '3.6.1'
source_url 'https://cmake.org/files/v3.6/cmake-3.6.1.tar.gz'
source_sha1 'a37785b3f256a31ee21a047569bc74a8f57067bb'
depends_on 'buildessential'
depends_on 'openssl_devel'
def self.build
system "./configure --prefix=/usr/local"
system "./bootstrap"
system "make"
end
......
require 'package'
class Libpng < Package
version '1.6.19'
source_url 'http://downloads.sourceforge.net/project/libpng/libpng16/1.6.19/libpng-1.6.19.tar.xz'
source_sha1 '483d72ced11c9258f9d1119105273d9af9ff151c'
version '1.6.24'
source_url 'http://downloads.sourceforge.net/project/libpng/libpng16/1.6.24/libpng-1.6.24.tar.xz'
source_sha1 'b8fa86449bebd7b1cda71e0ed2cd417b6596ce78'
def self.build
system "./configure --libdir=/usr/local/lib#{SHORTARCH}/ CC=\"gcc -m#{SHORTARCH}\" CFLAGS=\" -fPIC\""
......
require 'package'
class Libunwind < Package
version '1.1'
source_url 'http://download.savannah.gnu.org/releases/libunwind/libunwind-1.1.tar.gz'
source_sha1 '7c93a6ae35afff4d0efd143b62a9fd235423964f'
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
end
require 'package'
class Lldb < Package
version '3.6'
binary_url ({
i686: "https://www.dropbox.com/s/bls4hv4z8m2ifsc/lldb-3.6-i386.tar.gz?dl=0",
x86_64: "https://www.dropbox.com/s/zi3rzdmz2awu8u8/lldb-3.6-64x.tar.gz?dl=0"
})
binary_sha1 ({
i686: "de6ca73c1bcc0d72db81d14cd4e31b8f479e12e8",
x86_64: "6265cacf22b191e22a439019b4a2eb0ef7df3813"
})
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'
depends_on 'buildessential'
depends_on 'cmake'
def self.build
system "mkdir mybuilddir"
Dir.chdir CREW_BREW_DIR+"llvm-"+version+".src/mybuilddir" do
system "cmake .."
system "cmake --build ."
end
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
end
end
require 'package'
class Pkg-config < Package
version '29.1'
source_url 'https://pkg-config.freedesktop.org/releases/pkg-config-0.29.1.tar.gz'
source_sha1 '271ce928f6d673cc16cbced2bfd14a5f2e5d3d37'
depends_on 'buildessential'
def self.build
system "configure --prefix=/usr/local --with-internal-glib --disable-host-tool"
system "make"
end
def self.install
system "make install"
#remove the man pages we couldn't install
end
end
require 'package'
class Python27 < Package
version '2.7.12'
source_url 'https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tar.xz' # software source tarball url
source_sha1 '05360b8ade117b35e266b2004a7f1f11250c6dcd' # source tarball sha1 sum
version '2.7.10'
source_url 'https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz' # software source tarball url
source_sha1 '49089f1f6ab445dc8ace97beeb276095c4c8039b' # source tarball sha1 sum
depends_on 'bz2'
depends_on 'ncurses'
depends_on 'openssl_devel'
def self.build # self.build contains commands needed to build the software from source
system "./configure --prefix=/usr/local CPPFLAGS=\"-I/usr/local/include -I/usr/local/include/ncurses\" LDFLAGS=\"-L/usr/local/lib\" CFLAGS=\" -fPIC\""
......
require 'package'
class Readline < Package
version '6.3'
source_url 'http://ftp.gnu.org/gnu/readline/readline-6.3.tar.gz'
source_sha1 '017b92dc7fd4e636a2b5c9265a77ccc05798c9e1'
version '6.2'
depends_on 'buildessential'
binary_url({
x86_64: "https://dl.dropboxusercontent.com/s/v8xva6e4u3tvkaw/readline-6.2-chromeos-x86_64.tar.gz?token_hash=AAHOv1kLiv7xzDkYEZCSB_3ShK0n_7B4m2dNGHPnn2fZIg&dl=1"
})
binary_sha1({
x86_64: '621c2538b452be33cca507110ccfd4144c61edd2'
})
depends_on 'buildessential' #until binary for i686 provided
def self.build
system "CC='gcc' ./configure"
system "./configure"
system "make"
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