2014-12-11 20:12:08 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Kore < Formula
|
|
|
|
homepage "https://kore.io/"
|
2014-12-14 09:19:44 +00:00
|
|
|
url "https://kore.io/release/kore-1.2.1-release.tgz"
|
|
|
|
sha1 "7af8d3d651657e54cee4d90c9be33e9bde8a0727"
|
2014-12-11 20:12:08 +00:00
|
|
|
|
|
|
|
head "https://github.com/jorisvink/kore.git"
|
|
|
|
|
2014-12-14 09:28:20 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "595c33a520e0c7436cd5c4c411ea869566a351a0" => :yosemite
|
|
|
|
sha1 "eec143a7a9ff07e8eb461d62d636a0fabdff3771" => :mavericks
|
|
|
|
sha1 "fa26ba1e86bafdeb304280fcbec4e3faa1f9702b" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-12-11 20:12:08 +00:00
|
|
|
depends_on "openssl"
|
2014-12-14 11:24:45 +00:00
|
|
|
depends_on "postgresql" => :optional
|
2014-12-11 20:12:08 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
args = []
|
|
|
|
|
|
|
|
args << "PGSQL=1" if build.with? "postgresql"
|
|
|
|
|
2014-12-14 09:19:44 +00:00
|
|
|
system "make", "PREFIX=#{prefix}", "TASKS=1", *args
|
|
|
|
system "make", "install", "PREFIX=#{prefix}"
|
2014-12-11 20:12:08 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/kore", "create", "test"
|
|
|
|
system "#{bin}/kore", "build", "test"
|
|
|
|
system "#{bin}/kore", "clean", "test"
|
|
|
|
end
|
|
|
|
end
|