Various Homebrew formula improvements
* Add missing dependencies on Linux * Remove unnecessary option. Hasn't been necessary since Homebrew/homebrew-core@90aae3e04c. * `require "formula"` is unnecessary * `brew audit --strict` warns on single quotes
This commit is contained in:
parent
08f5d1317d
commit
5a1cd1487e
|
@ -1,17 +1,20 @@
|
||||||
require "formula"
|
|
||||||
|
|
||||||
class Kakoune < Formula
|
class Kakoune < Formula
|
||||||
homepage "https://github.com/mawww/kakoune"
|
homepage "https://github.com/mawww/kakoune"
|
||||||
head "https://github.com/mawww/kakoune.git"
|
head "https://github.com/mawww/kakoune.git"
|
||||||
|
|
||||||
depends_on 'docbook-xsl' => :build
|
depends_on "docbook-xsl" => :build
|
||||||
depends_on 'ncurses' => [:build, :recommended]
|
depends_on "ncurses" => [:build, :recommended]
|
||||||
depends_on 'asciidoc' => [:build, 'with-docbook-xsl']
|
depends_on "asciidoc" => :build
|
||||||
|
|
||||||
|
unless OS.mac?
|
||||||
|
depends_on "libxslt" => :build
|
||||||
|
depends_on "pkg-config" => :build
|
||||||
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
|
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
|
||||||
|
|
||||||
cd 'src' do
|
cd "src" do
|
||||||
system "make", "install", "PREFIX=#{prefix}", "debug=no"
|
system "make", "install", "PREFIX=#{prefix}", "debug=no"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user