- Fix ENV.libxml2 to update CPPFLAGS rather than CFLAGS
- Methods ENV.{gcc*,llvm,clang} now reset CPU-specific optimization
flags on every call.
Closes#8105.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This creates a new formula for Field3D, an open source library for
storing voxel data. It provides C++ classes that handle in-memory
storage and a file format based on HDF5 that allows the C++ objects
to be written to and read from disk.
The field3d.rb formula depends on scons to configure and build the
software, and cmake to build the docs. Deps on boost, ilmbase,
and hdf5 round out the requirements, setting the stage for handling
HDR images from International Light and Magic. Field3d will be a
dep in the upcoming openimageio formula.
This compiles and passes its unit tests with all three compilers,
llvm-2335.9, gcc-4.2.1.5666, and clang-2.0.139 from XCode 4.0.2
on 64bit OSX Snow Leopard.
Closes#8362.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
libid3tag has some serious memory leaks which are unlikely to be
corrected upstream, since the original project hasn't updated since
2004. These Gentoo patches resolve the issues.
Closes#6517.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
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>