doctor: report if a path element is invalid

Under certain circumstances, an invalid path element would cause
File.expand_path to bail out. Catch mistakes and report them, then
continue instead.

Fixes #12154
md5sha1sum: modernize style

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
git 1.7.10.2

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
unrar 4.2.1

Closes #12209.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
vimpc: move head repo

My github username has changed

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

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
mu 0.9.8.4, adjust head, fix for xapian + emacs

* Upgrade mu to 0.9.8.4
* Use the new head url at GitHub
* Add conditional deps on automake+libtool for autoreconf
* Add `autoreconf -ivf` for building head
* Add a Requirement for emacs >= version 23
* Patch configure error when using Xapian-1.2.10

The mu developers moved their repo from Gitorious to GitHub.

The previous version of mu compiled without problems using the
Lion system `emacs`.  This version uses a command that is not
available in the system emacs-22.1.1, and the compile will fail
using clang or llvm with many errors like this:

    In toplevel form:
    mu4e-actions.el:30:1:Error: Unknown keyword :safe

So this commit adds a Requirement for emacs >= version 23.

For building head add conditional deps on automake and libtool.
Also add the `autoreconf -ivf` system command for head.

Stable fails to configure against xapian-1.2.10 because it only
tests for version 1.2.[0-9].  Patch configure to support the
latest xapian.  Add comments referring to the upstream bug report,
patch, and removal version.  The issue has been fixed in HEAD.

Tested against the new xapian-1.2.10 on Lion 10.7.4 using clang
and llvm from XCode-4.3.2, both stable and HEAD.

Closes #12167.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
log4cxx: fix compile error with clang using autogen.sh

log4cxx building universal fails to link because the software uses
old libtool scripts that craft one compile command missing both
of the arch flags.

* Add conditional deps on automake & libtool
* Add a system call to `autogen.sh` to update the scripts
* Note in comments the upstream bug report.
* Tested on Lion 10.7.4 with clang and llvm.

Fixes #12127.
Closes #12211.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
appswitch 1.1.1

Upgrade appswitch to version 1.1.1 which has changes for Lion.
This software has only one 22k source file, but it now needs a
full XCode and xcodebuild to compile it.  Luckily the developer
includes a precompiled binary in the source tarball.  So this
commit just installs that, allowing CLT only users to run it.

Fixes #12198.
Closes #12212.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
gauche 0.9.3.2

Upgrade gauche to version 0.9.3.2 and remove the unrecognized
`--disable-debug` flag.  Gauche will build against gdbm-1.10
if it is installed, usually as a dep of Python, but it's optional.
Gauche builds just fine without it.

Closes #12218.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
mathomatic 15.8.4

* Upgrade mathomatic to version 15.8.4
* Switch from `make install` to `make m4install`
* Add a `make` in the primes subdirectory

By switching to `make m4install` we get everything in the previous
formula plus the m4 macros "which allow easy entry of math
functions like sqrt(x) and sin(x) as macros."

By adding `make` in the primes subdirectory we get the Mathomatic
prime number tools, `matho-primes`.

Changelog is here: http://www.mathomatic.org/NEWS

Mathomatic runs, and testing it by doing simple math is successful
when it's built with clang or llvm from XCode-4.3.2 on Lion.

Closes #12219.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
avidemux: fix failing inreplace

The two inreplaces that add an RPATH to the x264 and xvid dylibs
are not meant to run unless the Qt gui is built.  The conditional
that stops them from running was not coded correctly.  This commit
changes the conditional to only run the inreplaces if Qt4 is
installed using `linked_keg.exist?`.

Fixes an issue reported in #12051

Closes #12213.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
FormulaInstaller: fold dirlist helper into check_m4

Having in_aclocal_dirlist? defined as a method on FormulaInstaller is a
little weird; since its just a return condition of check_m4, move the
code there.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Use 'which' helper method more

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
doctor: rework check_pkg_config_paths

pkg-config can give us this information a colon-separated list; use
that.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Octave: Adjust BLAS linker flags

The `mkoctfile` tool, used to compile Octave packages, does not understand
`-framework <foo>`. Therefore, `-Wl,-framework -Wl,<foo>` must be used.

Fixes #12229.
libvirt 0.9.11.3 + 0.9.12

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
liblqr: add head location

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

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

The patch is still retained as the changes are not applied upstream yet.

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