63 Commits

Author SHA1 Message Date
Carlo Cabrera
fdc113d85c
os/mac/version: add unsupported_release? helper 2023-04-07 22:21:08 +08:00
Douglas Eichelberger
4f2ff3819b Clean up rbi files 2023-03-18 16:03:25 -07:00
Bo Anderson
e86a8c2477
Move HOMEBREW_NO_INSTALL_FROM_API defaults to shell 2023-02-24 21:53:08 +00:00
Francois-Xavier Coudert
e16afb305e Mark macOS Ventura as supported 2022-10-19 11:21:52 +02:00
Rylan Polster
b271ae151b
Cleanup 2022-06-29 11:47:57 -04:00
Rylan Polster
ac067eedb2
Create MacOSVersions module 2022-06-29 11:34:49 -04:00
Rylan Polster
f38db6e100
Define MacOS::Version::SYMBOLS on macOS and linux 2022-06-24 14:39:17 -04:00
Bo Anderson
75e76361ac
Preliminary macOS 13 support 2022-06-07 02:39:36 +01:00
Mike McQuaid
f43e9b6c04
os/mac/version: remove Yosemite.
It's no longer possible to run Homebrew there.

Co-authored-by: Bo Anderson <mail@boanderson.me>
2022-06-06 05:18:53 +01:00
Mike McQuaid
1bb44979ee
Disable and delete code for 3.5.0
The next planned release will be 3.5.0 so let's fix things up for there.
2022-05-30 14:59:14 +01:00
Bo Anderson
c8752c91f0
Mark macOS Monterey as supported. 2021-10-19 16:57:39 +01:00
Sam Ford
0752d25125
OS::Mac: Move version methods into ::Version 2021-06-23 09:03:46 -04:00
shaunsingh
3a746723c3
Add missing comma 2021-06-07 20:04:48 -04:00
shaunsingh
d7d9a256a1
Add macOS 12 2021-06-07 20:00:18 -04:00
Bo Anderson
20d86c0185
Refactor some tag handling into a Utils::Bottles::Tag class 2021-04-08 17:23:57 +01:00
Bo Anderson
61cda1465f os/mac/version: add strip_patch method 2021-02-09 18:35:22 +00:00
Seeker
779f2fc6ef os/mac/version: update method signatures 2021-01-22 09:58:01 -08:00
Seeker
266aba486e os/mac/version: use named captures in regex 2021-01-18 10:26:37 -08:00
Mike McQuaid
6467fbadee
MacOS::Version: add (and use) architecture. 2020-12-09 11:55:27 +00:00
Mike McQuaid
566ebf2a98
Revert "Revert "Fix :arm64_big_sur bottle ordering.""
This reverts commit 399cc56d034a3314f428683b7872b4d67063be9a.
2020-12-08 16:28:45 +00:00
Francois-Xavier Coudert
399cc56d03 Revert "Fix :arm64_big_sur bottle ordering."
This reverts commit 66d1b929a5b134ee93caf9237e7074a195c1b523.
2020-12-08 13:00:22 +01:00
Mike McQuaid
66d1b929a5
Fix :arm64_big_sur bottle ordering.
This wasn't being parsed correctly so was being put below the Linux
bottle which is less readable, less intuitive and will cause a bunch
of merge conflicts.
2020-12-07 12:09:29 +00:00
Mike McQuaid
88ba32c519
os/mac/version: explain Big Sur to_sym logic. 2020-11-25 13:53:52 +00:00
Markus Reiter
8598b1186a Handle macOS versions >= 11.1 correctly. 2020-11-23 13:46:15 +01:00
EricFromCanada
3768b7a6e9 apidoc: update comment wording, punctuation, formatting 2020-11-06 00:21:02 -05:00
Markus Reiter
24ae318a3d Move type annotations into files. 2020-10-10 14:59:39 +02:00
Markus Reiter
90d70ad932 Refactor OS::Mac::Version. 2020-10-05 15:58:17 +02:00
Markus Reiter
e3d78de5f1 Document Mac::Version. 2020-08-26 03:13:59 +02:00
Mike McQuaid
6d9e2d444d
Big Sur fixes
- Make missing SDKs message more clear.
- Always refer to Big Sur as 11.0 (even on Intel).
2020-07-28 16:56:55 +01:00
Claudia
374c734d9b
Make Hardware.oldest_cpu depend on architecture
Starting with Xcode 12 Beta 2, builds that used to work on Apple Silicon
now break due to `Hardware#oldest_cpu` returning `:nehalem` [1].

