143 Commits

Author SHA1 Message Date
Shaun Jackman
baa3d187d6 Add CVSRequirement and SubversionRequirement
Use these two requirements in DependencyCollector.
Remove the unused function MacOS::Xcode.provides_cvs?
2017-11-25 09:45:08 -08: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
Markus Reiter
175ca909ee Clean up code style and remove .rubocop_todo.yml. 2017-10-08 16:10:37 +02:00
Bob W. Hogg
227e69048a dependency_collector: Make ant_dep and xz_dep public
They were already public on macOS, but they were made
private by mistake on all other platforms.
DependencyCollector.tar_needs_xz_dependency? depends
on xz_dep being public, so there's no turning back now :(
2016-11-28 03:09:34 +00:00
Mike McQuaid
b1a16deb19 Use BSD tar's libarchive LZMA support if available
Avoid using an unnecessary `xz` dependency when it's not needed.
2016-10-15 13:10:37 +01: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
Markus Reiter
58e36c7319 Fix Style/GuardClause. 2016-09-24 12:24:35 +02:00
Markus Reiter
42efb44e7d Fix Lint/EndAlignment. 2016-09-23 15:30:06 +02:00
Markus Reiter
52ff988530 Fix RuboCop CaseEquality. 2016-09-23 15:30:06 +02:00
Bob W. Hogg
1de9f3baf3 make linux behaviour the default. override only for macos 2016-09-22 17:47:50 -04:00
Bob W. Hogg
01b93117cd move os checks to extend/os 2016-09-22 08:31:50 -04:00
Bob W. Hogg
f65217f61e Oops, forgot to rename it in-code 2016-09-22 08:31:50 -04:00
Bob W. Hogg
0a4bc8494d switch to using extend pattern 2016-09-22 08:31:50 -04:00
Bob W. Hogg
54a086e2fe dependency_collector: Fix ant_dep for Linux.
Signed-off-by: Bob W. Hogg <rwhogg@linux.com>
2016-09-22 08:31:50 -04:00
Mike McQuaid
6693915399 rubocop --auto-correct all remaining files.
But remove some manual `.freeze`s on constants that shouldn't be
constants.
2016-09-17 16:14:13 +01:00
Dominyk Tiller
e02ad2242a
gpg_requirement: rename to gpg2_requirement 2016-08-13 03:33:33 +01:00
Dominyk Tiller
7d57119837 dependency_collector: add perl
Closes #184.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-05-03 18:52:40 +01:00
Misty De Meo
2f7721f1b4 Add :expat special dependency
This will be expanded to a full expat dependency on Tiger alone.

Fixes mistydemeo/tigerbrew#30.
2016-04-22 22:37:21 -07:00
Dominyk Tiller
c9097b40f9 dependency_collector: add rbenv
Closes Homebrew/homebrew#47897.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-09 15:53:05 +00:00
Misty De Meo
c6f45a9e06 DependencyCollector: add lua51 language module 2016-01-01 20:10:34 -04:00
Misty De Meo
575b75fced LanguageModuleRequirement: remove jruby support 2016-01-01 20:10:34 -04:00
Misty De Meo
aa1461b7d6 LanguageModuleRequirement: remove ocaml support 2016-01-01 20:10:34 -04:00
Misty De Meo
36cef3c974 LanguageModuleRequirement: remove node support 2016-01-01 20:10:34 -04:00
Misty De Meo
1ad2aeef86 LanguageModuleRequirement: remove chicken support 2016-01-01 20:10:34 -04:00
Misty De Meo
d4db443b19 LanguageModuleRequirement: remove rbx support
This test wasn't running by default, so we missed that it wasn't
actually being executed - or that it was failing when running in the
testing environment.

