-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibclargs.rb
More file actions
22 lines (19 loc) · 977 Bytes
/
libclargs.rb
File metadata and controls
22 lines (19 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Libclargs < Formula
desc "C++ cross-platform library for parsing command line arguments."
homepage "https://github.com/cppfw/clargs"
url "https://github.com/cppfw/clargs/archive/0.2.73.tar.gz"
sha256 "13fefa20d1d61dafd99285387a9222afdbb3400609e66f66585dd9443bef029f"
depends_on "prorab" => :build
depends_on "prorab-extra" => :build
depends_on "myci" => :build
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", "--directory=src", "install", "PREFIX=#{prefix}", "lint=off"
end
test do
# tests require submodules, so skip those in homebrew recepie
# system "#{ENV['HOMEBREW_PREFIX']}/opt/make/libexec/gnubin/make", "--include-dir=#{ENV['HOMEBREW_PREFIX']}/include", "test"
end
end