Commit 946c6202 authored by Damian Montero's avatar Damian Montero Committed by GitHub

Merge pull request #788 from wwwiiilll/add-sbt-package

Add sbt package
parents 7f9729b2 c87c8e91
require 'package'
class Sbt < Package
description 'A build tool for Scala, Java and more.'
homepage 'http://www.scala-sbt.org/'
version '0.13.15'
source_url 'https://github.com/sbt/sbt/releases/download/v0.13.15/sbt-0.13.15.tgz'
source_sha1 '46f07dbfec874be8687072e07d2c3f22b4f7cc76'
depends_on 'jdk8'
def self.install
system "mkdir", "-p", "#{CREW_DEST_DIR}/usr/local/share/sbt/bin"
system "install", "-m", "644", "bin/sbt-launch.jar", "#{CREW_DEST_DIR}/usr/local/share/sbt/bin"
system "install", "-m", "644", "bin/sbt-launch-lib.bash", "#{CREW_DEST_DIR}/usr/local/share/sbt/bin"
system "install", "-m", "755", "bin/sbt", "#{CREW_DEST_DIR}/usr/local/share/sbt/bin"
system "mkdir", "-p", "#{CREW_DEST_DIR}/usr/local/share/sbt/conf"
system "install", "-m", "644", "conf/sbtopts", "#{CREW_DEST_DIR}/usr/local/share/sbt/conf"
system "mkdir", "-p", "#{CREW_DEST_DIR}/usr/local/bin"
system "ln", "-s", "/usr/local/share/sbt/bin/sbt", "#{CREW_DEST_DIR}/usr/local/bin/sbt"
system "mkdir", "-p", "#{CREW_DEST_DIR}/usr/local/etc/sbt"
system "ln", "-s", "/usr/local/share/sbt/conf/sbtopts", "#{CREW_DEST_DIR}/usr/local/etc/sbt/sbtopts"
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