As far as I can tell this is not, and has not, been used either in core
or in any tap, third party or otherwise, so just remove the feature and
its test.
2016-01-01 20:10:34 -04:00
Misty De Meo
00c51a2480 DependencyCollector: infer dep for .lzh archives
Refs Homebrew/homebrew-games#383.
2015-12-31 19:48:07 -04:00
Xu Cheng
d108bf0a55 move more deprecated methods to compat folder 2015-11-17 18:52:00 +08:00
BrewTestBot
13d544e11e Core files style updates.
Closes Homebrew/homebrew#42354.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Jack Nagel
7c83e3ffe3 Remove workarounds for destructuring single-element hashes 2015-06-19 22:30:13 -04:00
Mike McQuaid
1e86730289 Rename requirements named *Dependency.
Dependency is another similar, related class and it's super confusing
to have some Requirements that are named *Dependency.

Closes Homebrew/homebrew#38891.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-16 08:12:01 +01:00
Alex Dunn
dba9675ed3 add EmacsRequirement
Closes Homebrew/homebrew#39326.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-05-08 14:37:15 +08:00
Mike McQuaid
305ced5360 Add RubyRequirement. 2015-04-21 09:33:41 +01:00
Tim D. Smith
ac16822a16 Prioritize TapDependency in parse_string_spec
test-bot expects the dependencies returned from SoftwareSpec#deps to
satisfy is_a?(TapDependency) if they come from a tap which might need to
be tapped.
2015-04-09 00:42:51 -07:00
Tanachat Nilanon
e97fac1dd6 add :python3 to LANGUAGE_MODULES
Add special :python3 dependency tag to LANGUAGE_MODULES in
dependency_collector.

Closes Homebrew/homebrew#37898.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
2015-03-19 23:04:35 -07:00
Xu Cheng
011b47aeff Add depends_on :gpg 2015-01-22 17:15:28 +01:00
Jack Nagel
8f51541d41 Try to match unused symbol deps last 2014-12-05 01:38:14 -05:00
Dominyk Tiller
97eac8853e tuntap: recommend upstream signed binary.
We have an upstream signed binary available! Big big love to Mattias
for this.

This PR converts all the existing tuntap dependencies into
binary-friendly tuntap dependencies, and adds a tuntap dependency to
requirements to look for the kexts.

Closes Homebrew/homebrew#33894.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-11-07 09:12:29 +00:00
Jack Nagel
6eabbed464 Add depend_on :apr 2014-11-05 20:34:02 -06:00
Johnathan Conley
0d154a991d Add :osxfuse dependency to support binary install.
add :osxfuse symbolic dependency
add ConflictsWithFuseForOsx requirement for osxfuse/fuse4x/fuse4x-kext

Closes Homebrew/homebrew#31975.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-09-09 10:17:03 +01:00
Mike McQuaid
31a444ef16 dependency_collector: add :java symbol 2014-07-21 19:14:15 +01:00
Jack Nagel
618b894c3e Replace ComparableSet with a Requirements collection 2014-07-03 14:50:57 -05:00
Jack Nagel
4cbae37d62 Don't expose the dependency cache data structure 2014-07-02 15:15:59 -05:00
Jack Nagel
fbefa76ce2 Always use class.name to build inspect strings 2014-07-01 18:39:15 -05:00
Jack Nagel
355361fa3f Remove build flag from ant dep 2014-05-30 15:33:57 -05:00
Jack Nagel
1e638331ad Try to match unused symbol deps last 2014-05-23 13:13:31 -05:00
Jack Nagel
10bd849bd3 Remove CLTDependency
Closes Homebrew/homebrew#29379.
2014-05-19 10:37:45 -05:00
Jack Nagel
d22ad92a84 Remove special behavior of autotools symbol deps
Closes Homebrew/homebrew#28094.
2014-04-03 09:12:25 -05:00
Jack Nagel
bb5e0812fb Add fast path for CVS dep
The search mechanism in MacOS::Xcode is very slow. It requires shelling
out at least twice, and possibly a third time (in the CLT-only case).

Calling provides_cvs? activates this in order to determine the Xcode
version. But if we know that there isn't an Xcode available for the
current OS that meets the criteria, we can avoid this check entirely.
2014-04-02 19:58:15 -05:00
Mike McQuaid
c34ed98eaf dependency_collector: use ArgumentError exception.
Avoids errors with `brew versions` when bottling.

References Homebrew/homebrew#27615.
2014-03-22 10:31:00 +00:00