-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibmikroxml.rb
More file actions
22 lines (19 loc) · 944 Bytes
/
libmikroxml.rb
File metadata and controls
22 lines (19 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Libmikroxml < Formula
desc "C++ cross-platform XML parser library."
homepage "https://github.com/cppfw/mikroxml"
url "https://github.com/cppfw/mikroxml/archive/0.1.74.tar.gz"
sha256 "2bd99921565c2805c1d3687379694ee28912cedd141df5d54d36bd98d00e5eca"
depends_on "prorab" => :build
depends_on "pkg-config" => :build
depends_on "libtst" => :build # needed for tests
depends_on "libfsif" => :build # needed for tests
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