-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlibtml.rb
22 lines (19 loc) · 881 Bytes
/
libtml.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Libtml < Formula
desc "C++ cross-platform tml parser library."
homepage "https://github.com/cppfw/tml"
url "https://github.com/cppfw/tml/archive/0.2.21.tar.gz"
sha256 "87d8e6b1a3157837f187414b23277c100e307cd1f5103897010c402b57e16453"
depends_on "prorab" => :build
depends_on "libclargs" => :build
depends_on "libtst" => :build
depends_on "libpapki"
depends_on "libutki"
# use gmake here because otherwise homebrew uses default Mac's make which is of too old version 3.81
def install
ENV['PATH'] += ":#{ENV['HOMEBREW_PREFIX']}/bin"
system "#{ENV['HOMEBREW_PREFIX']}/opt/make/libexec/gnubin/make", "--include-dir=#{ENV['HOMEBREW_PREFIX']}/include", "install", "PREFIX=#{prefix}", "lint=off"
end
test do
system "#{ENV['HOMEBREW_PREFIX']}/opt/make/libexec/gnubin/make", "--include-dir=#{ENV['HOMEBREW_PREFIX']}/include", "test"
end
end