homebrew-core/Formula/skinny.rb

28 lines
861 B
Ruby

class Skinny < Formula
desc "Full-stack web app framework in Scala"
homepage "https://skinny-framework.github.io"
url "https://github.com/skinny-framework/skinny-framework/releases/download/4.0.1/skinny-4.0.1.tar.gz"
sha256 "2382ba97f799bfc772ee79b2c084c63a1278ddd89de8dacd4ba6433f41294812"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, all: "97cc1387283607f82657290b059c45d22018c2b2a93abe4ce14cf771af450def"
end
depends_on "openjdk"
def install
inreplace %w[skinny skinny-blank-app/skinny], "/usr/local", HOMEBREW_PREFIX
libexec.install Dir["*"]
skinny_env = Language::Java.overridable_java_home_env
skinny_env[:PATH] = "#{bin}:${PATH}"
skinny_env[:PREFIX] = libexec
(bin/"skinny").write_env_script libexec/"skinny", skinny_env
end
test do
system bin/"skinny", "new", "myapp"
end
end