2012-03-28 16:32:17 +00:00
|
|
|
class Ipe < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Drawing editor for creating figures in PDF or PS formats"
|
2015-07-25 20:17:53 +00:00
|
|
|
homepage "http://ipe.otfried.org/"
|
|
|
|
url "https://github.com/otfried/ipe/raw/master/releases/7.1/ipe-7.1.8-src.tar.gz"
|
|
|
|
mirror "https://raw.githubusercontent.com/DomT4/LibreMirror/master/Ipe/ipe-7.1.8-src.tar.gz"
|
|
|
|
sha256 "6a7b8dfb0a012ef9e96b62c317974d910ab6904bef29ae7636d5ac1cb26fa6ff"
|
2012-06-22 18:03:03 +00:00
|
|
|
|
2014-12-30 21:47:08 +00:00
|
|
|
bottle do
|
2015-07-25 21:46:47 +00:00
|
|
|
sha256 "67068ec329e946fd27356eafbbecd9448f5ac0781912a46a4e7baa939fa682dd" => :yosemite
|
|
|
|
sha256 "fae4394322876c9610076164a48d37cc4bc15d7f7f369312241a86c3c3f2e28b" => :mavericks
|
|
|
|
sha256 "6e786c07223ddfe324ea3e5581740f4b02d31b79ccf5c3e1340ab09e69e27a99" => :mountain_lion
|
2014-12-30 21:47:08 +00:00
|
|
|
end
|
|
|
|
|
2014-12-29 16:17:22 +00:00
|
|
|
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"
|
2012-03-28 16:32:17 +00:00
|
|
|
|
2012-06-22 17:59:11 +00:00
|
|
|
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
|
|
|
|
|
2012-03-28 16:32:17 +00:00
|
|
|
def install
|
2014-12-29 16:17:22 +00:00
|
|
|
# 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.
|
2015-07-25 20:17:53 +00:00
|
|
|
inreplace "config.mak" do |s|
|
|
|
|
s.gsub! "ifndef MACOS", "ifdef MACOS"
|
|
|
|
s.gsub! "moc-qt4", "moc"
|
|
|
|
end
|
|
|
|
|
2014-12-29 16:17:22 +00:00
|
|
|
system "make", "IPEPREFIX=#{HOMEBREW_PREFIX}"
|
2012-03-28 16:32:17 +00:00
|
|
|
system "make", "IPEPREFIX=#{prefix}", "install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|