diff options
| author | Jack Nagel | 2013-09-24 17:30:53 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-09-24 17:30:53 -0500 |
| commit | e2b31e734e1221e19cf2fd66dc0098c18bfa9bf3 (patch) | |
| tree | d77635ab2b5130e5337d1509549845667ad19d09 /Library | |
| parent | a88da279fbc96f925620ac6d45ec7ab1d7d4a1fb (diff) | |
| download | homebrew-e2b31e734e1221e19cf2fd66dc0098c18bfa9bf3.tar.bz2 | |
Remove formulae moved to homebrew-science
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/alembic.rb | 23 | ||||
| -rw-r--r-- | Library/Formula/cdo.rb | 33 | ||||
| -rw-r--r-- | Library/Formula/exonerate.rb | 18 | ||||
| -rw-r--r-- | Library/Formula/field3d.rb | 44 | ||||
| -rw-r--r-- | Library/Formula/gmt.rb | 34 | ||||
| -rw-r--r-- | Library/Formula/h5utils.rb | 24 | ||||
| -rw-r--r-- | Library/Formula/hdf5.rb | 55 | ||||
| -rw-r--r-- | Library/Formula/libmatio.rb | 31 | ||||
| -rw-r--r-- | Library/Formula/minc.rb | 31 | ||||
| -rw-r--r-- | Library/Formula/moab.rb | 19 | ||||
| -rw-r--r-- | Library/Formula/ncview.rb | 60 | ||||
| -rw-r--r-- | Library/Formula/netcdf.rb | 73 | ||||
| -rw-r--r-- | Library/Formula/openmeeg.rb | 17 | ||||
| -rw-r--r-- | Library/Formula/pnapi.rb | 20 | ||||
| -rw-r--r-- | Library/Formula/r.rb | 80 | ||||
| -rw-r--r-- | Library/Formula/root.rb | 75 |
16 files changed, 0 insertions, 637 deletions
diff --git a/Library/Formula/alembic.rb b/Library/Formula/alembic.rb deleted file mode 100644 index 5dc758774..000000000 --- a/Library/Formula/alembic.rb +++ /dev/null @@ -1,23 +0,0 @@ -require 'formula' - -class Alembic < Formula - homepage 'http://opensource.imageworks.com/?p=alembic' - url 'http://alembic.googlecode.com/files/Alembic_1.1.5_2013041100.tgz' - sha1 '539813017342d156ed5b0efafc983bda9b2cb001' - version '1.1.5' - - depends_on 'cmake' => :build - depends_on 'boost' - depends_on 'hdf5' - depends_on 'ilmbase' - - def install - cmake_args = std_cmake_args + %w{. -DUSE_PYILMBASE=OFF -DUSE_PRMAN=OFF -DUSE_ARNOLD=OFF -DUSE_MAYA=OFF -DUSE_PYALEMBIC=OFF} - system "cmake", *cmake_args - system "make", "install" - #move everything upwards - lib.install_symlink Dir[prefix/"alembic-#{version}/lib/static/*"] - include.install_symlink Dir[prefix/"alembic-#{version}/include/*"] - bin.install_symlink Dir[prefix/"alembic-#{version}/bin/*"] - end -end diff --git a/Library/Formula/cdo.rb b/Library/Formula/cdo.rb deleted file mode 100644 index 8eba78c43..000000000 --- a/Library/Formula/cdo.rb +++ /dev/null @@ -1,33 +0,0 @@ -require 'formula' - -class Cdo < Formula - homepage 'https://code.zmaw.de/projects/cdo' - url 'https://code.zmaw.de/attachments/download/5824/cdo-1.6.1.tar.gz' - sha1 'b88d11f8de455b78273cdcde507a85546fc3bc19' - - option 'enable-grib2', 'Compile Fortran bindings' - - depends_on 'netcdf' - depends_on 'hdf5' - depends_on 'grib-api' if build.include? 'enable-grib2' - - def install - args = ["--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--with-netcdf=#{HOMEBREW_PREFIX}", - "--with-hdf5=#{HOMEBREW_PREFIX}", - "--with-szlib=#{HOMEBREW_PREFIX}"] - - if build.include? 'enable-grib2' - args << "--with-grib_api=#{HOMEBREW_PREFIX}" - args << "--with-jasper=#{HOMEBREW_PREFIX}" - end - - system "./configure", *args - system "make install" - end - - def test - system "#{bin}/cdo", "-h" - end -end diff --git a/Library/Formula/exonerate.rb b/Library/Formula/exonerate.rb deleted file mode 100644 index dbd2789c6..000000000 --- a/Library/Formula/exonerate.rb +++ /dev/null @@ -1,18 +0,0 @@ -require 'formula' - -class Exonerate < Formula - homepage 'http://www.ebi.ac.uk/~guy/exonerate/' - url 'http://www.ebi.ac.uk/~guy/exonerate/exonerate-2.2.0.tar.gz' - sha1 'ad4de207511e4d421e5cc28dda2261421c515bf0' - - depends_on 'pkg-config' => :build - depends_on 'glib' - - def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}" - ENV.j1 - system "make" - system "make install" - end -end diff --git a/Library/Formula/field3d.rb b/Library/Formula/field3d.rb deleted file mode 100644 index 0771bf08a..000000000 --- a/Library/Formula/field3d.rb +++ /dev/null @@ -1,44 +0,0 @@ -require 'formula' - -class Field3d < Formula - homepage 'https://sites.google.com/site/field3d/' - url 'https://github.com/imageworks/Field3D/archive/v1.3.2.tar.gz' - sha1 '08e9d70ffa23b0fb087f3a1d74d54f11f4875e2a' - - depends_on 'cmake' => :build - depends_on 'boost' - depends_on 'ilmbase' - depends_on 'hdf5' - - def patches - # add boost system to required boost libs - # already reported upstream, see https://github.com/imageworks/Field3D/pull/51 - # Remove at > 1.3.2 - DATA - end - - def install - mkdir 'brewbuild' do - args = std_cmake_args + %w[ - -DDOXYGEN_EXECUTABLE=NOTFOUND - ..] - system "cmake", *args - system "make install" - end - end -end - -__END__ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index f382937..82d2487 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -39,7 +39,7 @@ set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake ) - - FIND_PACKAGE (Doxygen) - FIND_PACKAGE (HDF5) --FIND_PACKAGE (Boost COMPONENTS thread program_options) -+FIND_PACKAGE (Boost COMPONENTS system thread program_options) - FIND_PACKAGE (ILMBase) - - OPTION (INSTALL_DOCS "Automatically install documentation." ON) diff --git a/Library/Formula/gmt.rb b/Library/Formula/gmt.rb deleted file mode 100644 index 7e7971f18..000000000 --- a/Library/Formula/gmt.rb +++ /dev/null @@ -1,34 +0,0 @@ -require 'formula' - -class Gmt < Formula - homepage 'http://gmt.soest.hawaii.edu/' - url 'ftp://ftp.soest.hawaii.edu/gmt/gmt-4.5.9.tar.bz2' - sha1 '711922fd99dcd47ace522f1e46fcafa5beab8c94' - - depends_on 'gdal' - depends_on 'netcdf' - - resource 'gshhg' do - url 'ftp://ftp.soest.hawaii.edu/gmt/gshhg-gmt-nc4-2.2.2.tar.gz' - sha1 'f01c322ad1767abf99818c250b1a58b3e2c12e1c' - end - - def install - ENV.deparallelize # Parallel builds don't work due to missing makefile dependencies - datadir = share/name - system "./configure", "--prefix=#{prefix}", - "--datadir=#{datadir}", - "--enable-gdal=#{HOMEBREW_PREFIX}", - "--enable-netcdf=#{HOMEBREW_PREFIX}", - "--enable-shared", - "--enable-triangle", - "--disable-xgrid", - "--disable-mex" - system "make" - system "make install-gmt" - system "make install-data" - system "make install-suppl" - system "make install-man" - datadir.install resource('gshhg') - end -end diff --git a/Library/Formula/h5utils.rb b/Library/Formula/h5utils.rb deleted file mode 100644 index 7f37cfe38..000000000 --- a/Library/Formula/h5utils.rb +++ /dev/null @@ -1,24 +0,0 @@ -require 'formula' - -class H5utils < Formula - homepage 'http://ab-initio.mit.edu/wiki/index.php/H5utils' - url 'http://ab-initio.mit.edu/h5utils/h5utils-1.12.1.tar.gz' - sha1 '1bd8ef8c50221da35aafb5424de9b5f177250d2d' - - depends_on :libpng - depends_on 'hdf5' - - # A patch is required in order to build h5utils with libpng 1.5 - def patches - {:p0 => - "https://trac.macports.org/export/102291/trunk/dports/science/h5utils/files/patch-writepng.c" - } - end - - def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--without-octave" - system "make install" - end -end diff --git a/Library/Formula/hdf5.rb b/Library/Formula/hdf5.rb deleted file mode 100644 index 037acce83..000000000 --- a/Library/Formula/hdf5.rb +++ /dev/null @@ -1,55 +0,0 @@ -require 'formula' - -class Hdf5 < Formula - homepage 'http://www.hdfgroup.org/HDF5' - url 'http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.11.tar.bz2' - sha1 '87ded0894b104cf23a4b965f4ac0a567f8612e5e' - - # TODO - warn that these options conflict - option :universal - option 'enable-fortran', 'Compile Fortran bindings' - option 'enable-cxx', 'Compile C++ bindings' - option 'enable-threadsafe', 'Trade performance and C++ or Fortran support for thread safety' - option 'enable-parallel', 'Compile parallel bindings' - option 'enable-fortran2003', 'Compile Fortran 2003 bindings. Requires enable-fortran.' - - depends_on :fortran if build.include? 'enable-fortran' or build.include? 'enable-fortran2003' - depends_on 'szip' - depends_on :mpi => [:cc, :cxx, :f90] if build.include? "enable-parallel" - - def install - ENV.universal_binary if build.universal? - args = %W[ - --prefix=#{prefix} - --enable-production - --enable-debug=no - --disable-dependency-tracking - --with-zlib=/usr - --with-szlib=#{HOMEBREW_PREFIX} - --enable-filters=all - --enable-static=yes - --enable-shared=yes - ] - - args << '--enable-parallel' if build.include? 'enable-parallel' - if build.include? 'enable-threadsafe' - args.concat %w[--with-pthread=/usr --enable-threadsafe] - else - if build.include? 'enable-cxx' - args << '--enable-cxx' - end - if build.include? 'enable-fortran' or build.include? 'enable-fortran2003' - args << '--enable-fortran' - args << '--enable-fortran2003' if build.include? 'enable-fortran2003' - end - end - - if build.include? 'enable-parallel' - ENV['CC'] = 'mpicc' - ENV['FC'] = 'mpif90' - end - - system "./configure", *args - system "make install" - end -end diff --git a/Library/Formula/libmatio.rb b/Library/Formula/libmatio.rb deleted file mode 100644 index b26c71fe0..000000000 --- a/Library/Formula/libmatio.rb +++ /dev/null @@ -1,31 +0,0 @@ -require 'formula' - -class Libmatio < Formula - homepage 'http://matio.sourceforge.net' - url 'http://downloads.sourceforge.net/project/matio/matio/1.5.2/matio-1.5.2.tar.gz' - sha1 'd5a83a51eb2550d75811d2dde967ef3e167d4f52' - - option :universal - option 'with-hdf5', 'Enable support for newer MAT files that use the HDF5-format' - - depends_on 'hdf5' => :optional - - def install - ENV.universal_binary if build.universal? - args = %W[ - --prefix=#{prefix} - --with-zlib=/usr - --enable-extended-sparse=yes - ] - - if build.with? 'hdf5' - args << "--with-hdf5=#{HOMEBREW_PREFIX}" << "--enable-mat73=yes" - else - args << "--with-hdf5=no" - end - - system "./configure", *args - system "make" - system "make install" - end -end diff --git a/Library/Formula/minc.rb b/Library/Formula/minc.rb deleted file mode 100644 index 2d0140f26..000000000 --- a/Library/Formula/minc.rb +++ /dev/null @@ -1,31 +0,0 @@ -require 'formula' - -# 2.2.20 does not build on OS X. See: -# https://github.com/BIC-MNI/minc/pull/16 -# https://github.com/mxcl/homebrew/issues/22152 -class Minc < Formula - homepage 'http://en.wikibooks.org/wiki/MINC' - url 'https://github.com/BIC-MNI/minc/archive/minc-2-1-13.tar.gz' - version '2.1.13' - sha1 '62eeeab62bb5c977e11166d4e43ba384fd029fd1' - - head 'https://github.com/BIC-MNI/minc.git' - - depends_on :automake - depends_on :libtool - - depends_on 'netcdf' - depends_on 'hdf5' - - fails_with :clang do - # TODO This is an easy fix, someone send it upstream! - build 425 - cause "Throws 'non-void function 'miget_real_value_hyperslab' should return a value'" - end - - def install - system "autoreconf", "--force", "--install" - system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking" - system "make install" - end -end diff --git a/Library/Formula/moab.rb b/Library/Formula/moab.rb deleted file mode 100644 index 8f4a9efde..000000000 --- a/Library/Formula/moab.rb +++ /dev/null @@ -1,19 +0,0 @@ -require 'formula' - -class Moab < Formula - homepage 'https://trac.mcs.anl.gov/projects/ITAPS/wiki/MOAB' - url 'https://bitbucket.org/fathomteam/moab/get/4.6.1.tar.gz' - sha1 '6fad0bc6ff6c8c067edbfb56b5e7068c92a8e7cd' - - depends_on :automake - depends_on :libtool - depends_on 'netcdf' - depends_on 'hdf5' - - def install - system "autoreconf", "--force", "--install" - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}" - system "make install" - end -end diff --git a/Library/Formula/ncview.rb b/Library/Formula/ncview.rb deleted file mode 100644 index 2a1fbae74..000000000 --- a/Library/Formula/ncview.rb +++ /dev/null @@ -1,60 +0,0 @@ -require 'formula' - -class Ncview < Formula - homepage 'http://meteora.ucsd.edu/~pierce/ncview_home_page.html' - url 'ftp://cirrus.ucsd.edu/pub/ncview/ncview-2.1.2.tar.gz' - sha1 '425b0f5d505af9c1f974903435af385582be7ae4' - - depends_on :x11 - depends_on "netcdf" - - # Disable a block in configure that tries to pass an RPATH to the compiler. - # The code guesses wrong which causes the linking step to fail. - def patches - DATA - end - - def install - system "./configure", "--disable-dependency-tracking", - "--prefix=#{prefix}" - system "make install" - end -end - -__END__ -Don't try to mess with the compiler rpath. Just not a good idea. - -diff --git a/configure b/configure -index b80ae96..a650f6f 100755 ---- a/configure -+++ b/configure -@@ -8672,29 +8672,6 @@ if test x$CC_TEST_SAME != x$NETCDF_CC_TEST_SAME; then - exit -1 - fi - --#---------------------------------------------------------------------------------- --# Construct our RPATH flags. Idea here is that we have LDFLAGS that might look, --# for example, something like this: --# LIBS="-L/usr/local/lib -lnetcdf -L/home/pierce/lib -ludunits" --# We want to convert this to -rpath flags suitable for the compiler, which would --# have this format: --# "-Wl,-rpath,/usr/local/lib -Wl,-rpath,/home/pierce/lib" --# --# As a safety check, I only do this for the GNU compiler, as I don't know if this --# is anything like correct syntax for other compilers. Note that this *does* work --# for the Intel icc compiler, but also that the icc compiler sets $ac_compiler_gnu --# to "yes". Go figure. --#---------------------------------------------------------------------------------- --if test x$ac_compiler_gnu = xyes; then -- RPATH_FLAGS="" -- for word in $UDUNITS2_LDFLAGS $NETCDF_LDFLAGS; do -- if test `expr $word : -L/` -eq 3; then -- RPDIR=`expr substr $word 3 999`; -- RPATH_FLAGS="$RPATH_FLAGS -Wl,-rpath,$RPDIR" -- fi -- done -- --fi - - - ac_config_files="$ac_config_files Makefile src/Makefile" diff --git a/Library/Formula/netcdf.rb b/Library/Formula/netcdf.rb deleted file mode 100644 index cb0bb6af3..000000000 --- a/Library/Formula/netcdf.rb +++ /dev/null @@ -1,73 +0,0 @@ -require 'formula' - -class Netcdf < Formula - homepage 'http://www.unidata.ucar.edu/software/netcdf' - url 'http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-4.2.1.1.tar.gz' - sha1 '76631cb4e6b767c224338415cf6e5f5ff9bd1238' - - depends_on :fortran if build.include? 'enable-fortran' - depends_on 'hdf5' - - option 'enable-fortran', 'Compile Fortran bindings' - option 'disable-cxx', "Don't compile C++ bindings" - option 'enable-cxx-compat', 'Compile C++ bindings for compatibility' - - resource 'cxx' do - url 'http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-cxx4-4.2.tar.gz' - sha1 '59628c9f06c211a47517fc00d8b068da159ffa9d' - end - - resource 'cxx-compat' do - url 'http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-cxx-4.2.tar.gz' - sha1 'bab9b2d873acdddbdbf07ab35481cd0267a3363b' - end - - resource 'fortran' do - url 'http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-fortran-4.2.tar.gz' - sha1 'f1887314455330f4057bc8eab432065f8f6f74ef' - end - - def install - if build.include? 'enable-fortran' - # fix for ifort not accepting the --force-load argument, causing - # the library libnetcdff.dylib to be missing all the f90 symbols. - # http://www.unidata.ucar.edu/software/netcdf/docs/known_problems.html#intel-fortran-macosx - # https://github.com/mxcl/homebrew/issues/13050 - ENV['lt_cv_ld_force_load'] = 'no' if ENV.fc == 'ifort' - end - - common_args = %W[ - --disable-dependency-tracking - --prefix=#{prefix} - --enable-static - --enable-shared - ] - - args = common_args.clone - args.concat %w[--enable-netcdf4 --disable-doxygen] - - system './configure', *args - system 'make install' - - # Add newly created installation to paths so that binding libraries can - # find the core libs. - ENV.prepend_path 'PATH', bin - ENV.prepend 'CPPFLAGS', "-I#{include}" - ENV.prepend 'LDFLAGS', "-L#{lib}" - - resource('cxx').stage do - system './configure', *common_args - system 'make install' - end unless build.include? 'disable-cxx' - - resource('cxx-compat').stage do - system './configure', *common_args - system 'make install' - end if build.include? 'enable-cxx-compat' - - resource('fortran').stage do - system './configure', *common_args - system 'make install' - end if build.include? 'enable-fortran' - end -end diff --git a/Library/Formula/openmeeg.rb b/Library/Formula/openmeeg.rb deleted file mode 100644 index df66761e0..000000000 --- a/Library/Formula/openmeeg.rb +++ /dev/null @@ -1,17 +0,0 @@ -require 'formula' - -class Openmeeg < Formula - homepage 'http://www-sop.inria.fr/athena/software/OpenMEEG/' - url 'https://github.com/openmeeg/openmeeg/archive/release-2.1.tar.gz' - sha1 'c19896bde64e751142c74d15bf99defec518a054' - - head 'https://github.com/openmeeg/openmeeg.git' - - depends_on 'cmake' => :build - depends_on 'hdf5' - - def install - system "cmake", ".", "-DUSE_PROGRESSBAR=ON", *std_cmake_args - system "make install" - end -end diff --git a/Library/Formula/pnapi.rb b/Library/Formula/pnapi.rb deleted file mode 100644 index 5575ddb63..000000000 --- a/Library/Formula/pnapi.rb +++ /dev/null @@ -1,20 +0,0 @@ -require 'formula' - -class Pnapi < Formula - homepage 'http://service-technology.org/pnapi/' - url 'http://download.gna.org/service-tech/pnapi/pnapi-4.02.tar.gz' - sha1 'caa61aaa5886381e594f7eb57a75c1feb6960c3a' - - depends_on "graphviz" - - def install - system "./configure", "--prefix=#{prefix}" - system "make install" - # for some reason config.h is not installed by the Makefile - (include/'pnapi').install 'src/config.h' - end - - def test - system "#{bin}/petri", "--help" - end -end diff --git a/Library/Formula/r.rb b/Library/Formula/r.rb deleted file mode 100644 index 8b2dce1d2..000000000 --- a/Library/Formula/r.rb +++ /dev/null @@ -1,80 +0,0 @@ -require 'formula' - -class R < Formula - homepage 'http://www.r-project.org' - url 'http://cran.r-project.org/src/base/R-3/R-3.0.1.tar.gz' - sha1 '5cc65476837926fdf04105954ea94efa53ac85ce' - - head 'https://svn.r-project.org/R/trunk' - - option 'with-openblas', 'Compile linking to OpenBLAS' - option 'with-valgrind', 'Compile an unoptimized build with support for the Valgrind debugger' - option 'test', 'Run tests before installing' - - depends_on :fortran - depends_on 'readline' - depends_on 'libtiff' - depends_on 'jpeg' - depends_on :x11 - depends_on 'valgrind' => :optional - depends_on 'homebrew/science/openblas' if build.with? 'openblas' - - # This is the same script that Debian packages use. - resource 'completion' do - url 'http://rcompletion.googlecode.com/svn-history/r28/trunk/bash_completion/R', :using => :curl - version 'r28' - sha1 'af734b8624b33f2245bf88d6782bea0dc5d829a4' - end - - def install - args = [ - "--prefix=#{prefix}", - "--with-aqua", - "--enable-R-framework", - "--with-lapack" - ] - - if build.with? 'valgrind' - args << '--with-valgrind-instrumentation=2' - ENV.Og - end - - args << '--with-blas="-lgoto2"' if build.with? 'openblas' - - # Pull down recommended packages if building from HEAD. - system './tools/rsync-recommended' if build.head? - - system "./configure", *args - system "make" - ENV.j1 # Serialized installs, please - system "make check 2>&1 | tee make-check.log" if build.include? 'test' - system "make install" - - # Link binaries and manpages from the Framework - # into the normal locations - bin.mkpath - man1.mkpath - - ln_s prefix+"R.framework/Resources/bin/R", bin - ln_s prefix+"R.framework/Resources/bin/Rscript", bin - ln_s prefix+"R.framework/Resources/man1/R.1", man1 - ln_s prefix+"R.framework/Resources/man1/Rscript.1", man1 - - bash_completion.install resource('completion') - - prefix.install 'make-check.log' if build.include? 'test' - end - - def caveats; <<-EOS.undent - R.framework was installed to: - #{opt_prefix}/R.framework - - To use this Framework with IDEs such as RStudio, it must be linked - to the standard OS X location: - sudo ln -s "#{opt_prefix}/R.framework" /Library/Frameworks - - To enable rJava support, run the following command: - R CMD javareconf JAVA_CPPFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers - EOS - end -end diff --git a/Library/Formula/root.rb b/Library/Formula/root.rb deleted file mode 100644 index 3fb2a852e..000000000 --- a/Library/Formula/root.rb +++ /dev/null @@ -1,75 +0,0 @@ -require 'formula' - -class Root < Formula - homepage 'http://root.cern.ch' - url 'ftp://root.cern.ch/root/root_v5.34.10.source.tar.gz' - version '5.34.10' - sha1 '2dc0af12e531c4f2314a9fbd7dd4f5fee924d71c' - - bottle do - sha1 '7f6abbf1bf9373764d8564e90552e8a1a03ed52d' => :mountain_lion - sha1 '6fb8a9c43c8ab9908571677634319c18d15ff8ea' => :lion - sha1 'a4f560c56436285635e03fdcd693d7e69320bbe9' => :snow_leopard - end - - depends_on 'xrootd' => :recommended - depends_on 'fftw' => :optional - depends_on :x11 - depends_on :python - - def install - # brew audit doesn't like non-executables in bin - # so we will move {thisroot,setxrd}.{c,}sh to libexec - # (and change any references to them) - inreplace Dir['config/roots.in', 'config/thisroot.*sh', - 'etc/proof/utils/pq2/setup-pq2', - 'man/man1/setup-pq2.1', 'README/INSTALL', 'README/README'], - /bin.thisroot/, 'libexec/thisroot' - - # Determine architecture - arch = MacOS.prefer_64_bit? ? 'macosx64' : 'macosx' - - # N.B. that it is absolutely essential to specify - # the --etcdir flag to the configure script. This is - # due to a long-known issue with ROOT where it will - # not display any graphical components if the directory - # is not specified - # - # => http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=15072 - system "./configure", - "#{arch}", - "--all", - "--enable-builtin-glew", - "--prefix=#{prefix}", - "--etcdir=#{prefix}/etc/root", - "--mandir=#{man}" - system "make" - system "make install" - - # needed to run test suite - prefix.install 'test' - - libexec.mkpath - mv Dir["#{bin}/*.*sh"], libexec - end - - def test - system "make -C #{prefix}/test/ hsimple" - system "#{prefix}/test/hsimple" - end - - - def caveats; <<-EOS.undent - Because ROOT depends on several installation-dependent - environment variables to function properly, you should - add the following commands to your shell initialization - script (.bashrc/.profile/etc.), or call them directly - before using ROOT. - - For csh/tcsh users: - source `brew --prefix root`/libexec/thisroot.csh - For bash/zsh users: - . $(brew --prefix root)/libexec/thisroot.sh - EOS - end -end |
