-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlibutki.rb
21 lines (18 loc) · 986 Bytes
/
libutki.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class Libutki < Formula
desc "C++ utility functions library. Stuff missing from std:: namespace."
homepage "https://github.com/cppfw/utki"
url "https://github.com/cppfw/utki/archive/1.1.269.tar.gz"
sha256 "eb3994d2a61c6d889135940a25ffa10ee088177a914b816a391ba58279735c3d"
depends_on "prorab" => :build
depends_on "prorab-extra" => :build
# 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"
# install from src directory because tests require submodules
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