giter8 0.6.2

Closes Homebrew/homebrew#29614.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
JP Hastings-Spital 2014-05-27 14:25:59 +01:00 committed by Adam Vandenberg
parent 7ad5dbfc62
commit c387c8d056

View file

@ -1,40 +1,38 @@
require 'formula'
require "formula"
class Giter8 < Formula
homepage 'https://github.com/n8han/giter8'
homepage "https://github.com/n8han/giter8"
url "http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.0/sbt-launch.jar"
sha1 'b78a29b8db7ae0fc90a7890a84a4617975e1d450'
version '0.6.0'
sha1 "b78a29b8db7ae0fc90a7890a84a4617975e1d450"
version "0.6.2"
def exec_script
<<-EOS
#!/bin/sh
exec java -Xmx512M -jar #{prefix}/sbt-launch.jar @giter8.launchconfig "$@"
def exec_script; <<-EOS.undent
#!/bin/sh
exec java -Xmx512M -jar #{prefix}/sbt-launch.jar @giter8.launchconfig "$@"
EOS
end
def config_script
<<-EOS
[app]
version: 0.6.0
org: net.databinder.giter8
name: giter8
class: giter8.Giter8
[scala]
version: 2.9.1
[repositories]
local
scala-tools-releases
maven-central
[boot]
directory: #{prefix}/boot
def config_script; <<-EOS.undent
[app]
version: #{version}
org: net.databinder.giter8
name: giter8
class: giter8.Giter8
[scala]
version: 2.9.1
[repositories]
local
scala-tools-releases
maven-central
[boot]
directory: #{prefix}/boot
EOS
end
def install
(bin+'g8').write exec_script
(prefix+'giter8.launchconfig').write config_script
prefix.install 'sbt-launch.jar'
(bin/"g8").write exec_script
(prefix/"giter8.launchconfig").write config_script
prefix.install "sbt-launch.jar"
end
def caveats; <<-EOS.undent
@ -44,6 +42,6 @@ exec java -Xmx512M -jar #{prefix}/sbt-launch.jar @giter8.launchconfig "$@"
If the download of a resources fails, try cleaning your
~/.ivy2/cache folder and rerun / reinstall giter8.
EOS
EOS
end
end