575 Commits

Author SHA1 Message Date
Adam Vandenberg
5f5fdb3284 Fix regex for svn+http
Fixes Homebrew/homebrew#4683
2011-03-15 09:41:23 -07:00
Armando Di Cianno
79d8d16184 use "git clone --depth 1"
Prefer a shallow clone for builds from git repos, as we don't need all
the historical stuff.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12 11:55:12 -08:00
Max Howell
f43be169fe Stop recommending our pip
Seeing as the pip formula doesn't recommend pip anymore, we should stop telling people to use it :P
2011-03-12 11:55:06 -08:00
Jamie Macey
b7fa82b28d fix warnings: ambiguous splat
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30 14:50:54 -07:00
Jamie Macey
1e41264f42 fix warnings: ambiguous first arg
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30 14:47:44 -07:00
Adam Vandenberg
06f484d1e5 typo in comment 2010-10-19 21:52:54 -07:00
Tianyi Cui
915b018e15 Added FossilDownloadStrategy (Fossil SCM support)
This will enable downloading source repository using fossil SCM.
For example, formulae `fossil` and `mongrel2` can have HEAD version.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-03 09:11:14 -07:00
Adam Vandenberg
8a60d852b3 Check git repos for validity before updating.
If you `brew install erlang` and then control-C during the git clone,
you can leave your cloned repo in an invalid state.

This change does a "git status" on the clone if it exists, and nukes
it if the status is invalid (forcing a clean clone.)
2010-09-24 07:50:20 -07:00
Adam Vandenberg
b2cde10e7e ImageMagick - use svn repo instead of tarballs
The ImageMagick mirrors like to drop old tarballs, which means that our
formula breaks whenever the version we're using disappears.

So I've switched to using their SVN repo (and added a --HEAD build.)

Caveat: Their SVN repo is only served over https, with a bad cert,
so this brew know has a custom SVN download strategy that auto-accepts
that cert.

If this bothers you, get ImageMagick to fix their cert upstream (or
let us know where a stable tarball mirror lives.)
2010-09-21 21:28:29 -07:00
Adam Vandenberg
d518fca81c Fetch new tags for git repos when cached. 2010-09-13 15:00:54 -07:00
Adam Vandenberg
0a018deb93 Don't version VCS checkout directories.
While tarballs are versioned to prevent conflicts when newer ones are downloaded,
we shouldn't be versioning the name of the VCS checkout when a formula uses
"HEAD" or a stable commit.

Append the name of the vcs system to the checkout path, in case a project changes
vcs providers, to prevent future conflicts.
2010-08-07 11:32:29 -07:00
Adam Vandenberg
78ca4f35fb GitHub - use git for smart http repos 2010-07-23 21:39:12 -07:00
Adam Vandenberg
984d0bd05d CurlUnsafeDownloadStrategy
This Download Strategy is provided for use with sites that
only provide HTTPS and also have a broken cert.
Try not to need this, as we probably won't accept the forulae
into trunk.
2010-07-10 12:00:11 -07:00
Adam Vandenberg
d637e0a139 brew doctor and GitDownloadStrategy now check for Git.
GitDownloadStrategy now fails if git isn't in the path, same as other
VCS strategies.

`brew doctor` will also warn if Git isn't installed.
2010-07-09 07:15:28 -07:00
Adam Vandenberg
4c2d3e1f7f Improved Subversion support.
Homebrew will now use the svn binary pointed to by HOMEBREW_SVN if set,
use a Homebrew-installed svn if present, finally falling back to the
system-provided svn binary.

If a formula (mplayer) requires a newer version of Subversion than what
Leopard provides, it can use the "StrictSubversionDownloadStrategy"
download strategy to warn the user.

These changes also fix an issue with forcing exports not working on a
stock Leopard subversion, but letting the user either specify a specific
binary or install Subversion via Homebrew and pick that up instead.
2010-07-08 22:45:03 -07:00
Adam Vandenberg
7c4661edcf Comment the detect_download_strategy patterns. 2010-07-08 22:41:51 -07:00
Adam Vandenberg
aac072c47a Tweak CurlPostDownloadStrategy 2010-06-30 10:21:56 -07:00
Adam Vandenberg
4490b739d5 Add flat-.pkg support to CurlDownloadStrategy 2010-06-30 10:14:33 -07:00
Adam Vandenberg
501fb844ab Use cp, not mv, to keep download in cache. 2010-06-28 13:14:50 -07:00
Adam Vandenberg
55b683b59a Add a download strategy that uses HTTP POST 2010-06-25 19:13:20 -07:00
Tuncer Ayaz
914a068dc8 MercurialDownloadStrategy: pull and update instead of update only 2010-06-10 12:57:20 -07:00
Tuncer Ayaz
ced8edacdc MercurialDownloadStrategy: pull and update instead of update only 2010-06-10 12:30:47 -07:00
Adam Vandenberg
9f9219a142 Subversion now supports revisions on externals.
A formula using svn can now provide a spec:
    :revisions => {...revision numbers...}
that contains a mapping of revision numbers to use
for externals.

The name of the external is keyed to the revision to
use for that external.

The symbol :trunk should be used to specify the reivsion
of the main repo.

