diff --git a/Formula/astrometry-net.rb b/Formula/astrometry-net.rb deleted file mode 100644 index ae3f3bdb..00000000 --- a/Formula/astrometry-net.rb +++ /dev/null @@ -1,62 +0,0 @@ -class AstrometryNet < Formula - desc "Automatic identification of astronomical images" - homepage "http://astrometry.net" - url "http://astrometry.net/downloads/astrometry.net-0.73.tar.gz" - sha256 "27dcaa820db51cda65c23c71d40ea06bda53e13a658ec8e94b39c65ac6584368" - head "https://github.com/dstndstn/astrometry.net.git" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any, high_sierra: "6370ad57a1a5f3a7569caf87201d5a3726dc0181a902c423009a244265d092de" - sha256 cellar: :any, sierra: "1d749e2a0bd3c69012dbf8bfb2e1ac1971f68cc8e932361b57d0354c085f66ca" - sha256 cellar: :any, el_capitan: "74a3f7c9ac9a7c3263431194789c691a7f98fc2186fcbec1dbb52aaf9d73db2e" - sha256 cellar: :any, x86_64_linux: "c4f85a0037ba25a08f2038ff8b1eeb8d999015484c1f30e7f5479a8f9c6f0418" - end - - option "without-extras", -"Don't try to build plotting code (actually it will still try, but homebrew won't halt the install if it fails)" - - depends_on "pkg-config" => :build - depends_on "swig" => :build - depends_on "cairo" - depends_on "cfitsio" - depends_on "gsl" - depends_on "jpeg" - depends_on "libpng" - depends_on "netpbm" - depends_on "numpy" - depends_on "wcslib" - depends_on "wget" if OS.mac? - - # this formula includes python bindings - depends_on "python" => :recommended - - resource "pyfits" do - url "https://files.pythonhosted.org/packages/45/98/d6d25932e6a82fa8456d38ab307bfb8945a1e1dd4e896730555e3b61cfc5/pyfits-3.4.tar.gz" - sha256 "ce0319cf6ef40846c5915202e4c8bd8d293ad85af4b14aa5a60fb285b7538c4b" - end - - def install - ENV["INSTALL_DIR"] = prefix - ENV["NETPBM_INC"] = "-I#{Formula["netpbm"].opt_include}/netpbm" - ENV["NETPBM_LIB"] = "-L#{Formula["netpbm"].opt_lib} -lnetpbm" - ENV["SYSTEM_GSL"] = "yes" - - if build.with? "python" - ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages" - resource("pyfits").stage do - system "python", *Language::Python.setup_install_args(libexec) - end - end - - system "make" - system "make", "py" if build.with? "python" - system "make", "extra" if build.with? "extras" - system "make", "test" - system "make", "install" - end - - test do - system "#{bin}/solve-field" - end -end diff --git a/Formula/blis.rb b/Formula/blis.rb deleted file mode 100644 index 23a1cc69..00000000 --- a/Formula/blis.rb +++ /dev/null @@ -1,57 +0,0 @@ -class Blis < Formula - desc "BLAS-like Library Instantiation Software Framework" - homepage "https://github.com/flame/blis" - url "https://github.com/flame/blis/archive/0.2.1.tar.gz" - sha256 "45087029417934011bf4ebefff24f1ff228299e324238170c08bc858ffae0dbf" - head "https://github.com/flame/blis.git" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any, sierra: "cf0e1e538924bf819fc37282dcdefd7d73baefd17d6ceee796f2592e656479ea" - sha256 cellar: :any, el_capitan: "964fbe2656d2f991879c5361b8ffa4132f70fe733ec0f596d3ac6152ae82dd19" - sha256 cellar: :any, yosemite: "46112ec1a9dda5cfa5f66974d54d0ccdf809e5fcc3507b0caf1bf5ca2dd6436c" - end - - option "with-configuration=", - "BLIS framework configuration name (default: reference)\n" \ - "\thttps://github.com/flame/blis/wiki/BuildSystem" \ - "#step-1-choose-a-framework-configuration" - - option "without-test", "Skip build-time tests (not recommended)" - option "without-shared", "Do not build as a shared library" - option "without-static", "Do not build as a static library" - - deprecated_option "without-check" => "without-test" - - depends_on "gcc" - - fails_with :clang do - cause "make_defs.mk:51: *** gcc is required for this configuration" - end - - def install - raise "Must build either a static or a shared library" if build.without?("shared") && build.without?("static") - - system "./configure", - "-p#{prefix}", - ARGV.value("with-configuration") || "reference" - if build.with? "test" - system "make", "test" - prefix.install "output.testsuite" - end - system "make", "install", - "BLIS_ENABLE_DYNAMIC_BUILD=" + (build.with?("shared") ? "yes" : "no"), - "BLIS_ENABLE_STATIC_BUILD=" + (build.with?("static") ? "yes" : "no") - end - - def caveats - unless ARGV.value("with-configuration") - <<~EOS - BLIS was built with the reference configuration. Performance is - highly-dependent on the selected configuration and may not be optimal - for this system. Please consider specifying the --with-configuration - option when installing BLIS if performance is important. - EOS - end - end -end diff --git a/Formula/cdo.rb b/Formula/cdo.rb deleted file mode 100644 index d4545c3d..00000000 --- a/Formula/cdo.rb +++ /dev/null @@ -1,49 +0,0 @@ -class Cdo < Formula - desc "Operators to manipulate and analyse climate and NWP model data" - homepage "https://code.zmaw.de/projects/cdo" - url "https://code.mpimet.mpg.de/attachments/download/16035/cdo-1.9.2.tar.gz" - sha256 "d1c5092167034a48e4b8ada24cf78a1d4b84e364ffbb08b9ca70d13f428f300c" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any, high_sierra: "787310ee2158732c70585046aada3e8d79b77ae47c635505e73e19c5e7caefd6" - sha256 cellar: :any, sierra: "76253eaeb404fd01e949e59d43ec2fba66b2154c7b026ad032ac22f7330513b9" - sha256 cellar: :any, el_capitan: "9cc65d5e6a09abbfc6af4db8537fce8670c020f54feb18cf676c87cf144e49a4" - sha256 cellar: :any, x86_64_linux: "0041fb06c97abc2bfaf7a0f375f7105534d026da2fed25ad3de27eba6a0d897f" - end - - option "with-grib2", "Compile Fortran bindings" - option "with-openmp", "Compile with OpenMP support" - deprecated_option "enable-grib2" => "with-grib2" - - if build.with? "grib2" - depends_on "grib-api" - depends_on "jasper" - end - - needs :openmp if build.with? "openmp" - - depends_on "hdf5" - depends_on "netcdf" - depends_on "szip" - - def install - args = ["--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}", "LIBS=-lhdf5", - "--with-netcdf=#{Formula["netcdf"].opt_prefix}", - "--with-hdf5=#{Formula["hdf5"].opt_prefix}", - "--with-szlib=#{Formula["szip"].opt_prefix}"] - - if build.with? "grib2" - args << "--with-grib_api=#{Formula["grib-api"].opt_prefix}" - args << "--with-jasper=#{Formula["jasper"].opt_prefix}" - end - - system "./configure", *args - system "make", "install" - end - - test do - system "#{bin}/cdo", "-h" - end -end diff --git a/Formula/cgns.rb b/Formula/cgns.rb deleted file mode 100644 index 65f4cef4..00000000 --- a/Formula/cgns.rb +++ /dev/null @@ -1,66 +0,0 @@ -class Cgns < Formula - desc "CFD General Notation System" - homepage "http://cgns.org/" - url "https://github.com/CGNS/CGNS/archive/v3.3.1.tar.gz" - sha256 "81093693b2e21a99c5640b82b267a495625b663d7b8125d5f1e9e7aaa1f8d469" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 sierra: "fbe0a2d65790e3acc942bbb851b6f4eb6ad2f9e52fbc86d373a0cb4c0f299e95" - sha256 el_capitan: "b2635b61047108a422540b66cccebc927a0ebc738e5d2091c3d3e0a9e9127890" - sha256 yosemite: "27d4705b7b09b7c5991be0b8779a239301227196777d053f7e9e974680597705" - sha256 x86_64_linux: "9fcd6ee301f553ff0b4c174eda6de21593f991f9f8ecd22152b377a5b5a85a42" - end - - deprecated_option "with-fortran" => "with-gcc" - - depends_on "cmake" => :build - depends_on "szip" - depends_on "hdf5" => :recommended - depends_on "gcc" => :optional if OS.mac? # for gfortran - - def install - args = std_cmake_args + [ - "-DCGNS_ENABLE_TESTS=YES", - ] - - args << "-DCGNS_ENABLE_64BIT=YES" if Hardware::CPU.is_64_bit? - args << "-DCGNS_ENABLE_FORTRAN=YES" if build.with? "fortran" - - if build.with? "hdf5" - args << "-DCGNS_ENABLE_HDF5=YES" - args << "-DHDF5_NEED_ZLIB=YES" - args << "-DHDF5_NEED_SLIB=YES" - args << "-DCMAKE_SHARED_LINKER_FLAGS=-lhdf5" - end - - mkdir "build" do - system "cmake", "..", *args - system "make" - system "ctest", "--output-on-failure" - system "make", "install" - end - end - - test do - (testpath/"test.c").write <<~EOS - #include - #include "cgnslib.h" - int main(int argc, char *argv[]) - { - int filetype = CG_FILE_NONE; - // we expect this to fail, as the test executable isn't a CGNS file - if (cg_is_cgns(argv[0], &filetype) != CG_ERROR) - return 1; // should fail! - printf(\"%d.%d.%d\\n\",CGNS_VERSION/1000,(CGNS_VERSION/100)%10,(CGNS_VERSION/10)%10); - return 0; - } - EOS - compiler = Tab.for_name("cgns").with?("hdf5") ? "h5cc" : ENV.cc - # The rpath to szip needs to be passed explicitely here because the - # compiler may be h5cc (Superenv is not supported in that case) - rpath = "-Wl,-rpath=#{Formula["szip"].opt_lib}" unless OS.mac? - system compiler, "-I#{opt_include}", testpath/"test.c", "-L#{opt_lib}", "-lcgns", *rpath - assert_match(/#{version}/, shell_output("./a.out")) - end -end diff --git a/Formula/fplll.rb b/Formula/fplll.rb deleted file mode 100644 index f94dc53e..00000000 --- a/Formula/fplll.rb +++ /dev/null @@ -1,48 +0,0 @@ -class Fplll < Formula - desc "Lattice algorithms using floating-point arithmetic" - homepage "https://github.com/fplll/fplll" - # tag "math" - url "https://github.com/fplll/fplll/releases/download/5.2.0/fplll-5.2.0.tar.gz" - sha256 "75e17fcaa4fc5fdddbe6eb42aca5f38c4c169a4b52756e74fbe2d1769737ac9c" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 sierra: "30e57a63f3f73b7c6c0bf2483b77302e7f850c764b4676f9aaca75b2a8be7e13" - sha256 el_capitan: "36ace8be9340aa6cf29ed1d431f56e0c8df9064005334d9ffae14aaf039ce7a3" - sha256 x86_64_linux: "46430c3ce03a664c7a14f22335bbfe99728a77f08e9447bca95ce5be66c42011" - end - - option "without-test", "Disable build-time checking (not recommended)" - - depends_on "gmp" - depends_on "mpfr" - - def install - ENV.cxx11 - system "./configure", "--prefix=#{prefix}", - "--with-gmp=#{Formula["gmp"].opt_prefix}", - "--with-mpfr=#{Formula["mpfr"].opt_prefix}" - system "make" - system "make", "check" if build.with? "test" - system "make", "install" - end - - test do - ENV.cxx11 - (testpath/"test.cpp").write <<~EOS - // inspired from ./tests/test_lll.cpp - #include - - int main() - { - fplll::ZZ_mat A; - A.resize(50, 50 + 1); // construct 50 × (50+1) integer relations matrix - A.gen_intrel(1000); // generate 1000-bit coefficients - return fplll::lll_reduction(A, LLL_DEF_DELTA, LLL_DEF_ETA, LM_PROVED, FT_MPFR, 0, LLL_DEFAULT); - } - EOS - cxx_with_flags = ENV.cxx.split + ["test.cpp", "-lgmp", "-lmpfr", "-lfplll", "-o", "test"] - system(*cxx_with_flags) - system "./test" - end -end diff --git a/Formula/g2o.rb b/Formula/g2o.rb deleted file mode 100644 index 0e4b7849..00000000 --- a/Formula/g2o.rb +++ /dev/null @@ -1,39 +0,0 @@ -class G2o < Formula - desc "General Framework for Graph Optimization" - homepage "https://openslam.org/g2o.html" - url "https://github.com/RainerKuemmerle/g2o/archive/20170730_git.tar.gz" - version "2017-07-30" - sha256 "799a7a943de423f7514c6cfdc7ed1c7393a15a73ff88aa07ad3fdd571d777d22" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 sierra: "5c1104b9f44890e978d249d42bc84f7ad41d36077ca316b6fb0b350dc3ddf899" - sha256 el_capitan: "48a5f69bb96f362b3e37bbebe5731a902bc52d75e14133f9435f096919e8131b" - sha256 yosemite: "54bc2c08aaf6772ffd319e35897fab72ae30a4a06c6083e207f36ed1228a3235" - end - - depends_on "cmake" => :build - depends_on "eigen" - depends_on "suite-sparse" => :recommended - - def install - cmake_args = ["-DBUILD_CSPARSE=" + ((build.with? "suite-sparse") ? "OFF" : "ON")] - mkdir "build" do - system "cmake", "..", *(std_cmake_args + cmake_args) - system "make", "install" - end - pkgshare.install "g2o/examples" - end - - test do - cp_r pkgshare/"examples/simple_optimize", testpath - libs = %w[-lg2o_core -lg2o_csparse_extension -lg2o_solver_csparse -lg2o_stuff -lg2o_types_slam2d - -lg2o_types_slam3d] - cd "simple_optimize" do - system ENV.cxx, "-std=c++11", "simple_optimize.cpp", "-I#{opt_include}", -"-I#{Formula["eigen"].opt_include}/eigen3", "-o", "simple_optimize", "-L#{Formula["suite-sparse"].opt_lib}", "-lcxsparse", "-L#{opt_lib}", *libs - system "curl", "-k", "-O", "https://svn.openslam.org/data/svn/g2o/trunk/data/2d/intel/intel.g2o" - system "./simple_optimize", "intel.g2o" - end - end -end diff --git a/Formula/graph-tool.rb b/Formula/graph-tool.rb deleted file mode 100644 index 086661af..00000000 --- a/Formula/graph-tool.rb +++ /dev/null @@ -1,105 +0,0 @@ -class GraphTool < Formula - desc "Efficient network analysis" - homepage "https://graph-tool.skewed.de/" - url "https://downloads.skewed.de/graph-tool/graph-tool-2.26.tar.bz2" - sha256 "df6273dc5ef327a0eaf1ef1c46751fce4c0b7573880944e544287b85a068f770" - revision 1 - - head do - url "https://git.skewed.de/count0/graph-tool.git" - - depends_on "autoconf" => :build - depends_on "automake" => :build - depends_on "libtool" => :build - end - - option "without-cairo", "Build without cairo support for plotting" - option "without-gtk+3", "Build without gtk+3 support for interactive plotting" - option "without-matplotlib", "Use a matplotlib you've installed yourself instead of a Homebrew-packaged matplotlib" - option "without-numpy", "Use a numpy you've installed yourself instead of a Homebrew-packaged numpy" - option "without-python", "Build without python2 support" - option "without-scipy", "Use a scipy you've installed yourself instead of a Homebrew-packaged scipy" - option "with-openmp", "Enable OpenMP multithreading" - - with_pythons = build.with?("python3") ? ["with-python3"] : [] - - depends_on "pkg-config" => :build - depends_on "boost" - depends_on "boost-python" => with_pythons - depends_on "cairomm" if build.with? "cairo" - depends_on "cgal" - depends_on macos: :el_capitan # Yosemite build fails with Boost >=1.64.0 due to thread-local storage error - depends_on "google-sparsehash" => :recommended - depends_on "gtk+3" => :recommended - depends_on "matplotlib" => [:recommended] + with_pythons - depends_on "numpy" => [:recommended] + with_pythons - depends_on "scipy" => [:recommended] + with_pythons - depends_on "python3" => :optional - - if build.with? "cairo" - depends_on "py2cairo" if build.with? "python" - depends_on "py3cairo" if build.with? "python3" - end - - if build.with? "gtk+3" - depends_on "gnome-icon-theme" - depends_on "librsvg" => "with-gtk+3" - depends_on "pygobject3" => with_pythons - end - - fails_with gcc: "4.8" do - cause "We need GCC 5.0 or above for sufficient c++14 support" - end - fails_with gcc: "4.9" do - cause "We need GCC 5.0 or above for sufficient c++14 support" - end - - needs :openmp if build.with? "openmp" - - def install - system "./autogen.sh" if build.head? - - config_args = %W[ - --disable-debug - --disable-dependency-tracking - --prefix=#{prefix} - ] - - # fix issue with boost + gcc with C++11/C++14 - ENV.append "CXXFLAGS", "-fext-numeric-literals" unless ENV.compiler == :clang - config_args << "--disable-cairo" if build.without? "cairo" - config_args << "--disable-sparsehash" if build.without? "google-sparsehash" - config_args << "--enable-openmp" if build.with? "openmp" - - Language::Python.each_python(build) do |python, version| - config_args_x = ["PYTHON=#{python}"] - if OS.mac? - config_args_x << "PYTHON_LDFLAGS=-undefined dynamic_lookup" - config_args_x << "PYTHON_LIBS=-undefined dynamic_lookup" - config_args_x << "PYTHON_EXTRA_LIBS=-undefined dynamic_lookup" - end - config_args_x << "--with-python-module-path=#{lib}/python#{version}/site-packages" - - if python == "python3" - inreplace "configure", "libboost_python", "libboost_python3" - inreplace "configure", "ax_python_lib=boost_python", "ax_python_lib=boost_python3" - end - - mkdir "build-#{python}-#{version}" do - system "../configure", *(config_args + config_args_x) - system "make", "install" - end - end - end - - test do - Pathname("test.py").write <<~EOS - import graph_tool.all as gt - g = gt.Graph() - v1 = g.add_vertex() - v2 = g.add_vertex() - e = g.add_edge(v1, v2) - EOS - Language::Python.each_python(build) { |python, _| system python, "test.py" } - end -end diff --git a/Formula/libcerf.rb b/Formula/libcerf.rb deleted file mode 100644 index 45c81289..00000000 --- a/Formula/libcerf.rb +++ /dev/null @@ -1,40 +0,0 @@ -class Libcerf < Formula - desc "Efficient implementation of complex error functions" - homepage "http://apps.jcns.fz-juelich.de/doku/sc/libcerf" - url "http://apps.jcns.fz-juelich.de/src/libcerf/libcerf-1.5.tgz" - sha256 "e36dc147e7fff81143074a21550c259b5aac1b99fc314fc0ae33294231ca5c86" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any, sierra: "5f83e48ae2d92abbfc75d8807944371c926f3fe3c991c119e3243bd14cf1481f" - sha256 cellar: :any, el_capitan: "9bd8e5eda457b6ce7e78bdd56bb50e8d4185747d024c0d1973bb00f5dc01a800" - sha256 cellar: :any, yosemite: "91a46dd259e87aa1f803e62b15fe760498b03010662bfaa57d2e5a71a82b5063" - sha256 cellar: :any, x86_64_linux: "5a562cb94015f3a4d75a9caae77d36e4072ade6e5a58b41bbbb588769d8f43dc" - end - - option "without-test", "Disable build-time testing (not recommended)" - - deprecated_option "without-check" => "without-test" - - def install - system "./configure", "--disable-dependency-tracking", - "--disable-silent-rules", - "--prefix=#{prefix}" - system "make", "check" if build.with? "test" - system "make", "install" - end - - test do - (testpath/"test.c").write <<~EOS - #include - #include - int main() - { - printf("%f\\n", voigt(0, 1, 0)); - return -1; - } - EOS - system ENV.cc, "test.c", "-I#{include}", "-L#{lib}", "-lcerf", "-o", "test" - assert_in_delta `./test`.to_f, 1 / Math.sqrt(2 * Math::PI), 1e-6 - end -end diff --git a/Formula/libsigrokdecode.rb b/Formula/libsigrokdecode.rb deleted file mode 100644 index f23f8b70..00000000 --- a/Formula/libsigrokdecode.rb +++ /dev/null @@ -1,148 +0,0 @@ -class Libsigrokdecode < Formula - desc "Library for (streaming) protocol decoding" - homepage "https://sigrok.org/" - - stable do - url "https://sigrok.org/download/source/libsigrokdecode/libsigrokdecode-0.5.0.tar.gz" - sha256 "4aa8579ecea9b421b8ac048a9b18c27e63206839f269374398d89c14a47bd1c1" - - resource "librevisa" do - url "http://www.librevisa.org/git/librevisa.git", tag: "alpha-2013-08-12", - revision: "3e3e027ac7bcf2679089adc8886bb3c92574a042" - end - - resource "libserialport" do - url "https://sigrok.org/download/source/libserialport/libserialport-0.1.1.tar.gz" - sha256 "4a2af9d9c3ff488e92fb75b4ba38b35bcf9b8a66df04773eba2a7bbf1fa7529d" - end - - resource "libsigrok" do - url "https://sigrok.org/download/source/libsigrok/libsigrok-0.5.0.tar.gz" - sha256 "4c8c86779b880a5c419f6c77a08b1147021e5a19fa83b0f3b19da27463c9f3a4" - end - - resource "fx2lafw" do - url "https://sigrok.org/download/source/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-0.1.5.tar.gz" - sha256 "ca74096b93baed48ef3e59ce0c97111153b9a2a8841c40019500b09b897f6d2d" - end - end - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 sierra: "60a432705edac4a617e2260de724056518c7a90285291558f76a62b3fa0d33c0" - sha256 el_capitan: "52c241ba07cdd486946af95fa541e6ca1144546d0378df163a899df26a9a27f1" - sha256 yosemite: "df65b728fe688324cdf6ce2fa82e342b40036f495410bd31d54a8176ca0d6a05" - sha256 x86_64_linux: "502d100193fe55bf3aeb5576cf5c5b4540f51e38188eb8e9d9a0f5346b2b4e35" - end - - head do - url "git://sigrok.org/libsigrokdecode", shallow: false - - depends_on "libtool" => :build unless OS.mac? - depends_on "autoconf" => :build - depends_on "automake" => :build - - resource "librevisa" do - # currently needed for librevisa due to errors in released alpha build - url "http://www.librevisa.org/git/librevisa.git" - end - - resource "libserialport" do - url "git://sigrok.org/libserialport", shallow: false - end - - resource "libsigrok" do - url "git://sigrok.org/libsigrok", shallow: false - end - - resource "fx2lafw" do - url "git://sigrok.org/sigrok-firmware-fx2lafw.git", shallow: false - end - end - - option "with-libserialport", "Build with libserialport" - option "with-librevisa", "Build with librevisa" - option "with-fx2lafw", "Build with fx2lafw" - - depends_on "doxygen" => :build - depends_on "libtool" => :build if build.with?("librevisa") - depends_on "pkg-config" => :build - depends_on "sdcc" => :build if build.with?("fx2lafw") - depends_on "glib" - depends_on "glibmm" - depends_on "libzip" - depends_on "openjdk" - depends_on "python3" - depends_on "check" => :optional - depends_on "libftdi0" => :optional - depends_on "libusb" => :optional - - # currently needed for librevisa due to errors in released alpha build - - def install - common_args = %W[ - --disable-dependency-tracking - --prefix=#{prefix} - ] - - ENV.delete "PYTHONPATH" - ENV.append_path "PKG_CONFIG_PATH", lib / "pkgconfig" - ENV.append_path "PKG_CONFIG_PATH", HOMEBREW_PREFIX / "Frameworks/Python.framework/Versions/3.4/lib/pkgconfig" - - if build.with? "libserialport" - resource("libserialport").stage do - system "./autogen.sh" if build.head? - system "./configure", *common_args - system "make", "install" - end - end - - if build.with? "fx2lafw" - resource("fx2lafw").stage do - system "./autogen.sh" if build.head? - system "./configure", "--prefix=#{prefix}" - system "make", "install" - end - end - - if build.with? "librevisa" - resource("librevisa").stage do - # needed for 2013-08-12. fixed on HEAD - # patch version https://gist.github.com/tduehr/3b4257251c7ed720225c - inreplace "autogen.sh", "libtoolize", "glibtoolize" unless build.head? - system "./autogen.sh" - system "./configure", *common_args - system "make", "install" - end - end - - # not strictly needed for libsigrokdecode but both sigrok-cli and pulseview - # need it so we install it here as a resource to avoid collisions - resource("libsigrok").stage do - system "./autogen.sh" if build.head? - system "./configure", *common_args - system "make", "install" - end - - ENV.deparallelize - - system "./autogen.sh" if build.head? - system "./configure", *common_args - system "make", "check" if build.with? "check" - system "make", "install" - end - - test do - (testpath/"test.c").write <<~EOS - #include - int main() { - if (srd_init(NULL) != SRD_OK || srd_exit() != SRD_OK) - return 1; - return 0; - } - EOS - system ENV.cc, "-o", "test", "test.c", "-L#{lib}", "-I#{Formula["glib"].opt_include}/glib-2.0", -"-I#{Formula["glib"].opt_lib}/glib-2.0/include", "-L#{Formula["glib"].opt_lib}", "-lsigrokdecode" - system "./test" - end -end diff --git a/Formula/lp_solve.rb b/Formula/lp_solve.rb deleted file mode 100644 index 7a33a5b0..00000000 --- a/Formula/lp_solve.rb +++ /dev/null @@ -1,164 +0,0 @@ -class NumpyHasHeaders < Requirement - def numpy_include_dir - `python -c "import numpy.distutils.misc_util as u; print(u.get_numpy_include_dirs())[0]"`.strip.to_s - end - - def satisfied? - Dir["#{numpy_include_dir}/numpy/*.h"].any? - end - - def fatal? - true - end - - def message - <<~EOS - lp_solve requires NumPy headers not provided by Apple. - Install numpy via the Homebrew/python formula: - `brew tap homebrew/python && brew install numpy` - EOS - end -end - -class LpSolve < Formula - homepage "https://sourceforge.net/projects/lpsolve/" - url "https://downloads.sourceforge.net/lpsolve/lp_solve_5.5.2.0_source.tar.gz" - version "5.5.2.0" # automatic version parser spits out "solve" as version - sha256 "5827a30b143105283f398a09419ea608719a2d7699ecea165a66d521803bcc9c" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any_skip_relocation, x86_64_linux: "40e0fb01f795a4e7583802dadd04c8c08fdbe4fe776ea5602a78997fc2575065" - end - - depends_on "python" => :optional - depends_on NumpyHasHeaders.new if build.with? "python" - - resource "lp_solve_python" do - # 'http://lpsolve.sourceforge.net/5.5/Python.htm' - url "https://downloads.sourceforge.net/lpsolve/lp_solve_5.5.2.0_Python_source.tar.gz" - sha256 "79683bc262e9da5b2fa7338ba190a9cd10559b9f2dbcb8f3bf07e2a81083ac51" - version "5.5.2.0" - end - - # Prefer OS X's fast BLAS implementation (patch stolen from fink-project) - patch :DATA if OS.mac? - - def install - # Thanks to superenv, we don't have to care if the ccc.osx build script - # tells the compiler stupid things. And Xcode-only works like charm. - - cd "lpsolve55" do - if OS.mac? - system "sh", "ccc.osx", "#", "lpsolve55", "library" - lib.install Dir["./bin/osx64/*.a"] - lib.install Dir["./bin/osx64/*.dylib"] - else - system "sh", "ccc", "#", "lpsolve55", "library" - lib.install Dir["./bin/ux64/*.a"] - lib.install Dir["./bin/ux64/*.so"] - end - end - - cd "lp_solve" do - if OS.mac? - system "sh", "ccc.osx", "#", "lp_solve", "executable" - bin.install "./bin/osx64/lp_solve" - else - system "sh", "ccc", "#", "lp_solve", "executable" - bin.install "./bin/ux64/lp_solve" - end - end - - # Note, the demo does not build with lpsolve55. Upstream issue. - - include.install Dir["*.h"] - include.install "shared/commonlib.h", "shared/myblas.h" - include.install Dir["bfp/bfp_LUSOL/LUSOL/lusol*.h"] - - if build.with? "python" - # In order to install into the Cellar, the dir must exist and be in the - # PYTHONPATH. - temp_site_packages = lib/which_python/"site-packages" - mkdir_p temp_site_packages - ENV["PYTHONPATH"] = temp_site_packages - args = [ - "--force", - "--verbose", - "--install-scripts=#{share}/python", - "--install-lib=#{temp_site_packages}", - "--record=installed-files.txt", - ] - - resource("lp_solve_python").stage do - cd "extra/Python" do - # On OS X malloc there is and - inreplace "hash.c", "#include ", "#include " - # We know where the lpsolve55 lib is... - inreplace "setup.py", "LPSOLVE55 = '../../lpsolve55/bin/ux32'", "LPSOLVE55 = '#{lib}'" - # Correct path to lpsolve's include dir and go the official way to find numpy include_dirs - inreplace "setup.py", - "include_dirs=['../..', NUMPYPATH],", - "include_dirs=['#{include}', '#{numpy_include_dir}']," - inreplace "setup.py", "(NUMPY, '1')", "('NUMPY', '1')" - # Even their version number is broken ... - inreplace "setup.py", 'version = "5.5.0.9",', "version = '#{version}'," - - system "python", "setup.py", "--no-user-cfg", "install", *args - - # Save the examples - (share/"lp_solve").install Dir["ex*.py"], "lpdemo.py", "Python.htm" - end - end - end - end - - if build.with? "python" - def numpy_include_dir - `python -c "import numpy.distutils.misc_util as u; print(u.get_numpy_include_dirs())[0]"`.strip.to_s - end - - def which_python - "python" + `python -c 'import sys;print(sys.version[:3])'`.strip - end - - def caveats - <<~EOS - For non-homebrew Python, you need to amend your PYTHONPATH like so: - export PYTHONPATH=#{HOMEBREW_PREFIX}/lib/#{which_python}/site-packages:$PYTHONPATH - - Python examples and doc are installed to #{HOMEBREW_PREFIX}/share/lp_solve - EOS - end - end - - test do - input = <<~EOS - max: 143 x + 60 y; - - 120 x + 210 y <= 15000; - 110 x + 30 y <= 4000; - x + y <= 75; - EOS - (testpath/"input.lp").write(input) - output = `#{bin}/lp_solve -S3 input.lp` - puts output - match = output =~ /Value of objective function: 6315\.6250/ - raise if match.nil? - end -end - -__END__ -diff --git a/lp_lib.h b/lp_lib.h -index 2ef654f..7b06ef8 100644 ---- a/lp_lib.h -+++ b/lp_lib.h -@@ -104,7 +104,7 @@ - /* Specify use of the basic linear algebra subroutine library */ - /* ------------------------------------------------------------------------- */ - #define libBLAS 2 /* 0: No, 1: Internal, 2: External */ --#define libnameBLAS "myBLAS" -+#define libnameBLAS "/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Versions/Current/libBLAS.dylib" - - - /* Active inverse logic (default is optimized original etaPFI) */ diff --git a/Formula/mallet.rb b/Formula/mallet.rb deleted file mode 100644 index 0729fae1..00000000 --- a/Formula/mallet.rb +++ /dev/null @@ -1,31 +0,0 @@ -class Mallet < Formula - desc "MAchine Learning for LanguagE Toolkit" - homepage "http://mallet.cs.umass.edu/" - url "http://mallet.cs.umass.edu/dist/mallet-2.0.8.tar.gz" - sha256 "5b2d6fb9bcf600b1836b09881821a6781dd45a7d3032e61d7500d027a5b34faf" - head "https://github.com/mimno/Mallet.git" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any_skip_relocation, sierra: "da32cef7b10fcbfc1f5fc7878f779a5000d88f3363342b6c9ff1830f29d85803" - sha256 cellar: :any_skip_relocation, el_capitan: "f870d8dac822eeda26296f069d488547cb415c2eaaeb0fd0e822595308c0b390" - sha256 cellar: :any_skip_relocation, yosemite: "f870d8dac822eeda26296f069d488547cb415c2eaaeb0fd0e822595308c0b390" - sha256 cellar: :any_skip_relocation, x86_64_linux: "d2556a240155cfc90259839cb5861d7c4d1e8e58d3210b934bbd5b1cf5897495" - end - - # tag "machine learning" - - depends_on "openjdk" - - def install - rm Dir["bin/*.{bat,dll,exe}"] # Remove all windows files - prefix.install_metafiles - libexec.install Dir["*"] - bin.install Dir["#{libexec}/bin/*"] - bin.env_script_all_files(libexec/"bin", Language::Java.java_home_env) - end - - test do - system "#{bin}/mallet | grep Mallet" - end -end diff --git a/Formula/mfem.rb b/Formula/mfem.rb deleted file mode 100644 index 05d393d9..00000000 --- a/Formula/mfem.rb +++ /dev/null @@ -1,127 +0,0 @@ -class Mfem < Formula - desc "Free, lightweight, scalable C++ library for FEM" - homepage "http://www.mfem.org/" - url "https://goo.gl/Vrpsns" - version "3.3" - sha256 "b17bd452593aada93dc0fee748fcfbbf4f04ce3e7d77fdd0341cc9103bcacd0b" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any_skip_relocation, sierra: "35e84e4e8ba4fda6a97f6ced36ac561902488ca716bb88c3a3dc7a4cc23d835a" - sha256 cellar: :any_skip_relocation, el_capitan: "58714c6611442447e0f8ef57f6fbb2b812e43d76e3525915144a4115563aa605" - sha256 cellar: :any_skip_relocation, yosemite: "71941bca57236fec5493dd7e0bd40563cc3a52daf0a5fcc279fc29c254ed709e" - sha256 cellar: :any_skip_relocation, x86_64_linux: "05341892c5f4530c5edead5b496894c2a6276c16dc4c3dd1febc2e1dd4faa478" - end - - option "with-open-mpi", "Build with MPI support (implies --with-hypre --with-metis)" - option "with-suite-sparse", "Build with suite-sparse support (implies --with-metis)" - deprecated_option "with-mpi" => "with-open-mpi" - - depends_on "netcdf" => :optional - depends_on "open-mpi" => :optional - if build.with?("open-mpi") - depends_on "metis" - depends_on "hypre" => "with-open-mpi" - else - depends_on "hypre" => :optional - depends_on "metis" => :optional - end - - if OS.mac? - depends_on "openblas" => :optional - else - depends_on "openblas" - end - depends_on "suite-sparse" => :optional - depends_on "superlu_dist" => :optional - - def install - make_args = ["PREFIX=#{prefix}"] - - lapack_lib = if build.with?("openblas") - "-L#{Formula["openblas"].opt_lib} -lopenblas" - else - "-llapack -lblas" - end - make_args += ["MFEM_USE_LAPACK=YES", "LAPACK_LIB=#{lapack_lib}"] - - if build.with?("hypre") || build.with?("open-mpi") - make_args += ["HYPRE_DIR=#{Formula["hypre"].opt_prefix}", - "HYPRE_OPT=-I#{Formula["hypre"].opt_include}", - "HYPRE_LIB=-L#{Formula["hypre"].opt_lib} -lHYPRE"] - end - - if build.with?("metis") || build.with?("open-mpi") || build.with?("suite-sparse") - metis_lib = "-L#{Formula["metis"].opt_lib} -lmetis" - make_args += ["MFEM_USE_METIS_5=YES", - "METIS_DIR=#{Formula["metis"].opt_prefix}", - "METIS_OPT=-I#{Formula["metis"].opt_include}", - "METIS_LIB=#{metis_lib}"] - end - - make_args += ["MFEM_USE_MPI=YES"] if build.with?("open-mpi") - - if build.with?("suite-sparse") - ss_lib = "-L#{Formula["suite-sparse"].opt_lib} " - ss_lib += "-lklu -lbtf -lumfpack -lcholmod -lcolamd -lamd -lcamd " - ss_lib += "-lccolamd -lsuitesparseconfig #{metis_lib} #{lapack_lib}" - make_args += ["MFEM_USE_SUITESPARSE=YES", - "SUITESPARSE_DIR=#{Formula["suite-sparse"].opt_prefix}", - "SUITESPARSE_OPT=-I#{Formula["suite-sparse"].opt_include}", - "SUITESPARSE_LIB=#{ss_lib}"] - end - - if build.with?("superlu_dist") - superlu_lib = "-L#{Formula["superlu_dist"].opt_lib} -lsuperlu_dist" - make_args += ["MFEM_USE_SUPERLU=YES", - "SUPERLU_DIR=#{Formula["superlu_dist"].opt_prefix}", - "SUPERLU_OPT=-I#{Formula["superlu_dist"].opt_include}", - "SUPERLU_LIB=#{superlu_lib}"] - end - - if build.with?("netcdf") - netcdf_lib = "-L#{Formula["netcdf"].opt_lib} -lnetcdf " - netcdf_lib += "-L#{Formula["hdf5"].opt_lib} -lhdf5_hl -lhdf5 " - netcdf_lib += if OS.mac? - "-L/usr/lib -lz" - else - "-L#{Formula["zlib"].opt_lib} -lz" - end - zlib_dir = OS.mac? ? "/usr" : Formula["zlib"].opt_prefix.to_s - make_args += ["MFEM_USE_NETCDF=YES", - "NETCDF_DIR=#{Formula["netcdf"].opt_prefix}", - "HDF5_DIR=#{Formula["hdf5"].opt_prefix}", - "ZLIB_DIR=#{zlib_dir}", - "NETCDF_OPT=-I#{Formula["netcdf"].opt_include}", - "NETCDF_LIB=#{netcdf_lib}"] - end - - system "make", "config", *make_args - system "make", "all" - system "make", "install" - - # Install some examples in pkgshare for users learning the library - (pkgshare/"examples").mkpath - (pkgshare/"examples").install Dir["examples/*.cpp"] - (pkgshare/"examples").install "examples/makefile" - (pkgshare/"data").mkpath - (pkgshare/"data").install Dir["data/*.mesh"] - (pkgshare/"data").install Dir["data/*.vtk"] - pkgshare.install "config" - end - - test do - cp_r "#{Formula["mfem"].opt_pkgshare}/examples", "./" - cd "examples" do - cp "#{Formula["mfem"].opt_pkgshare}/data/star.mesh", "./" - system "make", "all", "MFEM_DIR=#{Formula["mfem"].opt_prefix}", "CONFIG_MK=$(MFEM_DIR)/config.mk", -"TEST_MK=$(MFEM_DIR)/test.mk", "MFEM_LIB_FILE=$(MFEM_DIR)/lib/libmfem.a", "SRC=" - args = ["-m", "star.mesh", "--no-visualization"] - if Tab.for_name("mfem").with? "open-mpi" - system "mpirun", "-np", "4", "./ex1p", *args - else - system "./ex1", *args - end - end - end -end diff --git a/Formula/mlpack.rb b/Formula/mlpack.rb deleted file mode 100644 index debd8dba..00000000 --- a/Formula/mlpack.rb +++ /dev/null @@ -1,81 +0,0 @@ -class Mlpack < Formula - desc "Scalable C++ machine learning library" - homepage "http://www.mlpack.org" - # doi "arXiv:1210.6293" - url "http://mlpack.org/files/mlpack-2.2.5.tar.gz" - sha256 "e24e64d8451a3db23eafb7c94f9fa075dd540f5ac04953c82260a9d4d9fc4fcf" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any, high_sierra: "e9d8e97e3df78d48ccfff553fa46cfc6d61204133ce8bf86ead2022d43716ac4" - sha256 cellar: :any, sierra: "dee66abdc8257caba52d37b69bd2e5514d9a697841182553cc309424913e7739" - sha256 cellar: :any, el_capitan: "0bba3b4d17b38c2ca882b7f09fa694095674ef27853ffb140fc514cd143512e9" - sha256 cellar: :any, x86_64_linux: "8a435c0e52162b282cb23bfb0b5f62fecbba5bc0bc2b87f1c5b89a11617af8be" - end - - option "with-debug", "Compile with debug options" - option "with-profile", "Compile with profile options" - option "with-test", "Run build-time tests" - - deprecated_option "with-check" => "with-test" - - depends_on "cmake" => :build - depends_on "armadillo" - depends_on "boost" - depends_on "libxml2" - depends_on "pkg-config" - - def install - # Reduce memory usage below 4 GB for Circle CI. - ENV["MAKEFLAGS"] = "-j1" if ENV["CIRCLECI"] - - ENV.cxx11 - dylib = OS.mac? ? "dylib" : "so" - cmake_args = std_cmake_args - cmake_args << "-DDEBUG=" + (build.with?("debug") ? "ON" : "OFF") - cmake_args << "-DPROFILE=" + (build.with?("profile") ? "ON" : "OFF") - cmake_args << "-DBOOST_ROOT=#{Formula["boost"].opt_prefix}" - cmake_args << "-DARMADILLO_INCLUDE_DIR=#{Formula["armadillo"].opt_include}" - cmake_args << "-DARMADILLO_LIBRARY=#{Formula["armadillo"].opt_lib}/libarmadillo.#{dylib}" - cmake_args << "-DCMAKE_CXX_FLAGS=-fext-numeric-literals" unless ENV.compiler == :clang - - mkdir "build" do - system "cmake", "..", *cmake_args - system "make", "test" if build.with? "check" - system "make", "install" - end - - doc.install Dir["doc/*"] - pkgshare.install "src/mlpack/tests" # Includes test data. - end - - test do - ENV.cxx11 - cd testpath do - system "#{bin}/mlpack_knn", - "-r", "#{pkgshare}/tests/data/GroupLens100k.csv", - "-n", "neighbors.csv", - "-d", "distances.csv", - "-k", "5", "-v" - end - - (testpath / "test.cpp").write <<-EOS - #include - - using namespace mlpack; - - int main(int argc, char** argv) { - CLI::ParseCommandLine(argc, argv); - Log::Debug << "Compiled with debugging symbols." << std::endl; - Log::Info << "Some test informational output." << std::endl; - Log::Warn << "A false alarm!" << std::endl; - } - EOS - cxx_with_flags = ENV.cxx.split + ["test.cpp", "-I#{include}", - "-I#{Formula["libxml2"].opt_include}/libxml2", - "-L#{lib}", "-lmlpack", - "-o", "test"] - system(*cxx_with_flags) - system "./test", "--verbose" - end -end diff --git a/Formula/msieve.rb b/Formula/msieve.rb deleted file mode 100644 index 59509f89..00000000 --- a/Formula/msieve.rb +++ /dev/null @@ -1,25 +0,0 @@ -class Msieve < Formula - desc "Factor large integers" - homepage "https://sourceforge.net/projects/msieve/" - url "https://downloads.sourceforge.net/project/msieve/msieve/Msieve%20v1.52/msieve152.tar.gz" - sha256 "8a895544d316b8befe0e93a1fd7a1d508e8aa0f734035e2632aa4d928a2ef20b" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any, el_capitan: "69ba18e8bbdb68809801bb3b455b80a46365ff9be9f95991cd48a7a731f89506" - sha256 cellar: :any, yosemite: "6552b9142096eef4b37de4e0d9ad0a062a85f29bf36be73cbf88b0f89723d9db" - sha256 cellar: :any, mavericks: "398a24bac441f50f6a9481e2ae464ecf37e441da3ad05d65d0a4758c87d4eaaf" - end - - depends_on "gcc" - - def install - system "make", "all" - mkdir bin - bin.install "msieve" - end - - test do - system "#{bin}/msieve", "-q", "12" - end -end diff --git a/Formula/nest.rb b/Formula/nest.rb deleted file mode 100644 index e8c9b995..00000000 --- a/Formula/nest.rb +++ /dev/null @@ -1,154 +0,0 @@ -class Nest < Formula - desc "Neural Simulation Tool with Python2 bindings (PyNEST)" - homepage "http://www.nest-simulator.org/" - url "https://github.com/nest/nest-simulator/archive/v2.14.0.tar.gz" - sha256 "afaf7d53c2d5305fac1257759cc0ea6d62c3cebf7d5cc4a07d4739af4dbb9caf" - revision 1 - head "https://github.com/nest/nest-simulator.git" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 high_sierra: "4f7d765cd75ae3272ce15bb293c20a6cdfc9ccb551f0a07d00016c75ae0ef267" - sha256 sierra: "60e4b0595c5d11003ffe1eca3fdca3c197b8711336ead21eba67620db96454c0" - sha256 el_capitan: "8a4c8e6d0d2e4ce93d76af73197c693f8c303095800e82b7266b922848f1a39b" - sha256 x86_64_linux: "6207dea13f90b17a95313b964323f7971cd5e2507a38b0ffd5d64b2f346e7851" - end - - option "with-python3", "Build Python3 bindings (PyNEST) instead of Python2 bindings." - option "without-openmp", "Build without OpenMP support." - deprecated_option "with-mpi" => "with-open-mpi" - - needs :openmp if build.with? "openmp" - - requires_py3 = [] - requires_py3 << "with-python3" if build.with? "python3" - - depends_on "cmake" => :build - depends_on "libtool" - depends_on "matplotlib" => requires_py3 - depends_on "numpy" => requires_py3 - depends_on "readline" - depends_on "scipy" => requires_py3 - depends_on "gsl" => :recommended - depends_on "open-mpi" => :optional - - # Any Python >= 2.7 < 3.x is okay (either from macOS or brewed) - depends_on "python" unless OS.mac? - depends_on "python3" => :optional - - fails_with :clang do - cause <<~EOS - Building NEST with clang is not stable. See https://github.com/nest/nest-simulator/issues/74 . - EOS - end - - resource "Cython" do - url "https://files.pythonhosted.org/packages/ee/2a/c4d2cdd19c84c32d978d18e9355d1ba9982a383de87d0fcb5928553d37f4/Cython-0.27.3.tar.gz" - sha256 "6a00512de1f2e3ce66ba35c5420babaef1fe2d9c43a8faab4080b0dbcc26bc64" - end - - resource "nose" do - url "https://files.pythonhosted.org/packages/58/a5/0dc93c3ec33f4e281849523a5a913fa1eea9a3068acfa754d44d88107a44/nose-1.3.7.tar.gz" - sha256 "f1bffef9cbc82628f6e7d7b40d7e255aefaa1adb6a1b1d26c69a8b79e6208a98" - end - - def install - ENV.delete("CFLAGS") - ENV.delete("CXXFLAGS") - # The Homebrew site-packages path is automatically added to the PYTHONPATH - # env var in Library/Homebrew/requirements/python_requirement.rb. However, - # it is getting confused as to which version of Python we are using and - # putting the wrong site-packages on the path (2 instead of 3). Since we - # don't need any Homebrew-installed bindings it is easiest/safe just to - # delete it. - ENV.delete("PYTHONPATH") - - args = ["-DCMAKE_INSTALL_PREFIX:PATH=#{prefix}"] - - args << "-Dwith-mpi=ON" if build.with? "open-mpi" - args << "-Dwith-openmp=OFF" if build.without? "openmp" - args << "-Dwith-gsl=OFF" if build.without? "gsl" - - if build.with? "python3" - args << "-Dwith-python=3" - python_exec = "python3" - else - # default to python2 installation - # this always links to the system python during nest installation, - # which should not be a problem, as python2.7.10 (system py2 as of writing this) - # is compatible with brewed python2.7+ - args << "-Dwith-python=ON" - python_exec = "python" - end - - python_version = Language::Python.major_minor_version(python_exec) - - resource("nose").stage do - system python_exec, *Language::Python.setup_install_args(libexec/"nose") - # only nose executable is interesting during testing - not adding a *.pth file - end - - resource("Cython").stage do - system python_exec, *Language::Python.setup_install_args(buildpath/"cython") - end - - # Add local build resource Cython residing in buildpath to paths - ENV.prepend_create_path "PATH", buildpath/"cython/bin" - ENV.prepend_create_path "PYTHONPATH", buildpath/"cython/lib/python#{python_version}/site-packages" - - # "out of source" build - mkdir "build" do - system "cmake", "..", *args - system "make" - system "make", "install" - end - - # Replace internally accessible gcc with externally accesible version - # in nest-config if required - inreplace bin/"nest-config", - %r{#{HOMEBREW_REPOSITORY}/Library/Homebrew/shims.*/super}o, - "#{HOMEBREW_PREFIX}/bin", - false - end - - test do - # simple check whether NEST was compiled & linked - system bin/"nest", "--version" - - # necessary for the python tests - ENV["exec_prefix"] = prefix - # if build.head? does not seem to work - ENV["NEST_SOURCE"] = if File.directory?(pkgshare/"sources") - # necessary for one regression on the sources - pkgshare/"sources" - else - # Skip tests for correct copyright headers - "SKIP" - end - - if build.with? "open-mpi" - # we need the command /mpirun defined for the mpi tests - # and since we are in the sandbox, we create it again - nestrc = <<-EOS - /mpirun - [/integertype /stringtype /stringtype] - [/numproc /executable /scriptfile] - { - () [ - (mpirun -np ) numproc cvs ( ) executable ( ) scriptfile - ] {join} Fold - } Function def - EOS - File.open(ENV["HOME"]+"/.nestrc", "w") { |file| file.write(nestrc) } - end - - # add nosetest executable to path - ENV.prepend_create_path "PATH", libexec/"nose/bin" - # run all tests - args = ["--test-pynest"] - - ENV["PYTHON"] = "python3" if build.with? "python3" - - system pkgshare/"extras/do_tests.sh", *args - end -end diff --git a/Formula/openfst.rb b/Formula/openfst.rb deleted file mode 100644 index 6748fb34..00000000 --- a/Formula/openfst.rb +++ /dev/null @@ -1,55 +0,0 @@ -class Openfst < Formula - desc "Open-source library for working with weighted finite-state transducers" - homepage "http://www.openfst.org/" - url "http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.6.3.tar.gz" - sha256 "5c28b6ccd017fc6ff94ebd0c73ed8ab37d48f563dab1c603856fb05bc9333d99" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any, sierra: "62f64bd93abe2834f07e1ee79a363d1cfa106f4e9faaad8e1f3537f772e88b1e" - sha256 cellar: :any, el_capitan: "695595240d43745060ecafa520178c8890dea8b34f47fb5f174f85bcddad9f63" - sha256 cellar: :any, yosemite: "97b714421950df1d9693c294e5d8f69ca167474737e43fe6b1305f5269a98b54" - sha256 cellar: :any, x86_64_linux: "b20ee657fe8fdd2c8bfde124e1aff050b0724eb061b2bb820a2d928299f24e6e" - end - - depends_on "zlib" unless OS.mac? - - def install - ENV.cxx11 - system "./configure", "--prefix=#{prefix}", - "--disable-dependency-tracking", - "--enable-compact-fsts", - "--enable-compress", - "--enable-const-fsts", - "--enable-far", - "--enable-linear-fsts", - "--enable-lookahead-fsts", - "--enable-mpdt", - "--enable-ngram-fsts", - "--enable-pdt", - "--enable-special" - system "make", "install" - end - - test do - # Based on http://openfst.org/twiki/bin/view/FST/FstExamples. - # Makes symbol table. - File.open("ascii.syms", "w") do |sink| - sink.puts "\t0" - sink.puts "\t32" - 33.upto(126) { |i| sink.puts "#{i.chr}\t#{i}" } - end - # Makes arclist for downcasing FST. - File.open("downcase.arc", "w") do |sink| - sink.puts "0\t0\t\t" - sink.puts "0\t0\t\t" - 33.upto(126) { |i| sink.puts "0\t0\t#{i.chr}\t#{i.chr.downcase}" } - sink.puts "0" - end - ## Compile the machine - system bin/"fstcompile", "--isymbols=ascii.syms", - "--osymbols=ascii.syms", - "downcase.arc", - "downcase.fst" - end -end diff --git a/Formula/pocl.rb b/Formula/pocl.rb deleted file mode 100644 index 07bf3abc..00000000 --- a/Formula/pocl.rb +++ /dev/null @@ -1,25 +0,0 @@ -class Pocl < Formula - desc "MIT-licensed open source implementation of the OpenCL standard" - homepage "https://pocl.sourceforge.io/" - url "https://downloads.sourceforge.net/project/pocl/pocl-0.14.tar.gz" - sha256 "2127bf925a91fbbe3daf2f1bac0da5c8aceb16e2a9434977a3057eade974106a" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 sierra: "e840d7622cc3a4e2991cee46438f4338d3d792b880df87fd997f495c977c4fde" - sha256 el_capitan: "750fd4166e8cddc574d57e283eec0d7a2e8fa50831c42d6e24a5f989fbe2e9b8" - sha256 yosemite: "0c57dd7d46167d461626abf00d3635cdd39086bda540c84bffd85c99fad7d2de" - sha256 x86_64_linux: "6a531d396319978d4c69ba6315832b3c23ee27aedb2b4296836c7c239d319a8f" - end - - depends_on "cmake" => :build - depends_on "pkg-config" => :build - depends_on "hwloc" - depends_on "libtool" - depends_on "llvm" - - def install - system "cmake", ".", *std_cmake_args - system "make", "install" - end -end diff --git a/Formula/proteinortho.rb b/Formula/proteinortho.rb deleted file mode 100644 index 0ee4ec1d..00000000 --- a/Formula/proteinortho.rb +++ /dev/null @@ -1,35 +0,0 @@ -class Proteinortho < Formula - desc "Detection of orthologs in large-scale analysis" - homepage "http://www.bioinf.uni-leipzig.de/Software/proteinortho/" - # doi "10.1186/1471-2105-12-124" - # tag "bioinformatics" - - url "http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v5.15_src.tar.gz" - version "5.15" - sha256 "718af74289a4fc0075f9dce2b12fe3fa1c7d96718c7ec8d9ddca94beac658a17" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any_skip_relocation, el_capitan: "90278cd36c92e1f2470ddfbe67310b8af11146c5e1e7c2c0963fca6563cb57f2" - sha256 cellar: :any_skip_relocation, yosemite: "310de812c9d5d37bb4b368e737b83bbdd7fafc025bd4acfce167d4cb14c05203" - sha256 cellar: :any_skip_relocation, mavericks: "faf9b72151379cd25d4cbe40d4164da161d832e3ab07ea58b937ad331b7ab893" - sha256 cellar: :any_skip_relocation, x86_64_linux: "5c1f6ae44c11d636f5f6dbb5d53058f2f3a3d9eff87700e8f422e965373c902e" - end - - depends_on "blast" - - # Depends_on "Thread::Queue" => :perl - # Depends_on "File::Basename" => :perl - - def install - system "make" - mkdir bin - system "make", "INSTALLDIR=#{bin}", "install" - doc.install "manual.html" - pkgshare.install "tools", "test" - end - - test do - assert_match "orthology", shell_output("#{bin}/proteinortho5.pl 2>&1") - end -end diff --git a/Formula/sigrok-cli.rb b/Formula/sigrok-cli.rb deleted file mode 100644 index e80a364a..00000000 --- a/Formula/sigrok-cli.rb +++ /dev/null @@ -1,38 +0,0 @@ -class SigrokCli < Formula - desc "Command-line client for sigrok" - homepage "https://sigrok.org/" - url "https://sigrok.org/download/source/sigrok-cli/sigrok-cli-0.7.0.tar.gz" - sha256 "5669d968c2de3dfc6adfda76e83789b6ba76368407c832438cef5e7099a65e1c" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any, sierra: "a41bd3e0acc877ec54a8019cf2b7640834eb7d531b6bb74c3d4bf345cd58360a" - sha256 cellar: :any, el_capitan: "50a9411021aa97979f58857e08a1f11034e0fadf52ca901dac0ab5b9deaa7a22" - sha256 cellar: :any, yosemite: "68ad9e7ecba9e55ad3ba1d8810fefdc57d1327a300ce45ca76d4745fa7e6505d" - sha256 cellar: :any, x86_64_linux: "daa914ca934055c095efefe16a6db86d7714e2e1e0d45b3c4641ec51220102b5" - end - - head do - url "git://sigrok.org/sigrok-cli", shallow: false - depends_on "autoconf" => :build - depends_on "automake" => :build - depends_on "glib" - depends_on "libtool" => :build unless OS.mac? - end - - depends_on "cmake" => :build - depends_on "pkg-config" => :build - depends_on "glib" - depends_on "libsigrokdecode" - - def install - system "./autogen.sh" if build.head? - system "./configure", "--prefix=#{prefix}" - system "make", "install" - end - - test do - ENV.delete "PYTHONPATH" - system "#{bin}/sigrok-cli", "--version" - end -end diff --git a/Formula/slepc.rb b/Formula/slepc.rb deleted file mode 100644 index fa2220d5..00000000 --- a/Formula/slepc.rb +++ /dev/null @@ -1,87 +0,0 @@ -class Slepc < Formula - desc "Scalable Library for Eigenvalue Computations" - homepage "https://slepc.upv.es/" - url "http://slepc.upv.es/download/distrib/slepc-3.7.4.tar.gz" - sha256 "2fb782844e3bc265a8d181c3c3e2632a4ca073111c874c654f1365d33ca2eb8a" - revision 1 - - option "with-complex", "Use complex version by default. Otherwise, real-valued version will be symlinked" - option "without-test", "Skip run-time tests (not recommended)" - option "with-openblas", "Install dependencies with openblas" - option "with-blopex", "Download blopex library" - - deprecated_option "complex" => "with-complex" - - deprecated_option "without-check" => "without-test" - - openblasdep = (build.with? "openblas") ? ["with-openblas"] : [] - - depends_on "gcc" if OS.mac? - depends_on "hdf5" - depends_on "open-mpi" - depends_on "petsc" => openblasdep # for gfortran - depends_on "arpack" => [:recommended, "with-open-mpi"] + openblasdep - depends_on "libx11" => :optional - - def install - ENV.deparallelize - - # these must be consistent with petsc.rb - petsc_arch_real = "real" - petsc_arch_complex = "complex" - - ENV["SLEPC_DIR"] = Dir.getwd - args = ["--with-clean=true"] - if build.with? "arpack" - args << "--with-arpack-dir=#{Formula["arpack"].opt_lib}" << "--with-arpack-flags=-lparpack,-larpack" - end - args << "--download-blopex" if build.with? "blopex" - - # real - ENV["PETSC_DIR"] = "#{Formula["petsc"].opt_prefix}/#{petsc_arch_real}" - system "./configure", "--prefix=#{prefix}/#{petsc_arch_real}", *args - system "make" - system "make", "test" if build.with? "test" - system "make", "install" - - # complex - ENV["PETSC_DIR"] = "#{Formula["petsc"].opt_prefix}/#{petsc_arch_complex}" - system "./configure", "--prefix=#{prefix}/#{petsc_arch_complex}", *args - system "make" - # TODO: investigate why complex tests fail to run on Linuxbrew - system "make", "test" if build.with? "test" - system "make", "install" - - # Link what we need. - petsc_arch = ((build.include? "complex") ? petsc_arch_complex : petsc_arch_real) - - include.install_symlink Dir["#{prefix}/#{petsc_arch}/include/*.h"], - "#{prefix}/#{petsc_arch}/finclude", "#{prefix}/#{petsc_arch}/slepc-private" - lib.install_symlink Dir["#{prefix}/#{petsc_arch}/lib/*.*"] - prefix.install_symlink "#{prefix}/#{petsc_arch}/conf" - doc.install "docs/slepc.pdf", Dir["docs/*.htm"], "docs/manualpages" # They're not really man pages. - pkgshare.install "share/slepc/datafiles" - - # install some tutorials for use in test block - pkgshare.install "src/eps/examples/tutorials" - end - - def caveats - <<~EOS - Set your SLEPC_DIR to #{opt_prefix}/real or #{opt_prefix}/complex. - Fortran modules are in #{opt_prefix}/real/include and #{opt_prefix}/complex/include. - EOS - end - - test do - cp_r prefix/"share/slepc/tutorials", testpath - Dir.chdir("tutorials") do - system "mpicc", "ex1.c", "-I#{opt_include}", "-I#{Formula["petsc"].opt_include}", -"-L#{Formula["petsc"].opt_lib}", "-lpetsc", "-L#{opt_lib}", "-lslepc", "-o", "ex1" - system "mpirun -np 3 ex1 2>&1 | tee ex1.out" - `cat ex1.out | tail -3 | awk '{print $NF}'`.split.each do |val| - assert val.to_f < 1.0e-8 - end - end - end -end diff --git a/Formula/sollya.rb b/Formula/sollya.rb deleted file mode 100644 index 3b4b4ce5..00000000 --- a/Formula/sollya.rb +++ /dev/null @@ -1,42 +0,0 @@ -class Sollya < Formula - desc "Environment for the development of numerical codes" - homepage "http://sollya.gforge.inria.fr/" - url "https://gforge.inria.fr/frs/download.php/file/36271/sollya-6.0.tar.bz2" - sha256 "05321581ba47f5e0804b712157dfc5343a268ca6c1983dce48fdd1e91d5b0a1f" - revision 2 - head "https://scm.gforge.inria.fr/anonscm/git/sollya/sollya.git" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any, sierra: "0bdf63143ce17ed5dfb2fb806fd035635d46f1f5b2e189afbaef419c3da878ee" - sha256 cellar: :any, el_capitan: "430e46f8eb66ba72b757d44bf78bda39950536fff589994e68c7280798def4e9" - sha256 cellar: :any, x86_64_linux: "344b8d77fd5cabfee3698e18cd02b0106a03996ca9f185c3258b3f9dd664e0c8" - end - - # doi "10.1007/978-3-642-15582-6_5" - - option "with-test", "Run full test suite (time consuming)" - - depends_on "fplll" - depends_on "gmp" - depends_on "mpfi" - depends_on "mpfr" - depends_on "libxml2" unless OS.mac? - - def install - system "./configure", "--disable-debug", - "--disable-dependency-tracking", - "--disable-silent-rules", - "--prefix=#{prefix}" - system "make" - system "make", "check" if build.with? "test" - system "make", "install" - end - - test do - (testpath/"sample.sollya").write <<~EOS - 1+x==1+x; - EOS - assert_match "true", shell_output("#{bin}/sollya sample.sollya", 3) - end -end diff --git a/Formula/symengine.rb b/Formula/symengine.rb deleted file mode 100644 index ba1f15f9..00000000 --- a/Formula/symengine.rb +++ /dev/null @@ -1,64 +0,0 @@ -class Symengine < Formula - desc "Symbolic manipulation library, written in C++" - homepage "https://github.com/symengine/symengine" - url "https://github.com/symengine/symengine/archive/v0.3.0.tar.gz" - sha256 "591463cb9e741d59f6dfd39a7943e3865d3afe9eac47d1a9cbf5ca74b9c49476" - head "https://github.com/symengine/symengine.git" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any, sierra: "6e223e1128ccb85adcb29786f486647e6b67e007185e289912496a416a3b139c" - sha256 cellar: :any, el_capitan: "2a4a25ee3df6baf76ebfcaeb11736a823ce162183b1a6efa935e8ef1fe5a2468" - sha256 cellar: :any, yosemite: "0ef7fa831900d49bebc874eaf464d6aa422245720079dcef2967816a105e00e8" - sha256 cellar: :any, x86_64_linux: "db0653b3e9b2484d3143593f7a8b80a6118fa8dd7addb2a9d2404aec056fe198" - end - - option "without-test", "Skip build-time tests (not recommended)" - - depends_on "cmake" => :build - depends_on "gmp" - depends_on "libmpc" - depends_on "mpfr" - - def install - ENV.cxx11 - args = std_cmake_args + [ - "-DCMAKE_PREFIX_PATH=#{Formula["gmp"].opt_prefix};#{Formula["mpfr"].opt_prefix};#{Formula["libmpc"].opt_prefix}", - "-DCMAKE_INSTALL_PREFIX=#{prefix}", - "-DBUILD_BENCHMARKS=no", - "-DINTEGER_CLASS=gmp", - "-DWITH_SYMENGINE_THREAD_SAFE=yes", - "-DWITH_MPC=yes", - "-DBUILD_FOR_DISTRIBUTION=yes", - "-DBUILD_SHARED_LIBS=yes", - ] - - mkdir "build" do - system "cmake", "..", *args - system "make" - system "ctest" if build.with? "test" - system "make", "install" - end - end - - test do - (testpath/"test.cpp").write <<~EOS - #include - #include - using SymEngine::Expression; - using SymEngine::symbol; - - int main(int argc, char* argv[]) - { - Expression x(symbol("x")); - auto y = x * x + 2 * x + 1; - return EXIT_SUCCESS; - } - EOS - - ENV.cxx11 - cmd = [ENV["CXX"], "test.cpp", "-lsymengine", "-lmpc", "-lmpfr", "-lgmp", "-o", "test"] - system cmd.join(" ") - system "./test" - end -end diff --git a/Formula/wcslib.rb b/Formula/wcslib.rb deleted file mode 100644 index 97972aaf..00000000 --- a/Formula/wcslib.rb +++ /dev/null @@ -1,49 +0,0 @@ -class Wcslib < Formula - desc "Library and utilities for the FITS World Coordinate System" - homepage "https://www.atnf.csiro.au/people/mcalabre/WCS/" - url "ftp://ftp.atnf.csiro.au/pub/software/wcslib/wcslib-5.16.tar.bz2" - sha256 "ed031e0cf1cec0e9cabfc650423efa526fec341441865001c1e2c56bfffc99ef" - revision 1 - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any, sierra: "54bbcd8e7f8208f42901a13a637fa2994f0fa9d33e4b3326aba4fc8f171504d4" - sha256 cellar: :any, el_capitan: "209c69286e567c4cc34b6b70a0cf9f3beeb1182bb5a63e4ede05f684a0341771" - sha256 cellar: :any, yosemite: "04388c291155822d31637875b883a42d723a445aff90d6e25c9a267091cb312a" - end - - option "with-pgplot", "Build PGSBOX, a general curvilinear axis drawing routine for PGPLOT" - option "with-fortran", "Build Fortran wrappers. Needed for --with-pgsbox." - option "with-test", "Perform `make check`. Note, together --with-pgsbox it will display GUI" - - deprecated_option "with-pgsbox" => "with-pgplot" - deprecated_option "with-check" => "with-test" - - depends_on "cfitsio" - depends_on "pgplot" => :optional - depends_on "libx11" if build.with? "pgplot" - depends_on "gcc" if (build.with?("fortran") || build.with?("pgplot")) && OS.mac? # for gfortran - - def install - args = ["--disable-debug", - "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--with-cfitsiolib=#{Formula["cfitsio"].opt_lib}", - "--with-cfitsioinc=#{Formula["cfitsio"].opt_include}"] - - if build.with? "pgplot" - args << "--with-pgplotlib=#{Formula["pgplot"].opt_lib}" - args << "--with-pgplotinc=#{Formula["pgplot"].opt_include}" - else - args << "--without-pgplot" - args << "--disable-fortran" if build.without? "fortran" - end - - system "./configure", *args - - ENV.deparallelize - system "make" - system "make", "check" if build.with? "check" - system "make", "install" - end -end diff --git a/Formula/wcstools.rb b/Formula/wcstools.rb deleted file mode 100644 index 04dbf0c0..00000000 --- a/Formula/wcstools.rb +++ /dev/null @@ -1,24 +0,0 @@ -class Wcstools < Formula - desc "Tools for using World Coordinate Systems (WCS) in astronomical images" - homepage "http://tdc-www.harvard.edu/wcstools/" - url "http://tdc-www.harvard.edu/software/wcstools/wcstools-3.9.5.tar.gz" - sha256 "b2f9be55fdec29f0c640028a9986771bfd6ab3d2f633953e4c7cc3b410e5fe9c" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any_skip_relocation, high_sierra: "b0b7badef0e5ca704231f4e02ac72c4a4b26e165c40a48516ebd6e745eb17b13" - sha256 cellar: :any_skip_relocation, sierra: "e2dec9afd018c2cfa774d4a7f948160ecd51560a310a8b60b940e43db8f388ae" - sha256 cellar: :any_skip_relocation, el_capitan: "981435e5ae21235f080c7a5bdf750d51e4be3b0090ac2b2ebbd62bc5371a552b" - sha256 cellar: :any_skip_relocation, x86_64_linux: "a4aaf0b6b8deed563fe758a28f476f130f77c9739ff0e5beeeffdf43e87c1424" - end - - def install - system "make", "-f", "Makefile.osx", "all" - - prefix.install "bin" - end - - test do - assert_match "IMHEAD", shell_output("#{bin}/imhead 2>&1", 1) - end -end diff --git a/Formula/xbyak.rb b/Formula/xbyak.rb deleted file mode 100644 index bb4462d1..00000000 --- a/Formula/xbyak.rb +++ /dev/null @@ -1,54 +0,0 @@ -class Xbyak < Formula - desc "Header file for dynamic assembly: x86(IA32), x64(AMD64, x86-64) mnemonic" - homepage "http://herumi.in.coocan.jp" - url "https://github.com/herumi/xbyak/archive/v5.53.tar.gz" - sha256 "5685a283573e35a3791be2bb80c301e810c6e3fcba29dd4740154fc73ee3f490" - head "https://github.com/herumi/xbyak.git" - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 cellar: :any_skip_relocation, sierra: "744b9153333bc23a5fe778402cf93a77b9b8039b0bf8f38bfd37c058fb1e269d" - sha256 cellar: :any_skip_relocation, el_capitan: "744b9153333bc23a5fe778402cf93a77b9b8039b0bf8f38bfd37c058fb1e269d" - sha256 cellar: :any_skip_relocation, yosemite: "744b9153333bc23a5fe778402cf93a77b9b8039b0bf8f38bfd37c058fb1e269d" - sha256 cellar: :any_skip_relocation, x86_64_linux: "9fb000c7df3a2e283c5dd42434c302367583f310d80bee94c85e1b001dad4ac1" - end - - def install - system "make", "install", "PREFIX=#{prefix}" - end - - test do - (testpath / "test.cpp").write <<~EOS - #include - #include - - class Sample : public Xbyak::CodeGenerator { - public: - Sample(int n) - { - mov(ecx, n); // -- (A) - xor(eax, eax); // sum - test(ecx, ecx); - jbe("exit"); - xor(edx, edx); // i - L("lp"); - add(eax, edx); - inc(edx); - cmp(edx, ecx); - jbe("lp"); - L("exit"); - ret(); - } - }; - int main(int argc, char *argv[]) - { - int n = 100; - Sample s(n); - printf("1 + ... + %d = %d\\n", n, ((int (*)())s.getCode())()); - return 0; - } - EOS - system ENV.cxx, "test.cpp", "-fno-operator-names", "-pedantic", "-o", "test" - system "./test" - end -end diff --git a/Formula/xfig.rb b/Formula/xfig.rb deleted file mode 100644 index 5db79a35..00000000 --- a/Formula/xfig.rb +++ /dev/null @@ -1,30 +0,0 @@ -class Xfig < Formula - desc "Interactive drawing tool for the X Window System" - homepage "https://mcj.sourceforge.io/" - url "https://downloads.sourceforge.net/project/mcj/xfig-3.2.6a.tar.xz" - sha256 "a87aeb5d424aadb84ede137291bbe8649551209a807c94f0956fc323b819267c" - revision 1 - - bottle do - root_url "https://archive.org/download/brewsci/bottles-science" - sha256 sierra: "964981e25d43fa075b88db9d9926b7bf1695a4967508f289527130c3187dfdff" - sha256 el_capitan: "6b2b699c0ffd866f0bf44230d6867dc178ead9e21361f8fbebf9505ea017a7c1" - sha256 yosemite: "d075ab9a33cadba801f7e4b568e8dbca32ad30edd7bde8ab8139c7dfbe450080" - end - - depends_on "ghostscript" - depends_on "jpeg" - depends_on "libpng" - depends_on "libx11" - - def install - system "./configure", "--prefix=#{prefix}", - "--disable-dependency-tracking" - system "make" - system "make", "install" - end - - test do - system "#{bin}/xfig", "-v" - end -end diff --git a/tap_migrations.json b/tap_migrations.json index f4c267bb..2dc10ae9 100644 --- a/tap_migrations.json +++ b/tap_migrations.json @@ -18,6 +18,7 @@ "art": "brewsci/bio", "artemis": "brewsci/bio", "astral": "brewsci/bio", + "astrometry-net": "homebrew/core", "augustus": "homebrew/core", "bamm": "brewsci/bio", "bamtools": "homebrew/core", @@ -36,6 +37,7 @@ "biomake": "brewsci/bio", "blast": "homebrew/core", "blat": "brewsci/bio", + "blis": "homebrew/core", "bowtie": "brewsci/bio", "bowtie2": "homebrew/core", "breseq": "brewsci/bio", @@ -46,10 +48,12 @@ "ccfits": "homebrew/core", "cd-hit": "brewsci/bio", "cddlib": "homebrew/core", + "cdo": "homebrew/core", "cdsclient": "homebrew/core", "centrifuge": "brewsci/bio", "ceres-solver": "homebrew/core", "cfitsio": "homebrew/core", + "cgns": "homebrew/core", "circlator": "brewsci/bio", "circos": "brewsci/bio", "clblas": "homebrew/core", @@ -91,8 +95,10 @@ "flann": "homebrew/core", "flash": "brewsci/bio", "flint": "homebrew/core", + "fplll": "homebrew/core", "freebayes": "brewsci/bio", "fwdpp": "brewsci/bio", + "g2o": "homebrew/core", "gatk": "brewsci/bio", "gdcm": "homebrew/core", "genewise": "brewsci/bio", @@ -102,6 +108,7 @@ "gmsh": "homebrew/core", "gmt": "homebrew/core", "gmt4": "homebrew/core", + "graph-tool": "homebrew/core", "gromacs": "homebrew/core", "harvest-tools": "brewsci/bio", "hdf5": "homebrew/core", @@ -136,22 +143,26 @@ "lammps": "homebrew/core", "last": "brewsci/bio", "lastz": "brewsci/bio", - "liblbfgs": "homebrew/core", "libbi": "homebrew/core", "libbigwig": "brewsci/bio", "libccd": "homebrew/core", + "libcerf": "homebrew/core", "libdivsufsort": "brewsci/bio", + "liblbfgs": "homebrew/core", "libmatio": "homebrew/core", "libpll": "brewsci/bio", "libsbol": "homebrew/core", "libsequence": "brewsci/bio", + "libsigrokdecode": "homebrew/core", "lighter": "brewsci/bio", "links-scaffolder": "brewsci/bio", "lmfit": "homebrew/core", "lmod": "homebrew/core", + "lp_solve": "homebrew/core", "lrsim": "brewsci/bio", "mafft": "homebrew/core", "maker": "brewsci/bio", + "mallet": "homebrew/core", "mash": "homebrew/core", "masurca": "brewsci/bio", "matplotlib": "brewsci/bio", @@ -161,15 +172,18 @@ "meme": "brewsci/bio", "metaphlan": "brewsci/bio", "metis": "homebrew/core", + "mfem": "homebrew/core", "mhap": "brewsci/bio", "minced": "brewsci/bio", "minia": "brewsci/bio", "miniasm": "brewsci/bio", "minimap": "brewsci/bio", "mir-prefer": "brewsci/bio", + "mlpack": "homebrew/core", "mlst": "brewsci/bio", "mothur": "brewsci/bio", "mrbayes": "brewsci/bio", + "msieve": "homebrew/core", "mummer": "brewsci/bio", "muscle": "brewsci/bio", "nanoflann": "homebrew/core", @@ -177,6 +191,7 @@ "nauty": "homebrew/core", "nco": "homebrew/core", "ncview": "homebrew/core", + "nest": "homebrew/core", "netcdf": "homebrew/core", "newick-utils": "brewsci/bio", "nextflow": "brewsci/bio", @@ -192,6 +207,7 @@ "openblas": "homebrew/core", "opencascade": "homebrew/core", "opencv3": "homebrew/core", + "openfst": "homebrew/core", "openimageio": "homebrew/core", "orocos-kdl": "homebrew/core", "packmol": "homebrew/core", @@ -208,10 +224,12 @@ "picard-tools": "homebrew/core", "pilon": "brewsci/bio", "plink2": "brewsci/bio", + "pocl": "homebrew/core", "prank": "brewsci/bio", "primer3": "homebrew/core", "prodigal": "homebrew/core", "prokka": "brewsci/bio", + "proteinortho": "homebrew/core", "qhull": "homebrew/core", "qrupdate": "homebrew/core", "quast": "brewsci/bio", @@ -241,13 +259,16 @@ "sga": "brewsci/bio", "shogun": "homebrew/core", "sickle": "homebrew/core", + "sigrok-cli": "homebrew/core", "simulate-pcr": "brewsci/bio", "siril": "homebrew/core", + "slepc": "homebrew/core", "smalt": "brewsci/bio", "snap": "brewsci/bio", "snoscan": "brewsci/bio", "snp-sites": "brewsci/bio", "snpeff": "brewsci/bio", + "sollya": "homebrew/core", "sortmerna": "brewsci/bio", "spades": "homebrew/core", "sratoolkit": "homebrew/core", @@ -256,6 +277,7 @@ "suite-sparse": "homebrew/core", "sundials": "homebrew/core", "superlu": "homebrew/core", + "symengine": "homebrew/core", "tbl2asn": "brewsci/bio", "tensorflow": "homebrew/core", "transabyss": "brewsci/bio", @@ -282,6 +304,10 @@ "vsearch": "brewsci/bio", "vt": "brewsci/bio", "vtk": "homebrew/core", + "wcslib": "homebrew/core", + "wcstools": "homebrew/core", "wiggletools": "brewsci/bio", - "wxmaxima": "homebrew/core" + "wxmaxima": "homebrew/core", + "xbyak": "homebrew/core", + "xfig": "homebrew/core" }