-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibnitki.rb
More file actions
20 lines (17 loc) · 820 Bytes
/
Copy pathlibnitki.rb
File metadata and controls
20 lines (17 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class Libnitki < Formula
desc "C++ cross-platform threading library."
homepage "https://github.com/cppfw/nitki"
url "https://github.com/cppfw/nitki/archive/1.0.101.tar.gz"
sha256 "5d616ddf09025e8cfc5ab8a2d5f8df8b70bc0ee711a1ec6512d97bbe55492f0e"
depends_on "prorab" => :build
depends_on "libopros"
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