1071 Commits

Author SHA1 Message Date
Mike McQuaid
7015fb1601
formula: fix link_overwrite?
Fixes #7921
2020-07-06 17:02:58 +01:00
Mike McQuaid
17ca7527f4
formula: allow link_overwrite for old name too. 2020-07-06 09:23:04 +01:00
Michka Popoff
5eae33b59d link_overwrite: allow to overwrite files from alias
See https://github.com/Homebrew/homebrew-core/pull/54912#issuecomment-653893645
Formulary.factory("python") points to python@3.8, which breaks link_overwrite
for that case.

This changes checks if the formula is an alias, so that we can still override
the files during installation.
2020-07-05 22:24:03 +02:00
Sean Molenaar
0315f64550
Merge pull request #7861 from Homebrew/SMillerDev-patch-1
Remove outdated suggestions from Formula#test doc
2020-07-01 11:07:14 +02:00
Sean Molenaar
a721d7bc8f
Remove outdated suggestions from Formula#test doc 2020-07-01 10:11:46 +02:00
Lionell
57fd1fdc7e Merge branch 'master' into license 2020-06-25 13:42:27 +08:00
Lionell Loh Jian An
9845091f4d
Apply suggestions from code review
license: code review changes

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-06-24 18:32:53 +08:00
Dawid Dziurla
4fa540b259
Merge pull request #7776 from dawidd6/gopath
formula: set GOPATH
2020-06-23 18:45:44 +02:00
Dawid Dziurla
f04834f02c
formula: set GOPATH
So we can cache dependencies and speed up subsequent builds.
2020-06-23 18:04:04 +02:00
Michka Popoff
a5025e9a9f
Merge pull request #7751 from iMichka/shared
formulae: add generic shared_library_extension
2020-06-22 18:25:35 +02:00
Dario Vladovic
8a62f891e1
formula: add std_cargo_args 2020-06-22 14:39:49 +02:00
Michka Popoff
955bca6574 formule: add generic shared-lib methods
We have strings containing hardcoded ".dylib" extensions in homebrew-core.
To be able to bring linuxbrew-core and homebrew-core closer together,
I am introducing a new generic attribute that can be used in formulae.
2020-06-20 23:14:18 +02:00
Lionell
8a6fa73dc1 Merge branch 'license' of https://github.com/MLH-Fellowship/brew into license 2020-06-13 01:04:39 +08:00
Michka Popoff
1f8ebf5d20 resource: allow on_os blocks 2020-06-10 19:29:04 +02:00
William Ma
b07685291b Add license to formula DSL 2020-06-10 12:29:25 -04: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
Mike McQuaid
1eefc4c584
Adjust documentation for devel deprecation.
Update the documentation to be consistent with #7688.
2020-06-10 09:06:36 +01:00
Issy Long
8eba9b86ab
Change occurrences of "blacklist" to "denylist" or "disallow"
- Depending on context, I've gone for either "denylist" or "disallow"
  here. "Disallow" for things in sentences, or actions, and "denylist"
  for list of things.
2020-06-06 22:38:33 +01:00
Issy Long
0041ea21f5
Change occurrences of "whitelist" to "allowlist" 2020-06-06 22:38:32 +01:00
Mike McQuaid
22857b56b9
formula: deprecate devel blocks.
As we haven't released 2.3.1 I think we can get away with sneaking this
in. I'm also prepared to back this out if it's too widely used and
there's too much backlash.
2020-06-05 09:22:49 +01:00
nandahkrishna
9ffd0e66af
livecheck: reference Formula URLs 2020-05-31 13:52:55 +05:30
Mike McQuaid
bc27e38f18
Remove ARGV.debug?
Replace with `Homebrew.args.debug?`.

Part of #5730.
2020-05-23 14:38:58 +01:00
Mike McQuaid
4f75a77b08
Update deprecations
Add more deprecations, disable deprecations and remove disabled code.
2020-05-18 13:50:46 +01:00
Mike McQuaid
a7475a2946
Split out prepare_patches and fetch_patches methods.
The new `fetch_patches` method wasn't exclusively fetching so shouldn't
have been skipped when it was.

