-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathliburlmodel.rb
More file actions
21 lines (18 loc) · 878 Bytes
/
liburlmodel.rb
File metadata and controls
21 lines (18 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class Liburlmodel < Formula
desc "URL model C++ library."
homepage "https://github.com/cppfw/urlmodel"
url "https://github.com/cppfw/urlmodel/archive/0.1.13.tar.gz"
sha256 "02df69ca404c22b3f5074791ad6714c6e4b5a92f4bee222cbcc4db3bf6bc14af"
depends_on "prorab" => :build
depends_on "prorab-extra" => :build
depends_on "libtst" => :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
system "#{ENV['HOMEBREW_PREFIX']}/opt/make/libexec/gnubin/make", "--include-dir=#{ENV['HOMEBREW_PREFIX']}/include", "test"
end
end