summaryrefslogtreecommitdiff
path: root/homebrew/gccat7/.beer
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/gccat7/.beer
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/gccat7/.beer')
-rw-r--r--homebrew/gccat7/.beer71
1 files changed, 71 insertions, 0 deletions
diff --git a/homebrew/gccat7/.beer b/homebrew/gccat7/.beer
new file mode 100644
index 000000000..38ee9b1ec
--- /dev/null
+++ b/homebrew/gccat7/.beer
@@ -0,0 +1,71 @@
+{
+ "name": "GccAT7",
+ "description": "GNU compiler collection",
+ "url": "https://ftp.gnu.org/gnu/gcc/gcc-7.4.0/gcc-7.4.0.tar.xz",
+ "mirror": "https://ftpmirror.gnu.org/gcc/gcc-7.4.0/gcc-7.4.0.tar.xz",
+ "homepage": "https://gcc.gnu.org/",
+ "depends": [
+ {
+ "depend": "gmp",
+ "build-depend": false
+ },
+ {
+ "depend": "isl",
+ "build-depend": false
+ },
+ {
+ "depend": "libmpc",
+ "build-depend": false
+ },
+ {
+ "depend": "mpfr",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/master/gcc%407/gcc7-xcode10.2.patch",
+ "strip": "1"
+ }
+ ],
+ "install": [
+ "ENV.delete \"LD\"",
+ "version_suffix = version.to_s.slice(/\\d/)",
+ "ENV[\"gcc_cv_prog_makeinfo_modern\"] = \"no\"",
+ "languages = %w[c c++ objc obj-c++ fortran]",
+ "osmajor = `uname -r`.chomp",
+ "args = [",
+ "\"--build=x86_64-apple-darwin#{osmajor}\",",
+ "\"--prefix=#{prefix}\",",
+ "\"--libdir=#{lib}/gcc/#{version_suffix}\",",
+ "\"--enable-languages=#{languages.join(\",\")}\",",
+ "\"--program-suffix=-#{version_suffix}\",",
+ "\"--with-gmp=#{Formula[\"gmp\"].opt_prefix}\",",
+ "\"--with-mpfr=#{Formula[\"mpfr\"].opt_prefix}\",",
+ "\"--with-mpc=#{Formula[\"libmpc\"].opt_prefix}\",",
+ "\"--with-isl=#{Formula[\"isl\"].opt_prefix}\",",
+ "\"--with-system-zlib\",",
+ "\"--enable-checking=release\",",
+ "\"--with-pkgversion=Homebrew GCC #{pkg_version} #{build.used_options*\" \"}\".strip,",
+ "\"--with-bugurl=https://github.com/Homebrew/homebrew-core/issues\",",
+ "\"--disable-nls\",",
+ "]",
+ "args << \"--disable-multilib\" if DevelopmentTools.clang_build_version >= 1000",
+ "inreplace \"libgcc/config/t-slibgcc-darwin\", \"@shlib_slibdir@\", \"#{HOMEBREW_PREFIX}/lib/gcc/#{version_suffix}\"",
+ "mkdir \"build\" do",
+ "if !MacOS::CLT.installed?",
+ "args << \"--with-native-system-header-dir=/usr/include\"",
+ "args << \"--with-sysroot=#{MacOS.sdk_path}\"",
+ "elsif MacOS.version >= :mojave",
+ "args << \"--with-native-system-header-dir=/usr/include\"",
+ "args << \"--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk\"",
+ "end",
+ "system \"../configure\", *args",
+ "system \"make\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "7.4.0",
+ "file": "gcc@7.rb"
+} \ No newline at end of file