Commit 54ae3deb authored by Damian Montero's avatar Damian Montero Committed by GitHub

Merge pull request #1896 from uberhacker/update-stack-package

Update stack from 1.5.1 to 1.6.3
parents f81c3257 5012c98a
......@@ -3,34 +3,45 @@ require 'package'
class Stack < Package
description 'The Haskell Tool Stack - Stack is a cross-platform program for developing Haskell projects. It is aimed at Haskellers both new and experienced.'
homepage 'https://docs.haskellstack.org/en/stable/README/'
version '1.5.1'
version '1.6.3'
case ARCH
when 'aarch64', 'armv7l'
source_url 'https://github.com/commercialhaskell/stack/releases/download/v1.5.1/stack-1.5.1-linux-arm.tar.gz'
source_sha256 '91a6539494504f670223b8de5af2b87e67267d7c80b4372e6eb3a8577771dbb4'
when 'i686'
source_url 'https://github.com/commercialhaskell/stack/releases/download/v1.5.1/stack-1.5.1-linux-i386.tar.gz'
source_sha256 '2973f7baab2f557c113a92a560ad79b887bd57102e8f4a5caf67551a42ea4250'
source_url 'https://github.com/commercialhaskell/stack/releases/download/v1.6.3/stack-1.6.3-linux-i386.tar.gz'
source_sha256 '31696f91a26db6a49dff438aff6bda071ad186356c8af1abfbe093b6a04ea3e8'
when 'x86_64'
source_url 'https://github.com/commercialhaskell/stack/releases/download/v1.5.1/stack-1.5.1-linux-x86_64.tar.gz'
source_sha256 'b7df551c2f67464bebc5859fc0ecb2dc59cdbeb525af09e05ea4f2752828e542'
source_url 'https://github.com/commercialhaskell/stack/releases/download/v1.6.3/stack-1.6.3-linux-x86_64.tar.gz'
source_sha256 '98cab9117a1b3d98207f67fe7abc6381a80dbeaa12780a8577dd1e03add0aab3'
else
puts "#{ARCH} architecture not supported.".lightred
end
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/stack-1.5.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/stack-1.5.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/stack-1.5.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/stack-1.5.1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '4c7be5f76b9c48e2b87da03f69d1dc90567e1ccf2e7551a34b0eab29d0264c08',
armv7l: '4c7be5f76b9c48e2b87da03f69d1dc90567e1ccf2e7551a34b0eab29d0264c08',
i686: 'b478976d8e39abf913d2666f4f3da888d77655e7e97adce6f2411fb1b356780e',
x86_64: 'a9b9e84bb5102b3b8cd2e8147e4fe9d1f15f37baf601600b19b13f987c4cd77b',
})
def self.install
system "mkdir $HOME/.stack"
system "mkdir -p #{CREW_DEST_DIR}$HOME/.stack"
system "mkdir -p #{CREW_DEST_PREFIX}/share/stack"
system "install -Dm755 stack #{CREW_DEST_PREFIX}/bin/stack"
system "echo 'local-bin-path: #{CREW_PREFIX}/bin' > $HOME/.stack/config.yaml"
system "echo 'local-programs-path: #{CREW_PREFIX}/share/stack' >> $HOME/.stack/config.yaml"
system "cp $HOME/.stack/config.yaml #{CREW_DEST_DIR}$HOME/.stack"
end
def self.postinstall
puts
puts "To enable stack auto-completion, execute the following:".lightblue
puts "echo '# enable stack auto-completion' >> ~/.bashrc".lightblue
puts "echo 'eval \"\$(stack --bash-completion-script stack)\"' >> ~/.bashrc".lightblue
puts "source ~/.bashrc".lightblue
puts
puts "To completely uninstall stack, execute the following:".lightblue
puts "crew remove cabal ghc stack".lightblue
puts "rm -rf #{CREW_PREFIX}/share/stack".lightblue
puts "rm -rf ~/.stack".lightblue
puts
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