-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibfsif.rb
More file actions
20 lines (17 loc) · 836 Bytes
/
libfsif.rb
File metadata and controls
20 lines (17 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class Libfsif < Formula
desc "C++ cross-platform file system library."
homepage "https://github.com/cppfw/fsif"
url "https://github.com/cppfw/fsif/archive/1.0.159.tar.gz"
sha256 "77d0ab888f1d07577729d9ade799adc648a62ef000b1f06de5549c21b3a23b5e"
depends_on "prorab" => :build
depends_on "libutki"
depends_on "zlib"
# 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", "--directory=src", "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