188 Commits

Author SHA1 Message Date
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
Dominyk Tiller
b6ecaa26f5
apr_requirement: fix always marked as missing req on Sierra 2016-10-04 23:24:32 +01:00
Dominyk Tiller
0756a3d7d8
apr_requirement: require Homebrew's Apr on Sierra
Sierra ships the headers/libraries still but for some reason decided to bin
the config scripts, which whilst seemingly not an issue for `mesos`
or `ganglia` it has broken `subversion`, `log4cxx`, `ctail`, `shibboleth`
and `passenger` that we know of so far. Let's assume more often than not
things are going to break without those config scripts around.
2016-10-04 23:16:31 +01:00
Mike McQuaid
b432f8e9cb Merge pull request #1004 from apjanke/print-requirements
info: print requirements
2016-09-27 09:48:14 +01:00
Andrew Janke
5aaccba34c info: include versions and other details in Requirements display 2016-09-24 21:39:33 -04:00
Markus Reiter
e851c9bf6c Style/Alias: Prefer alias. 2016-09-23 18:19:53 +02:00
Mike McQuaid
3f9cce0a03 Use new "macOS" naming where appropriate.
Not quite a mass replacement as I've used OS X and Mac OS X where
describing specific older versions and added compatibility methods
for things in the DSL.
2016-09-18 19:57:19 +01:00
Mike McQuaid
3982950e61 rubocop --auto-correct all hash-rocket usage. 2016-09-17 16:14:13 +01:00
Mike McQuaid
5cba530eef requirements/x11_requirement: fix Rubocop warnings. 2016-09-11 17:42:44 +01:00
Mike McQuaid
784e804fc2 requirements/ruby_requirement: fix Rubocop warnings. 2016-09-11 17:42:44 +01:00
Mike McQuaid
dab681e715 requirements/perl_requirement: fix Rubocop warnings. 2016-09-11 17:42:44 +01:00
Mike McQuaid
fb0e121686 requirements/java_requirement: fix Rubocop warnings. 2016-09-11 17:42:44 +01:00
Mike McQuaid
7e42c5d080 requirements/emacs_requirement: fix Rubocop warnings. 2016-09-11 17:42:43 +01:00
Dominyk Tiller
e02ad2242a
gpg_requirement: rename to gpg2_requirement 2016-08-13 03:33:33 +01:00
Dominyk Tiller
e62fc26b9c
gpg_requirement: centralise logic in Gpg class
Removes the detection logic from the Requirement in favour of it living inside
the Gpg class & us calling it from there. It's a bit nicer & avoids us calling
Requirement code from outside of direct requirement handling & fulfillment.
2016-08-13 03:33:33 +01:00
Dominyk Tiller
1591633888
gpg_requirement: add standalone requirement
GPG 1.x has stopped receiving new features, some of which we may well want to
take advantage of sooner or later in Homebrew. Upstream has also been attempting
to work out for a while how well used it still is which suggests it may "go away"
at some point in the future.

Debian is also in the process of migrating GnuPG 1.x to a `gpg1` executable
whilst GnuPG 2.1.x assumes the `gpg` executable. There's a detailed video
discussion of this from DebConf 2015 at:
http://meetings-archive.debian.net/pub/debian-meetings/2015/debconf15/GnuPG_in_Debian_report.webm

It's unsafe to assume every `gpg` executable is going to forever equal 1.x and
every `gpg2` executable is going to forever equal 2.x. MacGPG2 has been symlinking
2.x as a vanilla `gpg` for a while, for example, and we will be soon as well.

You'll still be able to plonk the `libexec/bin` path of `gpg` in your PATH to
access a vanilla `gpg` 1.x executable if you want to, but we're not going to
actively keep adding gpg1 support to formulae going forwards. There's really no
reason why 99.9% of projects should not or cannot use `gpg2` these days.

This uses detection methods to determine regardless of what the executable
is called we're always hitting a 2.0 GnuPG or nothing.
2016-08-13 03:33:33 +01:00
Vlad Shablinsky
3fb5d70a72
Unify Version.create usage
Substitue each Version.new and HeadVersion.new with Version.create
to unify Version and HeadVersion instantiation among core code.

Note that this does not relate to Mac::OS::Version class.
2016-07-16 20:39:13 +08:00
Dominyk Tiller
3d06f883b9
osxfuse_requirement: update PKG_CONFIG_PATH 2016-07-15 21:25:02 +01:00
Mike McQuaid
a00995fa09 osxfuse_requirement: remove formula reference.
We’re just supporting the Cask now.
2016-07-11 09:05:40 +01:00
Mike McQuaid
f950261b99 tuntap_requirement: remove formula reference.
We’re just supporting the Cask now.
2016-07-11 09:05:40 +01:00
Mike McQuaid
388876c201 osxfuse_requirement: tweak formatting.
Nicer to split this onto two lines.
2016-07-11 09:05:40 +01:00
Mike McQuaid
5413ddcb65 tuntap_requirement: fix binary logic.
Previously this was only using the last line.
2016-07-11 09:05:40 +01:00
Dominyk Tiller
0926f920dc
osxfuse_requirement: fix website link 2016-06-30 17:33:59 +01:00
Dominyk Tiller
c5520d0050 languages: flag missing dependency requirement (#194)
This is in part designed to handle situations described in https://github.com/Homebrew/legacy-homebrew/issues/42273
where we tell someone to install a special dependency, but because we (rightly, IMO)
resolve special dependencies first users can end up being told to execute a command
on a tool that isn't yet installed and isn't immediately obvious how to install it.

In the situation raised there, with the `sile` formula people are being told to
`luarocks install xyz` but we hadn't installed Lua for them first, so they just
get a `command not found: luarocks` message. Perhaps it should be obvious enough
how to install said tools by looking at the formula's dependencies,
but it's not a huge burden on us to make life easier than that.

Shuffled over from https://github.com/Homebrew/legacy-homebrew/pull/42576.
2016-05-07 20:58:20 +01:00
Dominyk Tiller
e96bed6b6c perl_requirement: add 2016-05-03 18:52:40 +01:00
Xu Cheng
3972b900f3 JavaRequirement: use next instead of return in code block 2016-05-01 14:31:26 +08:00