1195 Commits

Author SHA1 Message Date
Markus Reiter
bdb986f572 Revert unnecessary change. 2020-07-30 03:21:12 +02:00
Markus Reiter
24eff8f81a Pass args in SoftwareSpec instead of using global args. 2020-07-30 03:21:12 +02:00
Lionell Loh Jian An
52321b4fcd Apply suggestions from code review
Code review changes

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-07-28 21:01:36 +08:00
lionellloh
4ff3d63978 Clean up 2020-07-28 21:01:36 +08:00
lionellloh
3982810eab brew style --fix 2020-07-28 21:01:36 +08:00
lionellloh
797a07d555 All tests adapted to pass 2020-07-28 21:01:36 +08:00
lionellloh
9a2f84d4a5 Modify to_hash output 2020-07-28 21:01:35 +08:00
Lionell Loh Jian An
3d27894015 Apply suggestions from code review
Code review changes

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-07-28 21:01:35 +08:00
lionellloh
88eae0633b overwrote license attr_rw with a special license method 2020-07-28 21:01:35 +08:00
Mike McQuaid
f6bb1f1ef8
Merge pull request #8053 from Bo98/java.io.tmpdir
formula: set java.io.tmpdir
2020-07-28 09:06:38 +01:00
Markus Reiter
6b0b25cd00 Pass keep_tmp? and interactive? instead of using global args. 2020-07-25 02:37:10 +02:00
Maxim Belkin
152dd1ca24 Move allowed_missing_libraries: extend/os/linux/formula.rb ~> formula.rb 2020-07-24 11:06:38 +00:00
Maxim Belkin
487c4857a3 formula.rb: add a no-op allowed_missing_libraries method 2020-07-24 10:52:19 +00:00
Maxim Belkin
1b8c32c716 Move allowed_missing_libs? to linkage_checker.rb.
Optimize 'unexpected_broken_dylibs'
2020-07-22 14:30:52 +00:00
Bo Anderson
11b6402a2c formula: set java.io.tmpdir 2020-07-21 15:24:36 +01:00
Maxim Belkin
7080ad5ebc formula.rb: update missing libs feature
1. Raise an exception on macOS.
2. Verify that the missing libraries are specified either as Strings or
   Regular Expressions.

Signed-off-by: Maxim Belkin <maxim.belkin@gmail.com>
2020-07-21 13:16:56 +00:00
Maxim Belkin
c61aba4ec3 Formula: ignore_missing_libraries DSL 2020-07-16 13:51:16 +00:00
Maxim Belkin
e7b3b8e559 Allow missing libraries 2020-07-16 13:51:16 +00:00
Bo Anderson
022d42ab08 formula: minor refactor to reduce line count 2020-07-16 02:20:13 +01:00
Tom Schoonjans
678dbc1973 std_meson_args: add release buildtype
By default meson compiles using the debug buildtype, which corresponds
to -O0 -g. The release buildtype changes this to -O3.
2020-07-14 11:27:49 +01:00
Bo Anderson
d5d3fc0f4b formula: use installed_prefixes in opt_or_installed_prefix_keg 2020-07-09 23:04:15 +01:00
Mike McQuaid
82e249b92f
formula: look harder for a linked keg.
Add and use a `possible_names` method to find a linked keg based on
an old name or alias.

Use this both for `link_overwrite` and for `linked_keg` (which is what
`brew upgrade` uses to find outdated kegs).
2020-07-09 15:03:49 +01:00
Bo Anderson
2afa8497c0 formula: consider aliases in installed_prefixes 2020-07-09 14:08:58 +01:00
Mike McQuaid
f951ea83d4
Fix brew style. 2020-07-07 12:23:29 +01:00
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