-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibtst.rb
More file actions
24 lines (21 loc) · 977 Bytes
/
libtst.rb
File metadata and controls
24 lines (21 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
23
24
class Libtst < Formula
desc "C++ testing framework."
homepage "https://github.com/cppfw/tst"
url "https://github.com/cppfw/tst/archive/0.3.49.tar.gz"
sha256 "3506d931ec8fda2b756d88b7e3678d82aa86fc4638ac592cb4971f9758fcfd75"
depends_on "prorab" => :build
depends_on "prorab-extra" => :build
depends_on "myci" => :build
depends_on "pkgconf" => :build # NOTE: 'pkg-config' formula is deprecated
depends_on "libnitki" => :build
depends_on "libutki"
depends_on "libclargs"
# 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