We make the assumption that the first non-option word is the command
being invoked.
Originally I was trying to allow command completion for non-standard
command lines like
$ brew --verbose inst<TAB>
but right now executing something like that doesn't actually work. Which
is interesting, because the man page implies that it should. Either the
man page is incorrect, or something was broken between then and now.
Anyway, it would probably be safe to just assume that COMP_WORDS[1] is
the command, and we do make that assumption in other places. But if we
ever do allow things like "brew --option command", this will be useful.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Using readline rather than libedit allows, among other things, the
sharing of the same line-editing config file (.inputrc) across BSDish
and Linux systems. And I'm lazy, and don't want to learn how to
configure editline.
We currently just throw away :optional when processing dependencies, so
if someone really wants libedit instead, we can either make this into an
install option (--with-readline) or vice-versa (--with-libedit).
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This builds and runs correctly, universal and otherwise, without
changing the compiler environment variables manually.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Cursory testing shows that these all build with llvm and those that have
binaries work. Formulae should be marked 'fails_with_llvm' if there are
issues found later.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
libmikmod built from tarball is 3.2.0-beta2.
libmikmod built from cvs is called 3.2.0b2 in their code.
The final work on libmikmod was left in cvs and includes numerous
bug fixes and improvements done over the course of a year after
the tarball came out. This adds the option to build head,
the final version. No work has been done in five years.
Patches from Macports were merged upstream during that time.
One patch was not and is still in this formula. Another
patch is included against the cvs version to fix a duplicate
symbol problem with vc_callback().
The 2005 era code is in need of an autoreconf -ivf, which is
done after setting an environment variable to pickup glibtoolize.
The build is done out of source according to the directions.
This builds static and shared native libraries using llvm-2335.9,
gcc-4.2.1(v5666), and clang-2.0, tested on 64bit OSX Snow Leopard.
It also builds without error on Lion.
EDIT: Builds from clone of cvs in mistydemeo with inline patches
Closes#8274.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Rationale: some software (e.g. GNU Coreutils, GnuTLS 3.x), have started
distributing _only_ xz-compressed tarballs. There is no system XZ
utility provided by OS X, but it is necessary so that we can continue to
provide formulae for this software.
If XZUtils isn't installed, we abort and prompt the user to `brew
install xz`.
The `xz` command itself doesn't do any untarring, so we write the
decompressed archive to stdout and pipe it to tar.
glib's dependency on pkg-config can be eliminated if a few environment
variables are set. This needed to be updated for libffi in order to
build correctly.
Fixes#9045.
Closes#9064.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Several issues have been caused by conflicts between the options
Homebrew passes to curl and those read from $HOME/.curlrc. Passing '-q'
will force curl to ignore settings in that file.
Suggested in #9027.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
When investigating issues, one might want to see exactly what curl is
doing behind the scenes. Setting HOMEBREW_CURL_VERBOSE will cause the
'--verbose' flag to be passed to all invocations of curl.
Prompted by #8992.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>