Fix doctor hanging if xcode-select is bad

Also fix typo in the superenv DEVELOPER_DIR set detection code.
Abort if `xcrun -find foo` returns superbin/foo

Fixes #14691.

Rewrite in Ruby to facilitate checking PATHs properly.
Assign DEVELOPER_DIR before it is needed

On a broken set up, setting DEVELOPER_DIR can fix builds, provided it is set early enough to impact them.
Work even when RUBYLIB='-'

Apparently setting RUBYLIB to '-' causes the library path to be unset. So we need to set our own library path in our scripts.

Fixes Homebrew/homebrew-versions/#47.
libnids: build the shared library

libnids is used by dsniff, but libnids only builds a static library
due to being coded in 2005 before much use of `.dylib` etc.  By
patching libnids to build a shared library, we can get dsniff to
link against it and against glib and gthread correctly without
`LDFLAGS` hacking.

- Add deps on automake anb libtool to run `autoreconf`
- Run autoreconf to fix any issues in 2005 era configure.
- Add configure flag to `--enable-shared`
- Add patch to fix errors building shared with `-soname` and `.so`
- Works well with superenv and dnsiff

Fixes #14363

Closes #15011.

Signed-off-by: Max Howell <mxcl@me.com>
Attempt to fix opt-paths for all deps

Since we changed superenv to set a PATH without /usr/local, all deps need to have opt paths.

Fixes #15077.
libvirt 0.10.2

Closes #15075.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
opam 0.7.1

Closes #15076.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
PostgreSQL 9.2.1

Closes #15079.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
phantomjs 1.7.0

Closes #15080.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
optipng 1.7.3

Closes #15082.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
FFmpeg 0.11.2

Closes #15056.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Fix fixopt and fixopt error handling

The Keg constructor was throwing because we were returning a relative path, and the error-handler was just returning a string rather than raising a string.

Worrying because a lot of opts have not been fixed and I thought this was essential for depending on keg-only formula nowadays.

Refs #15077.
iftop 1.0pre2

Closes #15062.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
cfitsio: sha1sum for examples zip

Closes #15083.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Griffon 1.1.0

Closes #15084.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
go 1.0.3

Closes #15086.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Ur/Web 20120925

Closes #15099.

Signed-off-by: Austin Seipp <mad.one@gmail.com>
Closes #15099.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
imageworsener: add libpng dependency

Without this, imageworsener is very limited as
it can not write png files

Closes #15089.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
git: also install git-subtree

The git-subtree formula was removed by b3a0a433c, as subtree is now
delivered with mainline Git. This commit ensures subtree is available in
the default install. The manpage is not installed.

See #12897.

Closes #15085.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>