It is a no-op under Ruby 1.8 but Pathname#find raises ENOENT if the
directory doesn't exist under 1.9. But we really shouldn't try to clean
a non-existent keg anyway, and FormulaInstaller will have bailed out
long before the clean step if the keg doesn't exist, so lets just not
even test this condition; the cleaner has its own tests anyway.
Alternatively we can adjust the cleaner to handle this case, but I don't
see much value in that.
n.b. with this, the tests now pass under 1.9.3 (for me), which is nice
because I often run them on that version inadvertently.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Previously we detected this by reading the first line of the file.
However, "first line" is meaningless when dealing with binary files, but
IO#readline will happily keep reading until it finds a newline
character, which can result in some unnecessarily large buffers.
Aside from the performance issue, this causes an additional problem
under Ruby 1.9: trying to match the binary string against a pattern will
raise ArgumentError (unless the binary string just happens to also be
valid UTF-8, heh).
Fix both issues: only read the first 1024 bytes, as no sane shebang will
ever be that long, and use a plain read(), which returns an ASCII
encoded string even on 1.9.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
py2cairo needs the PATH environment variable to locate
`python-config` and by extension the Python the user
wants to use.
- Add `env :std` for now until a system-wide solution is used.
Fixes#14781Closes#15159.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Entry_#copy_metadata has a nasty bug that makes copying symlinks
across filesystems fail. This lasted all the way through 1.9.3p194
before *finally* being fixed. This backports the official fix.
Fixes#14710.
Add explicit build-time dependencies on some tools so that superenv puts them in the path.
(And also so they'll be installed because they are needed!)
Fixes#15145.
- Upgrade to 3.8.1
- Remove the __bzero patch because it works now.
- Move the existing patch into a gist
- Add a patch supplied in the issue below to fix compiling on Lion.
- Patch reported upstream and noted in comments
- Add a `--disable-dependency-tracking`
- Remove the `--mandir` because it installs correctly.
- Remove the `AR=ar` from the make command. It uses `/usr/bin/ar`
- Works with superenv
- passes `brew test -v valgrind` on Lion & ML using XCode-4.5
Fixes#14986#14706Closes#15122.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
I don't really feel like taking the time to grok what is going on in
this formula, but reopening the Xpdf class like this causes problems if
the actual Xpdf class is loaded as well, so rename it.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>