aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAndreas Pfohl2014-12-11 21:12:08 +0100
committerMisty De Meo2014-12-12 09:43:53 -0800
commit387baacd72aa8d9d033097c5064609019074c93a (patch)
treedca851ef2f14b846e64a8db700e6c3a4d0a09566 /Library/Formula
parentb39cca9b0cc1aeea16d97d035dce2ce4fbf001de (diff)
downloadhomebrew-387baacd72aa8d9d033097c5064609019074c93a.tar.bz2
kore 1.2 (new formula)
This commit add's a new formular to Homebrew for Kore. Kore is a fast SPDY capable web server for web development in C. Look at https://kore.io/ for further information. Closes #34898. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/kore.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/kore.rb b/Library/Formula/kore.rb
new file mode 100644
index 000000000..7fec939db
--- /dev/null
+++ b/Library/Formula/kore.rb
@@ -0,0 +1,33 @@
+require "formula"
+
+class Kore < Formula
+ homepage "https://kore.io/"
+ url "https://kore.io/release/kore-1.2-stable.tgz"
+ sha1 "cb7f9eb7151d612d9acffc5eed1d79c296baeeba"
+
+ head "https://github.com/jorisvink/kore.git"
+
+ depends_on "openssl"
+ depends_on "postgresql" => :recommended
+
+ def install
+ args = []
+
+ # The following inreplaces are a workaround. An upstream pull request has been
+ # created to solve this problem. (https://github.com/jorisvink/kore/pull/25)
+ inreplace "src/cli.c", / = "-I\/usr\/local\/include";/, " = \"-I#{include}\";"
+ inreplace "Makefile", /\/usr\/local/, prefix
+
+ args << "PGSQL=1" if build.with? "postgresql"
+
+ system "make", "TASKS=1", *args
+ bin.mkdir
+ system "make", "install"
+ end
+
+ test do
+ system "#{bin}/kore", "create", "test"
+ system "#{bin}/kore", "build", "test"
+ system "#{bin}/kore", "clean", "test"
+ end
+end