An example from the Ffmpeg formula:
    head 'svn://svn.ffmpeg.org/ffmpeg/trunk',
        :revisions => { :trunk => 22916, 'libswscale' => 31045 }

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-08 12:36:03 -07:00
Fergal Hainey
9f2fc2ab3b More efficient SVN download that handles externals
Now makes use of `svn up` to make cache act like
a cache. Externals without a revision specified
are now checked out at HEAD, whereas before they
were ignored. Escaping arguments to backticks.
Making sure main repo is checked out before the
externals.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-08 12:35:31 -07:00
Adam Vandenberg
f08431b5a1 Add --cache support to hg and bzr. 2010-06-07 14:15:45 -07:00
Adam Vandenberg
eb30a8555b Add cache location support to CVS.
This allows formulaes which use CVS to support:
  brew --cache [formula]
2010-06-07 10:01:15 -07:00
Adam Vandenberg
2563b32bb6 Allow SVN to report cache location. 2010-05-07 10:38:48 -07:00
Adam Vandenberg
38d969ea7c Let GitDownloadStrategy report its cache location. 2010-05-05 21:20:11 -07:00
Adam Vandenberg
72ef9f4aaa Quote prefix for git submodules. Fixes Homebrew/homebrew#1009 2010-04-08 21:01:09 -07:00
Chris Thachuk
3c78d5cf91 Adds support for git submodules. Fixes Homebrew/homebrew#1009.
If submodules exists for a git repo then checkout their index as well
into the appropriate path.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-04-08 11:26:38 -07:00
Adam Vandenberg
0b56c62bf5 Add support for rar archives. 2010-03-31 12:10:08 -07:00
Adam Vandenberg
6586f89a29 Add md5 on 'brew create' if we can figure it out. 2010-03-22 21:19:20 -07:00
Adam Vandenberg
3555a3c18f REVERT SubversionDownloadStrategy change.
Change 45ce0c963a52293063432674d5c360ebe65254e2 was done in error.
This submit reverts that change (which will go in a future commit.)

I apologize for the inconvenience.
2010-03-01 14:14:07 -08:00
Adam Vandenberg
a9b19f0255 Move license block to separate LICENSE file. 2010-03-01 11:41:24 -08:00
Fergal Hainey
69bc0cbf67 Improvements to new SubversionDownloadStrategy
Now makes use of `svn up` to make cache act like
a cache. Externals without a revision specified
are now checked out at HEAD, whereas before they
were ignored. Escaping arguments to backticks.
Making sure main repo is checked out before the
externals.
2010-03-01 09:59:25 -08:00
Adam Vandenberg
080a7ee3dc brew --cache [formula]
This developer-oriented command lets you ask Homebrew what the cached
filename will be for a brew's tarball.
2010-02-24 11:15:12 -08:00
Graham Hughes
a4bd7c008d Don't merge flags in checkout-index
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-02-16 15:25:28 -08:00
David Höppner
d8b093f279 Bazaar download strategy 2010-02-02 13:43:44 +01:00
Adam Vandenberg
6d06b9a179 Create Download Strategy sooner in formula install code.
* Instantiate DownloadStrategy instance when creating a formula.
* Rename CurlDownloadStrategy member to clarify what it is for.
* Generate downloaded tarball name in initialize.
2010-02-01 12:50:16 -08:00
Alexis Hildebrandt
8b7b132620 Add support for compress compressed tarballs (.tar.Z)
Fixes Homebrew/homebrew#295
2009-12-31 01:55:10 +00:00
Max Howell
6e485cc9b1 If the download is a .jar, don't unzip it
Also remove special casing for two existing jar formula.
2009-12-21 18:39:01 +00:00
Max Howell
4b2e24ffcc Be verbose with git clones
It has useful progress information and is about 5 lines of text.
2009-12-19 16:22:21 +00:00
Max Howell
3930361bb2 Revert "Mercurial - use post-fix if"
This reverts commit 6a8b3cc71feccbf73225bc7dc8c5e6972de9953d.

This was a bad merge on my part.

Fixes Homebrew/homebrew#221. Fixes Homebrew/homebrew#220.
2009-12-19 15:04:15 +00:00
Adam Vandenberg
6435413656 Mercurial - use post-fix if 2009-12-17 16:27:10 +00:00
Max Howell
a4ed7ff619 Update VCS caches when installing
I held off on this as I wasn't sure it made sense. Eg. if you install you'd expect it to install the same version as before? But with HEAD formula you always want the newest, that's the point. Otherwise it should be tagged/revisioned.
2009-12-17 16:12:32 +00:00
Ben Cochran
edb046bea8 Removed cloning a specific revision from the mercurial download strategy.
When cloning a mercurial repository from a tagged revision, that tag definition
isn't actually included. This causes `hg archive -r tag_name` to fail.

Instead, just clone the repository's head and the `hg archive -r revision` will
handle getting the correct revision to for the build
2009-12-17 15:03:02 +00:00
Max Howell
64cdda87e0 Be more quiet about checkouts unless ARGV.verbose?
Fixes Homebrew/homebrew#204
2009-12-17 13:45:08 +00:00
Adam Vandenberg
02208387c2 Update comment (and spacing) in download_strategy. 2009-12-12 16:24:15 +00:00
Adam Vandenberg
d0d0ca0572 Removing deprecated class slated for removal in 0.5 2009-12-12 16:24:15 +00:00
Adam Vandenberg
c3623e1bd1 Add no-unzip download strategy; extracted from Jython/sbt. 2009-12-12 16:24:15 +00:00