forked from necromant2005/homebrew-boneyard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ipe.rb
40 lines (35 loc) · 1.25 KB
/
ipe.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
29
30
31
32
33
34
35
36
37
38
39
40
class Ipe < Formula
desc "Drawing editor for creating figures in PDF or PS formats"
homepage "http://ipe.otfried.org/"
url "https://github.com/otfried/ipe/raw/master/releases/7.1/ipe-7.1.8-src.tar.gz"
sha256 "6a7b8dfb0a012ef9e96b62c317974d910ab6904bef29ae7636d5ac1cb26fa6ff"
depends_on "pkg-config" => :build
depends_on "makeicns" => :build
depends_on "lua"
depends_on "qt"
depends_on "cairo"
depends_on "jpeg-turbo"
depends_on "freetype"
fails_with :clang do
build 318
cause <<-EOS.undent
IPE should be compiled with the same flags as Qt, which uses LLVM.
ipeui_common.cpp:1: error: bad value (native) for -march= switch
EOS
end
def install
# There's a weird race condition around setting flags for Freetype
# If we ever go back to using flags instead of pkg-config be wary of that.
ENV.deparallelize
cd "src" do
# Comment this out so we can make use of pkg-config.
# Upstream have said they will *never* support OS X, so we have free reign.
inreplace "config.mak" do |s|
s.gsub! "ifndef MACOS", "ifdef MACOS"
s.gsub! "moc-qt4", "moc"
end
system "make", "IPEPREFIX=#{HOMEBREW_PREFIX}"
system "make", "IPEPREFIX=#{prefix}", "install"
end
end
end