aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
AgeCommit message (Collapse)Author
2018-03-03Adjust docs and more internal code for Python 3.Mike McQuaid
Now we have `python` for Python 3 and `python@2` for Python 2 some more adjustments need to be made.
2018-02-22Use more docs.brew.sh short linksMike McQuaid
These are nicer on the eyes.
2018-01-19formula: reject dot dirs as racksilovezfs
Dot directories are not racks because formulae names do not start with "." so avoid attempting to descend into dot directories, which may not always be possible (e.g. .Trashes).
2018-01-18Merge pull request #3661 from MikeMcQuaid/deprecate-default-formulaMike McQuaid
Deprecate default_formula Requirement DSL
2018-01-18Deprecate requirements harderMike McQuaid
Remove more Requirement logic to enable future removal of default formula logic. Also, output deprecations, convert symbol requirement usage to deps and simplify the compatibility code for the direct Requirement usage.
2018-01-14Deprecate default_formula Requirement DSLMike McQuaid
This has been a nightmare in terms of the complexity to our dependency system and the whack-a-mole required on bugs. If a Requirement resolves to a Formula it should just use `depends_on "formula"` instead. This matches the effective behaviour all users of bottles (the vast majority of users and installs) and what we're doing in Homebrew/homebrew-core.
2018-01-11formula: tweak more depends_on examples.Mike McQuaid
2018-01-11docs: Fix depends_on examples in Formula pageMichihito Shigemura
example: Error: depends_on :mysql Correct: depends_on "mysql"
2017-12-30gpg: move to compat.Mike McQuaid
2017-12-29formula: require gpg and make it a module.Mike McQuaid
2017-12-15post_install: use HOMEBREW_PATH.Mike McQuaid
Do this instead of appending the `HOMEBREW_PREFIX` as it's more reliable at finding e.g. keg-only and requirement PATH additions. It's not ideal as it overrides some environment filtering but the only real alternative is recreate the entire build environment by shelling out to `build.rb` in `formula_installer`.
2017-12-14postinstall: add HOMEBREW_PREFIX/{,s}bin to PATH.Mike McQuaid
This avoids the need for workarounds such as: https://github.com/Homebrew/homebrew-core/pull/21688
2017-12-02Simplify `PATH` usage in `Formula`.Markus Reiter
2017-11-02formula: fix safe navigation bugilovezfs
Safe navigation needs to be chained to preserve equivalence. Fixes a bug introduced by 01e9ec9a in #3183.
2017-10-29Tweak use of with_envMike McQuaid
- Use it in more places where it saves code - Allow using symbolic keys for a cleaner interface - Use `HOMEBREW_GEM_*` instead of `GEM_OLD_*`
2017-10-18Use “squiggly” heredocs.Markus Reiter
2017-10-08Clean up code style and remove `.rubocop_todo.yml`.Markus Reiter
2017-09-24Rubocop: manual rule fixes.Mike McQuaid
2017-09-24Rubocop: automatic rule fixes.Mike McQuaid
2017-08-31formula: manipulate Java's home usage by defaultDominyk Tiller
2017-08-05formula: Remove reference to homebrew/x11Bob W. Hogg
That tap is now defunct. Signed-off-by: Bob W. Hogg <rwhogg@linux.com>
2017-08-05Merge pull request #2965 from reitermarkus/cask-tapMarkus Reiter
Detect `Tap` in `CaskLoader`.
2017-07-31formula: Remove reference to Homebrew/HomebrewBob W. Hogg
That repo is now defunct. Reference homebrew-core instead. Signed-off-by: Bob W. Hogg <rwhogg@linux.com>
2017-07-30Merge pull request #2899 from MikeMcQuaid/enable-deprecationsMike McQuaid
Enable more deprecations.
2017-07-30Merge pull request #2923 from MikeMcQuaid/alias-fixesMike McQuaid
keg: correctly cleanup old aliases.
2017-07-30Detect `Tap` in `CaskLoader`.Markus Reiter
2017-07-27Use https for all docs.brew.sh links.Mike McQuaid
May as well use the more secure link when possible.
2017-07-21formula: ensure aliases don’t include full names.Mike McQuaid
Aliases that include `/`s end up creating directories and this is bad.
2017-07-21Enable more deprecations.Mike McQuaid
It's been long enough that these have been commented out so let's enable them globally.
2017-07-15formula: use env helperMisty De Meo
2017-07-07formula: tweak keg_only? formatting.Mike McQuaid
2017-07-05Formula#keg_only should be a booleanMisty De Meo
2017-06-28Refactor using `Forwardable` and `DelegateClass`.Markus Reiter
2017-06-20🔨 Fix sorting on APFS.Markus Reiter
2017-06-12Merge pull request #2769 from MikeMcQuaid/rubocop-no-perl-backrefs1.2.3Mike McQuaid
rubocop: don’t allow Perl regex backrefs.
2017-06-12Autocorrect Rubocop Style/SpecialGlobalVars.Mike McQuaid
2017-06-10Autocorrect Rubocop Style/PerlBackrefs.Mike McQuaid
2017-06-02Re-revert "Fix operator spacing."Markus Reiter
2017-06-01Revert "Fix operator spacing."ilovezfs
2017-05-31Fix operator spacing.Markus Reiter
2017-05-29Merge pull request #2663 from reitermarkus/lockfileMarkus Reiter
Convert `FormulaLock` to more generic `LockFile`.
2017-05-27Improve some `brew install` messaging.Mike McQuaid
Improve the messaging around `brew install` when there's a possible user action such as an `upgrade` or `link` and don't tell people to `install --force` when it's unnecessary. While I did this, tweak the output and function usage in a couple of related places. Some example output before this change: ``` Warning: openssl is a keg-only and another version is linked to opt. Use `brew install --force` if you want to install this version Warning: mysql@5.6 is a keg-only and another version is linked to opt. Use `brew install --force` if you want to install this version Warning: analog-6.0_1 already installed Warning: bash-completion@2-2.5 already installed, it's just not linked. ``` Some example output after this change: ``` Error: openssl 1.0.2k is already installed To upgrade to 1.0.2l, run `brew upgrade openssl` Warning: mysql@5.6 5.6.36_1 is already installed Warning: analog 6.0_1 is already installed Warning: bash-completion@2 2.5 is already installed, it's just not linked. You can use `brew link bash-completion@2` to link this version. ```
2017-05-25Rename `FormulaLock` to `LockFile`.Markus Reiter
2017-05-21Merge pull request #2660 from MikeMcQuaid/env-filtering-testMike McQuaid
formula: ensure HOMEBREW_PREFIX/bin in test PATH.
2017-05-21formula: ensure HOMEBREW_PREFIX/bin in test PATH.Mike McQuaid
Only likely to kick in when environment filtering is enabled. Otherwise we need to tediously add a dramatic number of PATHs to tests or recurse through the runtime formulae dependencies and add all them. CC @ilovezfs
2017-05-21formula: build dependencies are never missing.Mike McQuaid
If the formula is already installed and they've been removed: that's ok. Fixes #2625.
2017-05-19Merge pull request #2638 from reitermarkus/matchersMarkus Reiter
Use scoped RSpec matchers.
2017-05-16Merge pull request #2470 from johnhawkinson/conflicts-infoMike McQuaid
Display formula conflict reasons
2017-05-15Use scoped RSpec matchers.Markus Reiter
2017-05-09Allow --interactive to access HOMEMike McQuaid
This may result in a slightly varied build but it’s generally just far less annoying to be able to access all your e.g. shell configuration.