This commit is the first in a series of improvements to
`Hardware#oldest_cpu`. It resolves the Xcode 12 Beta 2 issue for now.

[1]: https://github.com/Homebrew/brew/issues/7857#issuecomment-655536261
2020-07-08 20:59:10 +02:00
Shaun Jackman
6051015ac5 OS::Mac::Version: Change 11.00 to 11.0 2020-06-23 13:30:28 -07:00
Mike McQuaid
11c875d747
macOS Big Sur tweaks
- output warnings when running on ARM
- require Xcode 12
- use 11.0 as the version number
2020-06-23 14:11:05 +01:00
Misty De Meo
8d29e79f7e OS::Mac::Version: add Big Sur 2020-06-22 11:11:51 -07:00
Mike McQuaid
dd50714d1e
Fix RuboCop failures. 2020-06-22 14:09:33 +01:00
Mike McQuaid
b58fa4ebb1
Drop Mavericks support.
Companion to https://github.com/Homebrew/brew/pull/7698.

Provide better, `odeprecated` messaging for
`depends_on :macos => :mavericks` and otherwise just fix up the code
that relied on `:mavericks`.
2020-06-10 10:06:46 +01:00
Jonathan Chang
7ddc185b35 Fix various typos 2019-08-19 16:12:34 +10:00
Misty De Meo
1495cdbf8f macOS Catalina 2019-06-03 11:45:08 -07:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files. 2019-04-20 13:27:36 +09:00
Mike McQuaid
28fa8a7c97
version: add CPU tests.
Add a new API inspired by discussion in
https://github.com/Homebrew/homebrew-core/pull/36435 to query if a given
CPU option is supported by a version of macOS.
2019-01-28 19:31:21 +00:00
Mike McQuaid
1aa8ad09e2
Deprecate macOS versions below Mavericks
And remove all dead/unneeded code.
2019-01-27 12:27:47 +00:00
Mike McQuaid
170c5493a4
Update deprecations
- Add some `odeprecated`
- Make some `odeprecated` now `odisabled`
- Remove `odisabled` code.
- Remove old update migrations
- Remove GCC 4.0 compiler
- Remove Tiger-only code
- Remove 32-bit-only code
- Remove use of LD64
- Remove GCC 4.3 - 4.8 support.
2019-01-08 19:13:46 +00:00
Mike McQuaid
737b84b54b
brew style --fix fixes. 2018-11-02 17:29:23 +00:00
Dominyk Tiller
0c12ab5e83
mac/version: add symbol for macOS Mojave 2018-06-04 19:44:46 +01:00
Mike McQuaid
dd75dd8a25 os/mac/version: allow leopard_64_or_later bottles. 2017-09-25 18:35:18 +01:00
Dominyk Tiller
5a9dad0bf0
mac/version: add High Sierra symbol 2017-06-05 19:40:33 +01:00
Mike McQuaid
3982950e61 rubocop --auto-correct all hash-rocket usage. 2016-09-17 16:14:13 +01:00
Mike McQuaid
00f5aa81f2 os/mac/version: fix Rubocop warnings. 2016-09-11 17:49:27 +01:00
Mike McQuaid
1c46db9a73 os/mac/version: add macOS Sierra. (#353) 2016-06-13 19:20:00 +01:00
BrewTestBot
13d544e11e Core files style updates.
Closes Homebrew/homebrew#42354.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Dominyk Tiller
90c8b82d38 os: initial El Capitan support 2015-06-14 18:38:55 +01:00