213 Commits

Author SHA1 Message Date
Markus Reiter
de246cc528 Update Homebrew-Cask references. 2018-05-25 18:20:02 +02:00
Markus Reiter
c4222141ac Revert "Update Homebrew-Cask references."
This reverts commit 4475651b548afdcf15c4cf7a7cb57baca1885186.
2018-05-25 17:57:32 +02:00
Markus Reiter
4475651b54 Update Homebrew-Cask references. 2018-05-25 17:56:16 +02:00
Markus Reiter
5e2d4d52ba Refactor OsxfuseRequirement spec. 2018-04-20 19:11:22 +02:00
Mike McQuaid
6fab4e1805 x11_requirement: move download to base class.
No reason to have it in macOS class and keeps consistent output with
`brew info` on Linux.
2018-04-18 11:18:29 +01:00
Mike McQuaid
a4bada575a requirements: define cask on base class.
The `cask` attribute doesn't make as much sense on Linux but can be
ignored there. The advantage of this change is that (like #4086) it
allows figuring out the relevant cask for a formulae requirement on a
Linux machine.
2018-04-18 09:55:44 +01:00
Mike McQuaid
c32865011d xcode_requirement: handle nil @version.
When the Xcode requirement doesn't specify a version then we need to
guard this check.
2018-02-09 19:37:15 +00:00
Mike McQuaid
1373441e53 xcode_requirement: inform users of macOS upgrade.
If you need a newer Xcode than the latest version provided by your
version of macOS then you need to upgrade your OS to install the
software.
2018-01-28 19:08:19 +00:00
Mike McQuaid
d54e670a64 requirements: move more to compat. 2017-12-30 20:56:55 +00:00
Mike McQuaid
38ce994007 Deprecate more requirements.
These are ones that were either already deprecated due to audit rules
or are just a simple `which` with a `default_formula` so should just
be a dependency.
2017-12-23 16:53:25 +00:00
Mike McQuaid
8410950d14 java_requirement: use popen_read :err option. 2017-12-14 16:44:25 +00:00
Mike McQuaid
f4e647cbc6 python_requirement: various tweaks/fixes.
- simplify the code by avoiding some unnecessary variables and rename
  functions
- make more stuff private so implementation details don't leak
- make Python 2 binary `python2.7` to handle cases like those in
  https://github.com/Homebrew/homebrew-core/issues/21500
- only set `PYTHONPATH` for system Python; Homebrew's Python doesn't
  need it.
2017-12-14 09:21:26 +00:00
Shaun Jackman
804393efc4 Implement X11Requirement for Linux
Move the XQuartz implementation to extend/os/mac/requirements.
2017-12-07 08:45:29 -08:00
Mike McQuaid
8b9ac2b2e0 x11_requirement: remove custom minimum version.
This isn't desired or needed. Ensure older code still works, though.
2017-12-03 13:33:16 +00:00
Dominyk Tiller
1b084b5aa0
gpg2_requirement: use direct 'available?' logic 2017-10-22 05:11:52 +01:00
Markus Reiter
9bee9ca575 Use “squiggly” heredocs. 2017-10-18 14:39:09 +02:00
Mike McQuaid
a5c8628ffb Merge pull request #3333 from DomT4/java_versioning
java_requirement: fix Java 9 version detection
2017-10-18 10:03:39 +01:00
Dominyk Tiller
19790679bc
java_requirement: fix detection of new Java versioning scheme
Closes https://github.com/Homebrew/brew/issues/3331.
2017-10-18 07:13:33 +01:00
Shaun Jackman
230c87aff0 Rename MinimumMacOSRequirement to MacOSRequirement
Move MinimumMacOSRequirement to compat.
2017-10-17 16:16:44 -07:00
Shaun Jackman
95e144a1c8 Add depends_on :linux and :macos 2017-10-17 16:16:12 -07:00
Mike McQuaid
01e9ec9a9f Rubocop: automatic rule fixes. 2017-09-24 21:23:59 +01:00
Dominyk Tiller
c75a8221a5
gpg2_requirement: update code comments 2017-09-01 01:43:57 +01:00
Dominyk Tiller
0762cc6e74
gpg2_requirement: flip search priority 2017-08-09 17:06:49 +01:00
ilovezfs
4fb7626ce5 python_requirement: prefer Homebrew's Python
This avoids linkage to both system Python and Homebrew's python.
2017-07-20 02:54:04 -07:00
Mike McQuaid
f08b518481 python_requirement: add libexec/bin to PATH.
This avoids having to fix formulae that use `python` to make them use
`python2`.
2017-07-14 16:58:14 +01:00
Markus Reiter
2d6ae61314 Re-revert "Fix operator spacing." 2017-06-02 19:22:05 +02:00
ilovezfs
197392b56d Revert "Fix operator spacing." 2017-06-01 04:06:40 -07:00
Markus Reiter
d34ba7395b Fix operator spacing. 2017-05-31 19:53:41 +02:00
Bob W. Hogg
608d72a35f OsxfuseRequirement: Port to Linux 2017-04-15 21:20:09 -07:00
Bob W. Hogg
c3b309e795 java_requirement: Add newline to failure message
Signed-off-by: Bob W. Hogg <rwhogg@linux.com>
2017-04-02 14:38:43 -07:00
Carlo Rosati
1f89a33213 ruby_requirement: fix path prepend 2017-03-27 16:44:42 -04:00
JCount
ca303f6195 gpg2_requirement: set default_formula to gnupg (2.1.x) 2017-03-15 16:05:12 -04:00
JCount
de6650683b gpg2_requirement: indicate 2.1.x "modern" series is supported as well 2017-03-15 16:05:11 -04:00
Viktor Szakats
c5a9ee5719 java_requirement.rb: use HTTPS in Java Platform URL
It's redirected to cleartext, though this URL will be opened
in a browser so it won't be something hidden, and maybe
Oracle will fix this in the future.
2017-03-11 11:35:19 +01:00
Bob W. Hogg
57d66a797c Python requirements: Remove casks
Neither python nor python3 are available from Caskroom.

Signed-off-by: Bob W. Hogg <rwhogg@linux.com>
2017-03-10 18:08:49 -08:00
Kimmo Lehto
b4a2fe502c
Proposed changes 2017-02-22 09:21:31 +02:00
Kimmo Lehto
f5a0ae176a
Syntax fail 2017-02-21 13:16:04 +02:00
Kimmo Lehto
91c1a54b67
Extra check 2017-02-21 11:26:40 +02:00
Kimmo Lehto
df7ae5eb26
Use the env block 2017-02-21 11:24:53 +02:00
Kimmo Lehto
799da6dbe8
Prepend selected ruby to PATH in RubyRequirement 2017-02-21 11:12:34 +02:00
Bob W. Hogg
c49b97dd9c Code review cleanups 2017-02-15 21:47:08 -08:00
Bob W. Hogg
5a214de68d java_requirement: port to Linux and refactor
Split the core requirement class into generic, Linux-specific,
and macOS-specific parts.

Additionally, the Linux version is now able to detect Java versions
(the previous Linuxbrew implementation was only able to detect
if Java was present at all.)
2017-02-15 21:35:26 -08:00
Mike McQuaid
381d180abe language_module_requirement: use arrays.
This is cleaner, easier to understand how the arguments are split and
fixes #1799.
2017-01-25 09:43:45 +00:00
Shaun Jackman
cd18536eff PerlRequirement: version number might not be wrapped in parentheses
For example:
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
2017-01-04 22:57:14 -08:00
Kaito Udagawa
00b18c3587 osxfuse_requirement: add library and include paths
In the installation whose prefix is other than /usr/local,
osxfuse library and include path must explicitly be specified during build.
Although brew's pkg-config is configured to prepend appropriates paths,
the prepended paths (/usr/local) supercede the original HOMEBREW_PREFIX.
This behavior will cause the linker to select libraries outside brew's tree.

By adding /usr/local to HOMEBREW_LIBRARY_PATHS, superenv ensures that appears
only after the HOMEBREW_PREFIX, and thus fixes this problem.

HOMEBREW_INCLUDE_PATHS is also configured like keg-only Formulae.
2016-11-22 23:52:26 +09:00
Mike McQuaid
13276409a9 Merge pull request #1275 from woodruffw/goodbye-cctools
formula_installer: Remove obsolete hard dependency on cctools.
2016-10-15 11:47:29 +01:00
William Woodruff
5163aa5d21
formula_installer: Remove obsolete hard dependency on cctools.
ruby-macho now performs all relocations in Homebrew.

Additionally, delete the defunct CctoolsRequirement.
2016-10-12 15:00:40 -04:00
Mike McQuaid
26e4899fde Deprecate apr requirement.
It's not used on enough configurations now that there's little point in
keeping it around. See e.g. `:autoconf` for prior art.
2016-10-12 15:37:33 +01:00
Mike McQuaid
784b71cb02 Tweak style. 2016-10-12 11:18:14 +01:00
Dominyk Tiller
fcc9cfa6ae
apr_requirement: favour system as much as possible 2016-10-05 01:45:24 +01:00