Add erlang OTP 19 and Elixir 1.3.1 packages

This commit is contained in:
Ricardo Echavarria
2016-07-08 00:15:22 -06:00
parent c6010b13b6
commit c3ca1bd8ea
2 changed files with 35 additions and 0 deletions

17
packages/elixir.rb Normal file
View File

@@ -0,0 +1,17 @@
require 'package'
class Elixir < Package
version '1.3.1'
depends_on 'erlang'
source_url 'https://github.com/elixir-lang/elixir/archive/v1.3.1.tar.gz'
source_sha1 '29dc1b4da5e051ad71ad84b6886d7c184e4b9add'
def self.build
system 'make clean test'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end

18
packages/erlang.rb Normal file
View File

@@ -0,0 +1,18 @@
require 'package'
class Erlang < Package
version '19.0'
source_url 'http://www.erlang.org/download/otp_src_19.0.tar.gz'
source_sha1 '3be958b529de4be19d77eb77f587a76210b43bfd'
def self.build
system 'export ERL_OTP=`pwd`'
system './configure --prefix=/usr/local'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end