45549 Commits

Author SHA1 Message Date
Eloy Duran
c1cc986347 Reference the full path to the `brew' bin. 2009-08-31 13:48:19 +02:00
Max Howell
08972e308b Full ImageMagick install
I used the imagemagick-installer script that made the rounds on Twitter lately as a basis.

But a number of improvements, eg. lets not mess around with the OS X installation of cups.
2009-08-30 16:12:46 +01:00
Max Howell
145e33abdf Better cache names for accessory-formula
Because formula don't get named unless the brew kit instantiates them accessory formula were getting named "__UNKNOWN__". Which sucks.

This isn't ideal for me as I made the naming use @name and @version to ensure unique naming. Now it is possible to have name clashes in the cache. So I need to solve it better at some point.
2009-08-30 16:11:44 +01:00
Max Howell
11c67fe0b4 Ruby 1.9 version style 2009-08-30 15:49:38 +01:00
Max Howell
a1d31fabad FIX GithubGistFormula (fixes Homebrew/homebrew#20) 2009-08-30 15:32:15 +01:00
Max Howell
a9d7b9e2ac Don't lower case arguments to brew make
Fixes Homebrew/homebrew#21
2009-08-30 15:01:36 +01:00
Max Howell
65cb8ea09f brew unlink command
Closes Homebrew/homebrew#8
2009-08-29 21:07:26 +01:00
Max Howell
f7d8003f3b brew install lists available install options
brew install without additional arguments that is.
2009-08-29 18:46:31 +01:00
Adam Vandenberg
a67cf9bef2 Clarify --debug behavior.
Add a note that 'exit 1' will abort the installation in --debug mode.

Signed Off By: Max Howell <max@methylblue.com>

I ammended the text slightly and made the lines all 78 chars wide maximum.
2009-08-29 14:12:31 +01:00
Adam Vandenberg
bf8071f0aa Use alternate Cache for root user. 2009-08-29 13:30:34 +01:00
Max Howell
5b6deb8845 Don't symlink directories into bin 2009-08-24 01:04:54 +01:00
Max Howell
2eec8180eb Playdar formula
Fix git download strategy
2009-08-24 01:04:54 +01:00
Max Howell
2b29e052fc reinreplace uses safe_system 2009-08-24 01:04:54 +01:00
Max Howell
4671526d70 Raise a SystemExit exception to prevent backtrace 2009-08-24 01:04:54 +01:00
Max Howell
f0c7e944bb Support optional HEAD builds for any formula
A formula can have just a @head url or the user can specify to install HEAD
with --head. We support subversion and git checkouts.

The version is set to HEAD for head builds.

Next step is making brew update handle these installs correctly.
2009-08-24 01:04:54 +01:00
Adam Vandenberg
4c2d4c8560 Add path for 'libexec'. 2009-08-24 01:04:53 +01:00
Max Howell
5144ac9e6a Suggest homepage in usage 2009-08-24 01:04:53 +01:00
Max Howell
88ad8b9af6 brew ls with no further ARGV lists all installed kegs 2009-08-24 01:04:53 +01:00
Max Howell
b6ccdad53e Proper validation of Formula.name and version 2009-08-24 01:04:53 +01:00
Max Howell
c53e10f4aa FIX brew diy --set-version --set-name 2009-08-24 01:04:53 +01:00
Max Howell
72bde8c583 Move download strategies into their own file 2009-08-24 01:04:53 +01:00
Max Howell
e7594de797 Allow configure alias for diy 2009-08-24 01:04:53 +01:00
Max Howell
f9d7b34945 Don't return a version that equals the basename
Return nil instead
2009-08-24 01:04:53 +01:00
Max Howell
c532d11e7a Refactor away AbstractFormula
We'd gotten to the stage where Formula was so lean, it was pointless to
separate it.
2009-08-24 01:04:48 +01:00
Max Howell
b115f26870 GitDownloadStrategy
Untested
2009-08-24 01:03:30 +01:00
Adam Vandenberg
57a86034a3 Support building from Subversion repositories
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.
2009-08-24 01:03:30 +01:00
Adam Vandenberg
0eaf4bbcd9 Factor out downloading from Formula
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.
2009-08-24 01:03:23 +01:00
Max Howell
65e1419ea9 Raise if installing a non-existent file 2009-08-21 18:26:50 +01:00
Adam Vandenberg
9bc60b80b6 Fix comment about ENV overrides 2009-08-21 14:40:26 +01:00
Adeel Ahmad Khan
1c55642645 Link binaries in sbin as well as bin.
Signed-off-by: Max Howell <max@methylblue.com>
2009-08-12 23:55:57 +08:00
Max Howell
140bfc5592 brew diy command
Automagically determines prefix to install to for DIY installations.

README amended.
2009-08-12 13:43:51 +01:00
Max Howell
355bfc1751 Pathname.version on directories ignores extname
Because directories don't have extensions.

Included test
2009-08-12 13:43:20 +01:00
Max Howell
0fb03b5516 Error out if the host OS X is too old 2009-08-12 02:01:47 +01:00
Adam Vandenberg
7e723c107b Add note about xeon.
Signed-off-by: Max Howell <max@methylblue.com>
2009-08-12 05:42:58 +08:00
Max Howell
5752dd23ed Only show full exception bt for --debug or -d
I agree with Adam, this makes sense.
2009-08-11 18:17:11 +01:00
Max Howell
a2066af2fd Allow user to specify patch level
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
2009-08-11 18:16:12 +01:00
Max Howell
90ea28f6ba Remove MacPorts and Fink from the build environment
Closes Homebrew/homebrew#13
2009-08-11 14:52:45 +01:00
Max Howell
ab9f59f227 More ARGV tests 2009-08-11 01:30:39 +01:00
Max Howell
d275ba9976 FIX formulae and kegs didn't always work
Strange that they did often enough for my tests to work.
2009-08-11 00:36:47 +01:00
Max Howell
bd86ab508a rmdir_if_possible should ignore EACCES
It was raising an exception, which stopped prune in its tracks when
something was installed root, eg. Fuse.
2009-08-11 00:27:43 +01:00
Max Howell
3b262d0b23 Raise if ARGV.named and no named arguments 2009-08-11 00:27:18 +01:00
Max Howell
8c7b6a947c FIX if dst cannot be deleted, it's an error 2009-08-10 23:41:47 +01:00
Max Howell
0f0f775ea9 Escape / in before inreplace too 2009-08-10 23:32:13 +01:00
Max Howell
480bfa3793 CTRL-C for a child process should interrupt brew too 2009-08-10 18:17:11 +01:00
Max Howell
dd7bdce89c Abort debug install if exit is not zero 2009-08-10 18:16:47 +01:00
Max Howell
e24e46c793 TEST Zip'd archives can be extracted 2009-08-10 18:16:12 +01:00
Max Howell
6661f78618 Allow skip_clean? to skip entire directories
Speeds up Python formula plenty in clean phase
2009-08-10 18:12:16 +01:00
Max Howell
bae67c110f Fix inreplace and yajl formula 2009-08-10 18:12:16 +01:00
Max Howell
7653d48443 ENV.libpng
libpng and that are in the X11 formula
2009-08-10 18:12:16 +01:00
Max Howell
0ea078e1ae Install README.txt etc. as README 2009-08-10 18:11:23 +01:00