From 5a1cd1487e441c079881bc817e98da12e0e21250 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 28 Jan 2018 19:48:43 +0000 Subject: [PATCH] Various Homebrew formula improvements * Add missing dependencies on Linux * Remove unnecessary option. Hasn't been necessary since Homebrew/homebrew-core@90aae3e04c9af9d834c16c6820aff930fed5c3f4. * `require "formula"` is unnecessary * `brew audit --strict` warns on single quotes --- contrib/kakoune.rb | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/contrib/kakoune.rb b/contrib/kakoune.rb index 1341c15b..e13f36fe 100644 --- a/contrib/kakoune.rb +++ b/contrib/kakoune.rb @@ -1,17 +1,20 @@ -require "formula" - class Kakoune < Formula homepage "https://github.com/mawww/kakoune" head "https://github.com/mawww/kakoune.git" - depends_on 'docbook-xsl' => :build - depends_on 'ncurses' => [:build, :recommended] - depends_on 'asciidoc' => [:build, 'with-docbook-xsl'] + depends_on "docbook-xsl" => :build + depends_on "ncurses" => [:build, :recommended] + depends_on "asciidoc" => :build + + unless OS.mac? + depends_on "libxslt" => :build + depends_on "pkg-config" => :build + end def install ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog" - cd 'src' do + cd "src" do system "make", "install", "PREFIX=#{prefix}", "debug=no" end end