Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

scotch: Update to 6.0

Also disables pthreads as OS X doesn't implement the required optional parts of
the POSIX spec:

  http://stackoverflow.com/questions/8920803/pthread-and-gcc-compiling-issue-on-os-x

Closes #16977.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
  • Loading branch information...
commit 7078796118c4394ae1581b49ad7d08fb40d3b703 1 parent fda9e5e
@wdeconinck wdeconinck authored Sharpie committed
Showing with 8 additions and 8 deletions.
  1. +8 −8 Library/Formula/scotch.rb
View
16 Library/Formula/scotch.rb
@@ -2,9 +2,8 @@
class Scotch < Formula
homepage 'https://gforge.inria.fr/projects/scotch'
- url 'https://gforge.inria.fr/frs/download.php/28933'
- version '5.1.12'
- sha1 '1fd9becbc14809fc080f4f69ca0d9c1c8726223f'
+ url 'https://gforge.inria.fr/frs/download.php/31831/scotch_6.0.0.tar.gz'
+ sha1 'eb32d846bb14449245b08c81e740231f7883fea6'
depends_on MPIDependency.new(:cc)
@@ -12,15 +11,16 @@ def install
cd 'src' do
ln_s 'Make.inc/Makefile.inc.i686_mac_darwin8', 'Makefile.inc'
- # Use mpicc to compile everything
inreplace 'Makefile.inc' do |s|
- s.change_make_var! 'CCS', ENV['MPICC']
+ s.change_make_var! 'CCS', ENV['CC']
s.change_make_var! 'CCP', ENV['MPICC']
s.change_make_var! 'CCD', ENV['MPICC']
+ # OS X doesn't implement pthread_barriers required by Scotch
+ s.slice! '-DCOMMON_PTHREAD'
+ s.slice! '-DSCOTCH_PTHREAD'
end
-
- system 'make', 'scotch'
- system 'make', 'ptscotch'
+ system 'make', 'scotch','VERBOSE=ON'
+ system 'make', 'ptscotch','VERBOSE=ON'
system 'make', 'install', "prefix=#{prefix}"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.