-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibveg.rb
More file actions
25 lines (22 loc) · 994 Bytes
/
libveg.rb
File metadata and controls
25 lines (22 loc) · 994 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
class Libveg < Formula
desc "C++ cross-platform vector graphics library."
homepage "https://github.com/cppfw/veg"
url "https://github.com/cppfw/veg/archive/0.1.13.tar.gz"
sha256 "e061de74b988012c010a8e2dbd6ab88ad3805a560255e0f30347ac48b296bb3d"
depends_on "prorab" => :build
depends_on "prorab-extra" => :build
depends_on "myci" => :build
depends_on "libantigrain" => :build
depends_on "libr4" => :build
depends_on "libtst" => :build
depends_on "librasterimage"
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", "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