-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprorab.rb
More file actions
19 lines (16 loc) · 787 Bytes
/
prorab.rb
File metadata and controls
19 lines (16 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class Prorab < Formula
desc "GNU make based build system."
homepage "https://github.com/cppfw/prorab"
url "https://github.com/cppfw/prorab/archive/2.0.30.tar.gz"
sha256 "3dd58dd2198632981ae68284c028a8162f7ee1671cfb3c6679d418311cd0904b"
depends_on "dos2unix" => :build
depends_on "make"
# 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