Skip to content

Instantly share code, notes, and snippets.

class MingwW64 < Formula
desc "Windows mingw-w64 headers, runtime, and GCC cross-compilers"
homepage "https://mingw-w64.org/"
url "http://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v5.0.1.tar.bz2"
sha256 "9bb5cd7df78817377841a63555e73596dc0af4acbb71b09bd48de7cf24aeadd2"
depends_on "mingw-w64-binutils"
depends_on "gmp"
depends_on "mpfr"
depends_on "libmpc"
class MingwW64 < Formula
desc "Windows mingw-w64 headers, runtime, and GCC cross-compilers"
homepage "https://mingw-w64.org/"
url "http://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v5.0.1.tar.bz2"
sha256 "9bb5cd7df78817377841a63555e73596dc0af4acbb71b09bd48de7cf24aeadd2"
depends_on "gmp"
depends_on "mpfr"
depends_on "libmpc"
depends_on "isl"
@fxcoudert
fxcoudert / cp2k.diff
Created January 23, 2017 21:29
Patch for cp2k's macOS arch files
Index: cp2k/arch/Darwin-IntelMacintosh-gfortran.sdbg
===================================================================
--- cp2k/arch/Darwin-IntelMacintosh-gfortran.sdbg (revision 17701)
+++ cp2k/arch/Darwin-IntelMacintosh-gfortran.sdbg (working copy)
@@ -1,12 +1,11 @@
-CC = cc
+# With GCC 4.9 or later, for gcc and gfortran
+CC = gcc
CPP =
FC = gfortran
class MingwW64b < Formula
desc "Minimalist GNU for Windows with GCC."
homepage "https://mingw-w64.org/"
# https://sourceforge.net/p/mingw-w64/wiki2/Cross%20Win32%20and%20Win64%20compiler/
url "https://downloads.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v5.0.1.tar.bz2"
sha256 "9bb5cd7df78817377841a63555e73596dc0af4acbb71b09bd48de7cf24aeadd2"
option "with-multilib", "Compile x86_64 compiler with multilib support"
keg_only "keg-only while we are testing"
/usr/local/share/gcc-6.3.0/python/libstdcxx/__init__.py -> /usr/local/Cellar/gcc/6.3.0_1/share/gcc-6.3.0/python/libstdcxx/__init__.py
/usr/local/share/gcc-6.3.0/python/libstdcxx/v6/__init__.py -> /usr/local/Cellar/gcc/6.3.0_1/share/gcc-6.3.0/python/libstdcxx/v6/__init__.py
/usr/local/share/gcc-6.3.0/python/libstdcxx/v6/printers.py -> /usr/local/Cellar/gcc/6.3.0_1/share/gcc-6.3.0/python/libstdcxx/v6/printers.py
/usr/local/share/gcc-6.3.0/python/libstdcxx/v6/xmethods.py -> /usr/local/Cellar/gcc/6.3.0_1/share/gcc-6.3.0/python/libstdcxx/v6/xmethods.py
/usr/local/lib/gcc/6/gcc/x86_64-apple-darwin16.3.0/6.3.0/crt3.o
/usr/local/lib/gcc/6/gcc/x86_64-apple-darwin16.3.0/6.3.0/crtfastmath.o
/usr/local/lib/gcc/6/gcc/x86_64-apple-darwin16.3.0/6.3.0/crtprec32.o
/usr/local/lib/gcc/6/gcc/x86_64-apple-darwin16.3.0/6.3.0/crtprec64.o
/usr/local/lib/gcc/6/gcc/x86_64-apple-darwin16.3.0/6.3.0/crtprec80.o
/usr/local/lib/gcc/6/gcc/x86_64-apple-darwin16.3.0/6.3.0/crttme.o
# NOTE: When updating Wine, please check Wine-Gecko and Wine-Mono for updates
# too:
# - https://wiki.winehq.org/Gecko
# - https://wiki.winehq.org/Mono
class Wine2 < Formula
desc "Run Windows applications without a copy of Microsoft Windows"
homepage "https://www.winehq.org/"
head "git://source.winehq.org/git/wine.git"
stable do
* Work for me
https://asciinema.org
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/guichan/guichan-0.8.2.tar.gz
https://www.autistici.org/bakunin/libnxml/libnxml-0.18.3.tar.gz
https://www.lysator.liu.se/~nisse/lsh/
* Work if switched to HTTP
https://www.msweet.org/files/project1/htmldoc-1.8.29-source.tar.bz2
https://www.msweet.org/projects.php?Z1
https://www.msweet.org/files/project3/mxml-2.9.tar.gz
==> Using the sandbox
/usr/bin/sandbox-exec -f /tmp/homebrew20170322-49394-1daz29j.sb nice /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pgrouting.rb --build-bottle --verbose
==> Downloading https://github.com/pgRouting/pgrouting/archive/v2.4.0.tar.gz
Already downloaded: /Users/brew/Library/Caches/Homebrew/pgrouting-2.4.0.tar.gz
==> Verifying pgrouting-2.4.0.tar.gz checksum
tar xzf /Users/brew/Library/Caches/Homebrew/pgrouting-2.4.0.tar.gz
==> cmake -DWITH_DD=ON .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/pgrouting/2.4.0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev
-- CMAKE_BUILD_TYPE Release
-- CMAKE_BUILD_TYPE Release
-- The C compiler identification is AppleClang 7.0.2.7000181
Fortran EXT_ETIME does not exist.
Change Dir: /Users/fx/Downloads/lapack-3.7.0/build/INSTALL
Run Build Command:"/usr/bin/make" "secondtst_EXT_ETIME"
Scanning dependencies of target secondtst_EXT_ETIME
[ 33%] Building Fortran object CMakeFiles/secondtst_EXT_ETIME.dir/second_EXT_ETIME.f.o
[ 66%] Building Fortran object CMakeFiles/secondtst_EXT_ETIME.dir/secondtst.f.o
[100%] Linking Fortran executable secondtst_EXT_ETIME
Undefined symbols for architecture x86_64:
"_etime_", referenced from: