homebrew-core/Formula/ace.rb

42 lines
1.5 KiB
Ruby
Raw Normal View History

2014-05-21 06:41:42 +00:00
require "formula"
class Ace < Formula
2014-05-21 06:41:42 +00:00
homepage "http://www.cse.wustl.edu/~schmidt/ACE.html"
url "http://download.dre.vanderbilt.edu/previous_versions/ACE-6.3.0.tar.bz2"
sha1 "f7f0ba28f61774e3b269af65461819f31c999529"
2014-06-29 03:47:43 +00:00
bottle do
2014-12-12 08:16:16 +00:00
sha1 "90cb518c4554949453de2eb406a7d1ef8fda3880" => :yosemite
sha1 "2a58aa9a687ed6b8d3eef8f982b0c96554d85de7" => :mavericks
sha1 "faa49b7abaf6661f0e4cff46715755985a4a980a" => :mountain_lion
2014-06-29 03:47:43 +00:00
end
def install
# ACE has two methods of compilation, "traditional" and ./configure.
# The "traditional" method has consistently given better results
# for the last 5 years, so although awkward to use on OSX, we use
# it anyway.
2013-10-23 11:59:23 +00:00
# Figure out the names of the header and makefile for this version
# of OSX and link those files to the standard names.
2014-05-21 06:41:42 +00:00
name = MacOS.cat.to_s.delete "_"
2013-10-23 11:59:23 +00:00
ln_sf "config-macosx-#{name}.h", "ace/config.h"
ln_sf "platform_macosx_#{name}.GNU", "include/makeinclude/platform_macros.GNU"
# Set up the environment the way ACE expects during build.
2014-05-21 06:41:42 +00:00
ENV["ACE_ROOT"] = buildpath
ENV["DYLD_LIBRARY_PATH"] = "#{buildpath}/ace:#{buildpath}/lib"
# Done! We go ahead and build.
2014-04-17 04:10:10 +00:00
system "make", "-C", "ace", "-f", "GNUmakefile.ACE",
"INSTALL_PREFIX=#{prefix}",
"LDFLAGS=",
"DESTDIR=",
"INST_DIR=/ace",
"debug=0",
"shared_libs=1",
"static_libs=0",
"install"
end
end