diff options
| author | Mike McQuaid | 2013-10-23 12:59:23 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-23 12:59:23 +0100 |
| commit | 7407434b388ce51e365affcdd7be903fb54a9f5a (patch) | |
| tree | 51d08bca25139a40e3a07b8e8beda776d83b7fcd /Library | |
| parent | 4d6345c2e3ba9a629a3b104014f1cc2830716f3c (diff) | |
| download | homebrew-7407434b388ce51e365affcdd7be903fb54a9f5a.tar.bz2 | |
ace: improve and cleanup 10.9 fix.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/ace.rb | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/Library/Formula/ace.rb b/Library/Formula/ace.rb index 31e43ede8..8a5e4c474 100644 --- a/Library/Formula/ace.rb +++ b/Library/Formula/ace.rb @@ -5,33 +5,17 @@ class Ace < Formula url 'http://download.dre.vanderbilt.edu/previous_versions/ACE-6.2.2.tar.bz2' sha1 'b95c55a2a72f3a66b16e9296c77807f4e62e8f93' - def osx_name - case MacOS.cat - when :tiger then 'macosx_tiger' - when :leopard then 'macosx_leopard' - when :snow_leopard then 'macosx_snowleopard' - when :lion then 'macosx_lion' - # Fix for 6.2.2. - # There's no Mountain Lion or Mavericks files yet. - # Reported to d.schmidt@vanderbilt.edu - else 'macosx_lion' - end - 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. - # First, we figure out the names of header files and make files - # for this version of OSX. - makefile = "platform_#{osx_name}.GNU" - header = "config-#{osx_name.sub('_','-')}.h" - - # Now, we give those files the appropriate standard names. - ln_sf header, "ace/config.h" - ln_sf makefile, "include/makeinclude/platform_macros.GNU" + # Figure out the names of the header and makefile for this version + # of OSX and link those files to the standard names. + name = MacOS.cat.to_s.delete '_' + 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. ENV['ACE_ROOT'] = buildpath |
