require "formula"

class Kakoune < Formula
  homepage "https://github.com/mawww/kakoune"
  head "https://github.com/mawww/kakoune.git"

  depends_on 'boost'
  depends_on 'asciidoc' => :build

  def install
    cd 'src' do
      system "make", "install", "PREFIX=#{prefix}"
    end
  end
end

require "formula"

class Kakoune < Formula
  homepage "https://github.com/mawww/kakoune"
  head "https://github.com/mawww/kakoune.git"

  depends_on 'boost'
  depends_on 'docbook-xsl' => :build
  depends_on 'asciidoc' => [:build, 'with-docbook-xsl']

  def install
    cd 'src' do
      system "make", "install", "PREFIX=#{prefix}"
    end
  end
end

Fix compilation on Mac OS Sierra
Fix compilation on Mac OS Sierra

The `xsltproc` utility is missing some xsl files, which are now
installed on the system by the `docbook-xsl` package.

Fixes #939
