Fix Formula#installed_prefix logic

Due to the precedence of "and" relative to "||", this was not working as
intended; but because #version influences #prefix, the outcome was still
correct. So we can simplify this method quite a bit, and take the
opportunity to share code with #prefix.
brew-test-bot: shorten Jenkins env SHA-1s.
brew-test-bot: don't repeat SHA-1 if identical.
Add required methods to AbstractDownloadStrategy

Fixes #20080.
disable-nls for neon and subversion

Explicitly disable nls for neon and subversion in a hand-wavy
attempt to fix #17613.
gnu-smalltalk --devel 3.2.90
dex2jar 0.0.9.13

Closes #19858.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
nexus: Move persistent data

When any configuration is done to the nexus server is persists that data
to the sonatype-work directory. Also all maven artifacts are downloaded
into that directory too. So if you want to have that same setup after
upgrading, the sonatype-work directory needs to be somewhere common all
versions. This commit patches nexus to look for that data in var/nexus.

Closes #19361.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
gnu-smalltalk: depends on gnutls

Closes #20092.
doctor: combine git existence and version checks
doctor: combine git origin checks
berkeley-db: --enable-compat185 by default

Our berkeley db shadows the OS's berkeley db 1.x, making it impossible
to build software that only builds on 1.x (e.g. opensmtpd).
The --enable-compat185 switch enables a 1.x compatibility mode, which
shouldn't have any downsides and is the standard in other package
managers. (One wonders why it isn't on by default if so.)
couchdb: replace DATA patch with inreplace

Geocouch uses this formula to get the couchdb source, and this means we
cannot use a DATA patch here since it only exists for the executing
file.

Fixes #20073.
bind 9.9.2-p2

Closes #20096.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
libyaml: style
doctor: check git SSL settings on <= 10.5
mysql: listen on 127.0.0.1 by default

It's generally not a good idea to allow remote connections to mysql.
Make it safe by default.

Closes #20090.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
superenv: Improve compiler selection

This fixes superenv on Xcode 3.2.6, and also fixes C++ software with
gcc-4.2 on all Xcodes.
wireshark: add option to build Qt GUI

Closes #19824.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
audit: drop redundant 'each' after 'grep'