Fixes #7558.
2020-05-13 11:49:17 +01:00
EricFromCanada
580ccab75d formula JSON: include URLs for non-bottled formulae 2020-05-13 00:37:37 -04:00
Mike McQuaid
6ed1ccd8e8
Fetch (all) resources when building from source
Also:
- when `brew test` or `brew postinstall` is run allow `Resource#stage`
  to fetch the resource.
- make `Formula#fetch` and `Resource#fetch` fetch external patches too.

Follow-up from #7549 and #7546.
2020-05-12 12:37:54 +01:00
Mike McQuaid
12bdb38663
rubocop: brew style --fix autocorrections. 2020-05-12 08:32:27 +01:00
Bo Anderson
58cecf38cf resource: restore fetch in stage
Fixes #7546.
2020-05-12 03:24:28 +01:00
Michelle Nguyen
2264c08cee
Fetch formula resources before unlinking during upgrade.
Fixes #6374.
2020-05-11 09:37:56 +01:00
nandahkrishna
77e74e7e69
Adding livecheck Formula DSL 2020-05-11 09:41:13 +05:30
Mike McQuaid
5685f379ef
Formula#outdated_kegs: check versions aren't identical.
Even if the `version_scheme` does not match: we should never try to
`upgrade` (or show `outdated`) for two identical `pkg_version`s.

If this is ever needed: a `revision` bump should be done instead.

Fixes #7507
2020-05-10 13:42:55 +01:00
Mike McQuaid
8e318d81bc
formula: add pkgetc method.
This should provide a more "type-safe" way of referring to the `etc`
directories of other formulae e.g.
https://github.com/Homebrew/homebrew-core/pull/54257 so that the output
will change if the formula name changes.
2020-05-05 08:34:07 +01:00
Mike McQuaid
e6dffdd006
Merge pull request #7458 from Bo98/uses_since
software_spec: add uses_from_macos since bound
2020-05-01 12:53:59 +01:00
Mike McQuaid
04a64bb724
formula: disable! deprecates before disable date.
This makes more sense to me; if we expect a formula will be disabled at
a given point in the future then we should deprecate it immediately.
2020-04-29 09:34:40 +01:00
Bo Anderson
eb303dd654 software_spec: add uses_from_macos since bound 2020-04-28 16:45:32 +01:00
Michka Popoff
f8536d0b5b formula: add standard meson args
libdir is especially important on Fedora based distributions,
where it might default to "lib64", but everything else expects "lib",
so forcing the libdir is necessary there.
2020-04-15 15:14:13 +02:00
Mike McQuaid
cbb5fd7657
Merge pull request #7257 from iMichka/linuxdependson
formula: add on_macos and on_linux
2020-04-13 09:13:06 +01:00
Michka Popoff
c7927f5af5 formula: add linux and macos only function blocks 2020-04-12 23:51:41 +02:00
Mike McQuaid
373650d00d
KegOnlyReason: add reason helpers, rename valid. 2020-04-12 13:12:02 +01:00
Bo Anderson
811b177cf8 formula: make CMake SDK root choice consistent with superenv 2020-04-07 17:22:16 +01:00
Mike McQuaid
3381cbf5c7
Use Homebrew::EnvConfig. 2020-04-07 09:58:26 +01:00
Mike McQuaid
3effcc4dff
Tweak formula deprecation/disabling. 2020-04-01 13:42:52 +01:00
Mike McQuaid
4121659413
Merge remote-tracking branch 'origin/master' into deprecate-method-formulae 2020-04-01 13:07:11 +01:00
Bo Anderson
119b3fe69a utils/shebang: add rewrite_shebang 2020-03-27 13:04:39 +00:00
vidusheeamoli
7a62973de2 add deprecate module 2020-03-19 23:44:00 +05:30
Gautham G
badcaa15e4
ARGV: Deprecate ARGV.keep_tmp? 2020-03-15 13:24:48 +00:00
Gautham G
1292c4559c ARGV: Deprecate ARGV.interactive? 2020-03-15 16:28:04 +05:30
Bo Anderson
2592b93770 formula: ensure CMake uses the desired SDK 2020-03-09 22:40:02 +00:00
Troels Henriksen
76afad82be formula: add std_cabal_v2_args 2020-03-06 15:35:30 +01:00
Mike McQuaid
0d7100e686
Merge pull request #7105 from EricFromCanada/json-requirements
API: supply additional data for requirements
2020-03-04 11:47:10 +00:00