blob: b35ba7d69be7c98498536b5d357f1e7b49b9e78c (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 | require 'formula'
class Kjell < Formula
  homepage 'http://karlll.github.io/kjell/'
  url 'https://github.com/karlll/kjell.git', :tag => '0.2.2'
  sha1 '514fc79b62093edd4149b9d1ab54874d4e9e3fae'
  depends_on "erlang"
  def install
    system "make"
    system "make", "configure", "PREFIX=#{prefix}"
    system "make", "install", "NO_SYMLINK=1"
    system "make", "install-extensions"
  end
  test do
    require 'open3'
    Open3.popen3("#{bin}/kjell") do |stdin, stdout, _|
      stdin.write("q().\n")
      stdin.close
    end
  end
  def caveats
    "Extension kjell-prompt requires a powerline patched font. See https://github.com/Lokaltog/powerline-fonts"
  end
end
 |