ledger: find Homebrew Python when building --HEAD.

When building --HEAD and --with-python, CMake gets confused by multiple
python installations, e.g. when both Homebrew and system Pythons exist
(see https://github.com/Homebrew/homebrew/issues/10393 for one example).
This patch lifts some hacks from
https://github.com/Homebrew/homebrew/blob/51d054c/Library/Formula/opencv.rb
to point CMake to the Homebrew Python only, if one exists and is
installed.

N.B. brew test ledger seems to be  broken when installed --HEAD for
unrelated reasons.

Closes #27095.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
x265 0.8:

update to 0.8
add test
add 16-bit option

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
x265: add 0.8 bottle.

Closes #27204.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
nginx: update 1.4.6 bottle.
dart 1.2.0 (33014)

Closes #27215.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
binwalk 1.3.0

Closes #26768.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
ghostscript: Bump to 9.10

This requires a second patch (from MacPorts), and a refreshing of
the first patch.  Also, we no longer build against a Hombrewed
little-cms2 because it causes build failure.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
ghostscript: add 9.10 bottle.

Closes #27212.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
python: backport security fix for CVE-2014-1912.

A vulnerability was reported [1] in Python's socket module, due to a
boundary error within the sock_recvfrom_into() function, which could be
exploited to cause a buffer overflow.

This could be used to crash a Python application that uses the
socket.recvfrom_info() function or, possibly, execute arbitrary code
with the permissions of the user running vulnerable Python code.

This vulnerable function, socket.recvfrom_into(), was introduced in
Python 2.5. Earlier versions are not affected by this flaw nor is Python
3.3.4 which is already in Homebrew.

[1] http://bugs.python.org/issue20246

Closes #27194.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
audit: Raise problem with non-https Google Code download urls
Batch convert http urls from Google Code to https