mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-25 20:41:49 +03:00
f5b829e82a
as a build and recommended dependency. Generates a `--without-ncurses` option to disable it. See https://github.com/Homebrew/brew/blob/master/docs/Formula-Cookbook.md#specifying-other-formulae-as-dependencies
20 lines
452 B
Ruby
20 lines
452 B
Ruby
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 'ncurses' => [:build, :recommended]
|
|
depends_on 'asciidoc' => [:build, 'with-docbook-xsl']
|
|
|
|
def install
|
|
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
|
|
|
|
cd 'src' do
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
end
|
|
end
|
|
end
|