-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlibsvgren.rb
28 lines (25 loc) · 1.06 KB
/
libsvgren.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
28
class Libsvgren < Formula
desc "C++ cross-platform SVG rendering library."
homepage "https://github.com/cppfw/svgren"
url "https://github.com/cppfw/svgren/archive/0.6.24.tar.gz"
sha256 "2705d1facfbde4bba8f3363e9dc4cfe6e43928cf7cd91285bdcf34b664520caa"
depends_on "prorab" => :build
depends_on "prorab-extra" => :build
depends_on "myci" => :build
depends_on "libveg" => :build
depends_on "libr4" => :build
depends_on "libclargs" => :build
depends_on "libtst" => :build
depends_on "libpng" => :build
depends_on "librasterimage"
depends_on "libsvgdom"
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