108 Commits

Author SHA1 Message Date
Mike McQuaid
27be33b245 Deprecate Git, Subversion requirements.
These rely on `default_formula` to be useful and are better following
the `*_dep_if_needed` pattern.
2018-01-10 13:19:50 +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
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
Markus Reiter
9bee9ca575 Use “squiggly” heredocs. 2017-10-18 14:39:09 +02: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
EricFromCanada
60f6dfea14 update suggested Xcode/CLT download URLs 2017-03-28 11:12:34 -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
Markus Reiter
884b268506 Use Formatter for all URLs. 2016-10-01 20:00:49 +02:00
Markus Reiter
52ff988530 Fix RuboCop CaseEquality. 2016-09-23 15:30:06 +02:00
Markus Reiter
db37920fa7 Run rubocop. 2016-09-23 15:30:06 +02:00
Mike McQuaid
3982950e61 rubocop --auto-correct all hash-rocket usage. 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
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
Dominyk Tiller
9515e95ae7
requirements: split out gpg 2016-08-13 03:33:33 +01:00
Dominyk Tiller
e96bed6b6c perl_requirement: add 2016-05-03 18:52:40 +01:00
Dominyk Tiller
1b4cc77e14 requirements: add rbenv requirement 2016-01-09 15:53:05 +00:00
Xu Cheng
e07adf1619 GitRequirement: use Utils.git_available?
`which("git")` will return incorrect result for OS X without Xcode/CLT
installed, where `/usr/bin/git` is a stub.

Closes Homebrew/homebrew#46386.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-11-26 20:21:37 +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
Zeb McCorkle
7fc6caf41e requirements: update xcode url
Closes Homebrew/homebrew#41722.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-07-20 17:31:43 +01:00
Jack Nagel
27e184f543 Mark some requirements that don't need the build environment 2015-06-26 00:00:44 -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
Xu Cheng
2222834107 java: move java_dependency into a separate file and add Language::Java.java_home_env
Also update activemq to test against it

Closes Homebrew/homebrew#37218.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-28 01:42:09 +08:00
Xu Cheng
747542352d JavaDependency: stop appending trailing +
Closes Homebrew/homebrew#37175.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-25 16:43:30 +08:00
Xu Cheng
c7d07bcabd JavaDependency: add inspect
Closes Homebrew/homebrew#37106.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-24 02:36:27 +08:00
Xu Cheng
bec41feb7e JavaDependency: stop ignoring trailing +
This is a follow up of Homebrew/homebrew#36376
2015-02-24 02:36:27 +08:00
Xu Cheng
f7670c9106 JavaDependency: set JAVA_HOME and CFLAGS in superenv 2015-02-24 02:36:27 +08:00
Xu Cheng
cf3ee4546f add inspect to Requirement subclass
Closes Homebrew/homebrew#37116.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-24 01:39:53 +08:00
Baptiste Fontaine
40447c239d JavaDependency: ignore trailing + in the version 2015-02-01 09:31:01 +01:00
Xu Cheng
011b47aeff Add depends_on :gpg 2015-01-22 17:15:28 +01:00
Jack Nagel
2ad9cd20e6 Allow java dependency to accept normal dependency tags 2015-01-08 14:39:48 -05:00
Dominyk Tiller
aaca6edfaa requirements: externalise apr requirement
Removes the apr requirement from this internal document in favour
of making it an external requirement, which allows us to use an
apr formula to provide apr instead of asking people to install the
whole CLT package.
2015-01-06 17:08:32 +00:00
Viktor Szakats
fc2818b7a5 Use more https in urls and updated some lost links
Closes Homebrew/homebrew#35531.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-01-04 02:13:16 -05:00
Mike McQuaid
515395171c Set cask and download DSL values on requirements.
Closes Homebrew/homebrew#35257.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-12-28 12:14:49 +00:00
Mike McQuaid
7afe1ed67a requirements: recommend casks where available.
Also, tweak the XQuartz requirement to not show 0.0.0 versions being required.

Closes Homebrew/homebrew#35254.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-12-25 20:45:57 +00:00
Jack Nagel
585ddb5428 Remove type checks 2014-12-09 11:48:00 -05:00
Mike McQuaid
775cfd9117 requirements: check Xcode version is a string.
Fixes Homebrew/homebrew#34822.
2014-12-09 11:14:23 +00:00
Mike McQuaid
a92362348d XcodeDependency: allow specifying a version. 2014-12-09 09:26:38 +00: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
Dominyk Tiller
d8c34e83b7 Add unsigned kext requirement.
Creates a new requirement that dictates packages are unable to install due to requiring a signed kext to function.

Closes Homebrew/homebrew#33404.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-10-23 08:57:12 +01:00
Dominyk Tiller
029a604fb5 phantomjs: Yosemite fixes.
Closes Homebrew/homebrew#32953.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-10-06 20:09:26 +01:00
Jack Nagel
7b396a5e99 Note that the JDK is required for java dependencies
Closes Homebrew/homebrew#32224.
2014-09-23 20:06:09 -05:00
Jack Nagel
1e537b5797 Use multiple-argument form of quiet_system 2014-09-11 23:25:18 -05: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
8abc12296b requirements: don't print out java_home. 2014-08-25 09:24:08 +01:00
Mike McQuaid
7e7b721797 requirements: add JavaDependency.
Requested in Homebrew/homebrew-science#1039.
Closes Homebrew/homebrew#30852.
2014-07-21 19:14:15 +01:00