-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathruisapp.rb
27 lines (24 loc) · 1 KB
/
ruisapp.rb
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
27
class Ruisapp < Formula
desc "Intrusive C++ cross-platform OpenGL based GUI library."
homepage "https://github.com/cppfw/ruisapp"
url "https://github.com/cppfw/ruisapp/archive/0.2.112.tar.gz"
sha256 "bb61d4e613ef491d6088a8e7756ec510c3740cd34e20db239f9dc095a46c932b"
depends_on "prorab" => :build
depends_on "prorab-extra" => :build
depends_on "libutki"
depends_on "libpapki"
depends_on "libopros"
depends_on "libtml"
depends_on "glew"
depends_on "libr4"
depends_on "libruis"
depends_on "libruis-render-opengl"
# 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