| Age | Commit message (Collapse) | Author |
|
|
|
Return nil instead
|
|
We'd gotten to the stage where Formula was so lean, it was pointless to
separate it.
|
|
Untested
|
|
Adds a new DownloadStrategy that checks files out from Subversion to the
cache, then exports over to the temp folder for the build.
To use checkout with the svn:// protocol or reimplement download_strategy and
return SubversionDownloadStrategy.
|
|
This patch adds a ArchiveDownloadStrategy that handles downloading
tarbarlls and decompressing them into the staging area ready for brewing.
Refactored safe_system and curl into utils.rb
Signed-off-by: Max Howell <max@methylblue.com>
Modifications to Adam's original patch:
I reverted objectification of checksum verification because I couldn't think
of any other download validation methods that might be useful to us in the
future, so allowing such flexibility had no advantages. If we ever need this
to be OO we can add it. But for now less complexity is preferable.
I removed the @svnurl class member. Instead download_strategy is autodetected
by examining the url. The user can override the download_strategy in case this
fails. Thus we already can easily add support for clones of git repositories.
|
|
|
|
|
|
Signed-off-by: Max Howell <max@methylblue.com>
|
|
Automagically determines prefix to install to for DIY installations.
README amended.
|
|
Because directories don't have extensions.
Included test
|
|
Signed-off-by: Max Howell <max@methylblue.com>
|
|
The default is p0, but if you return a Hash instead of an array from patches you can specify patch level. See the comment documentation.
Closes Homebrew/homebrew#10
|
|
Closes Homebrew/homebrew#13
|
|
|
|
Strange that they did often enough for my tests to work.
|
|
It was raising an exception, which stopped prune in its tracks when
something was installed root, eg. Fuse.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Speeds up Python formula plenty in clean phase
|
|
|
|
libpng and that are in the X11 formula
|
|
|
|
eg. http://github.com/lloyd/yajl/tarball/1.0.5
|
|
Because we modified the ENV global each install this propagated to consecutive
formulae. So exec a new brew process each install. This is the safest way
although Ruby exceptions don't propagate to the parent process so I worry
about it somewhat.
|
|
Will not show any of the block if the 1st additional parameter is nil
|
|
Eg. man can be moved into share without consequences
|
|
Documentation is all online nowadays, and is more current there.
Documentation often takes up more space than the rest of the package.
Package listings are now more relevent.
We'll make it optional as soon as one person complains.
|
|
Includes test
|
|
|
|
Large refactor to Formula, mostly improving reliability and error handling but
also layout and readability.
General improvements so testing can be more complete.
Patches are automatically downloaded and applied for Formula that return a
list of urls from Formula::patches.
Split out the brew command logic to facilitate testing.
Facility from Adam Vandenberg to allow selective cleaning of files, added
because Python doesn't work when stripped.
|
|
eg. ENV.libpng or ENV.deparallelize
|
|
|
|
Rename relative to self.dirname
|
|
Extensions to ARGV that are convenient or improve our robustness
|
|
|
|
In order to support more than just MD5 verification, extract 'verify_download'
into a separate method.
|
|
Because cmake syntax is batshit-insane, this stops people having to memorize
which parameters to supply, and thus prevents error.
I didn't do the same for Autotools deliberately as I have found that
which parameters are supported is somewhat inconsistent. Plenty don't even
support --disable-debug, thus I want the parameters getting used in the
contributors face so they can easily diagnose what is going on.
|
|
|
|
In future, this will hopefully prevent regressions like issue Homebrew/homebrew#7.
|
|
Signed-off-by: Max Howell <max@methylblue.com>
|
|
This is consistent with the other HOMEBREW_* path constants
|
|
|
|
Closes Homebrew/homebrew#7
Cache directory is created when downloading tarballs, but the new
hw.model stuff compiles the hw.model.c file there.
|
|
Signed-off-by: Max Howell <max@methylblue.com>
|
|
|