-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibhttpclient.rb
More file actions
26 lines (23 loc) · 1020 Bytes
/
libhttpclient.rb
File metadata and controls
26 lines (23 loc) · 1020 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
25
26
class Libhttpclient < Formula
desc "C++ cross-platform HTTP client library."
homepage "https://github.com/cppfw/httpclient"
url "https://github.com/cppfw/httpclient/archive/0.1.24.tar.gz"
sha256 "be59cff4a3819df9485279e91cf72d3927cbff991232de76896de6492a6d25d9"
depends_on "prorab" => :build
depends_on "prorab-extra" => :build
depends_on "myci" => :build
depends_on "pkg-config" => :build
depends_on "libtst" => :build
depends_on "libutki"
depends_on "libhttpmodel"
depends_on "libnitki"
depends_on "curl"
# 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