summaryrefslogtreecommitdiff
path: root/homebrew/gccat5
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/gccat5
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/gccat5')
-rw-r--r--homebrew/gccat5/.beer81
-rw-r--r--homebrew/gccat5/.make.sh-auto13
-rw-r--r--homebrew/gccat5/_metadata/description1
-rw-r--r--homebrew/gccat5/_metadata/homepage1
-rw-r--r--homebrew/gccat5/_metadata/name1
-rw-r--r--homebrew/gccat5/_metadata/version1
-rwxr-xr-xhomebrew/gccat5/download.sh1
-rwxr-xr-xhomebrew/gccat5/patches.sh3
8 files changed, 102 insertions, 0 deletions
diff --git a/homebrew/gccat5/.beer b/homebrew/gccat5/.beer
new file mode 100644
index 000000000..c4f8afb88
--- /dev/null
+++ b/homebrew/gccat5/.beer
@@ -0,0 +1,81 @@
+{
+ "name": "GccAT5",
+ "description": "The GNU Compiler Collection",
+ "url": "https://ftp.gnu.org/gnu/gcc/gcc-5.5.0/gcc-5.5.0.tar.xz",
+ "mirror": "https://ftpmirror.gnu.org/gcc/gcc-5.5.0/gcc-5.5.0.tar.xz",
+ "homepage": "https://gcc.gnu.org/",
+ "depends": [
+ {
+ "depend": "maximum_macos",
+ "build-depend": false
+ },
+ {
+ "depend": "gmp",
+ "build-depend": false
+ },
+ {
+ "depend": "libmpc",
+ "build-depend": false
+ },
+ {
+ "depend": "mpfr",
+ "build-depend": false
+ }
+ ],
+ "resource": [
+ {
+ "name": "isl",
+ "url": "https://gcc.gnu.org/pub/gcc/infrastructure/isl-0.14.tar.bz2"
+ }
+ ],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/078797f1b9/gcc%405/xcode9.patch",
+ "strip": "1"
+ },
+ {
+ "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/413cfac6/gcc%405/10.13_headers.patch",
+ "strip": "1"
+ },
+ {
+ "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/master/gcc%405/gcc5-xcode10.2.patch",
+ "strip": "1"
+ }
+ ],
+ "install": [
+ "ENV.delete \"LD\"",
+ "resource(\"isl\").stage buildpath/\"isl\"",
+ "languages = %w[c c++ fortran objc obj-c++]",
+ "version_suffix = version.to_s.slice(/\\d/)",
+ "ENV[\"gcc_cv_prog_makeinfo_modern\"] = \"no\"",
+ "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-system-zlib\",",
+ "\"--enable-libstdcxx-time=yes\",",
+ "\"--enable-stage1-checking\",",
+ "\"--enable-checking=release\",",
+ "\"--enable-lto\",",
+ "\"--enable-plugin\",",
+ "\"--disable-werror\",",
+ "\"--disable-nls\",",
+ "\"--with-pkgversion=Homebrew GCC #{pkg_version} #{build.used_options*\" \"}\".strip,",
+ "\"--with-bugurl=https://github.com/Homebrew/homebrew-core/issues\",",
+ "\"--enable-multilib\",",
+ "]",
+ "inreplace \"libgcc/config/t-slibgcc-darwin\", \"@shlib_slibdir@\", \"#{HOMEBREW_PREFIX}/lib/gcc/#{version_suffix}\"",
+ "mkdir \"build\" do",
+ "unless MacOS::CLT.installed?",
+ "args << \"--with-native-system-header-dir=/usr/include\"",
+ "args << \"--with-sysroot=#{MacOS.sdk_path}\""
+ ],
+ "version": "5.5.0",
+ "file": "gcc@5.rb"
+} \ No newline at end of file
diff --git a/homebrew/gccat5/.make.sh-auto b/homebrew/gccat5/.make.sh-auto
new file mode 100644
index 000000000..cb65854e8
--- /dev/null
+++ b/homebrew/gccat5/.make.sh-auto
@@ -0,0 +1,13 @@
+pkg:setup
+ENV.delete "LD"
+resource("isl").stage buildpath/"isl"
+languages = %w[c c++ fortran objc obj-c++]
+version_suffix = version.to_s.slice(/\d/)
+ENV["gcc_cv_prog_makeinfo_modern"] = "no"
+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-system-zlib", "--enable-libstdcxx-time=yes", "--enable-stage1-checking", "--enable-checking=release", "--enable-lto", "--enable-plugin", "--disable-werror", "--disable-nls", "--with-pkgversion=Homebrew GCC #{pkg_version} #{build.used_options*" "}".strip, "--with-bugurl=https://github.com/Homebrew/homebrew-core/issues", "--enable-multilib", ]
+inreplace "libgcc/config/t-slibgcc-darwin", "@shlib_slibdir@", "#{HOMEBREW_PREFIX}/lib/gcc/#{version_suffix}"
+mkdir "build" && cd build
+unless MacOS::CLT.installed?
+args << "--with-native-system-header-dir=/usr/include"
+args << "--with-sysroot=#{MacOS.sdk_path}"
diff --git a/homebrew/gccat5/_metadata/description b/homebrew/gccat5/_metadata/description
new file mode 100644
index 000000000..0a5188a88
--- /dev/null
+++ b/homebrew/gccat5/_metadata/description
@@ -0,0 +1 @@
+The GNU Compiler Collection
diff --git a/homebrew/gccat5/_metadata/homepage b/homebrew/gccat5/_metadata/homepage
new file mode 100644
index 000000000..0d0ba1d6d
--- /dev/null
+++ b/homebrew/gccat5/_metadata/homepage
@@ -0,0 +1 @@
+https://gcc.gnu.org/
diff --git a/homebrew/gccat5/_metadata/name b/homebrew/gccat5/_metadata/name
new file mode 100644
index 000000000..73a3ffaa8
--- /dev/null
+++ b/homebrew/gccat5/_metadata/name
@@ -0,0 +1 @@
+GccAT5
diff --git a/homebrew/gccat5/_metadata/version b/homebrew/gccat5/_metadata/version
new file mode 100644
index 000000000..d50359de1
--- /dev/null
+++ b/homebrew/gccat5/_metadata/version
@@ -0,0 +1 @@
+5.5.0
diff --git a/homebrew/gccat5/download.sh b/homebrew/gccat5/download.sh
new file mode 100755
index 000000000..2a004fde4
--- /dev/null
+++ b/homebrew/gccat5/download.sh
@@ -0,0 +1 @@
+wget https://ftp.gnu.org/gnu/gcc/gcc-5.5.0/gcc-5.5.0.tar.xz || wget https://ftpmirror.gnu.org/gcc/gcc-5.5.0/gcc-5.5.0.tar.xz \ No newline at end of file
diff --git a/homebrew/gccat5/patches.sh b/homebrew/gccat5/patches.sh
new file mode 100755
index 000000000..2ae878e3f
--- /dev/null
+++ b/homebrew/gccat5/patches.sh
@@ -0,0 +1,3 @@
+wget https://raw.githubusercontent.com/Homebrew/formula-patches/078797f1b9/gcc%405/xcode9.patch
+wget https://raw.githubusercontent.com/Homebrew/formula-patches/413cfac6/gcc%405/10.13_headers.patch
+wget https://raw.githubusercontent.com/Homebrew/formula-patches/master/gcc%405/gcc5-xcode10.2.patch