Commit Graph
162 Commits
Author SHA1 Message Date
Max Howell 181adae94b Proper validation of Formula.name and version 2009-08-24 01:04:53 +01:00
Max Howell f9b27e8ae2 FIX brew diy --set-version --set-name 2009-08-24 01:04:53 +01:00
Max Howell a0d029cfbc Move download strategies into their own file 2009-08-24 01:04:53 +01:00
Max Howell 50453eec09 Allow configure alias for diy 2009-08-24 01:04:53 +01:00
Max Howell e7de1779d9 Don't return a version that equals the basename
Return nil instead
2009-08-24 01:04:53 +01:00
Max Howell 7e01476ce2 MPlayer formula 2009-08-24 01:04:53 +01:00
Max Howell 1c734a63e1 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 2f31a6e734 GitDownloadStrategy
Untested
2009-08-24 01:03:30 +01:00
Max Howell 501b31c8d4 Fabricate formula
Demonstrates how to use the new SubversionDownloadStrategy, ie. it's automatic
baby.
2009-08-24 01:03:30 +01:00
Adam Vandenberg 8406978510 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 9d83e666e3 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 155929c9d1 Raise if installing a non-existent file 2009-08-21 18:26:50 +01:00
Adam Vandenberg 738cfab7cd Fix comment about ENV overrides 2009-08-21 14:40:26 +01:00
Adam Vandenberg cb8935de8c Reduce MySQL configure arg duplication 2009-08-21 14:34:27 +01:00
Adeel Ahmad Khan 947a1c7f69 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 bfbcdb2334 brew diy command
Automagically determines prefix to install to for DIY installations.

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

Included test
2009-08-12 13:43:20 +01:00
Max Howell 778dc398e6 Mhash library formula for scoates at ##homebrew 2009-08-11 23:45:07 +01:00
Adam Vandenberg 9e0cc03cf6 Add note about xeon.
Signed-off-by: Max Howell <max@methylblue.com>
2009-08-12 05:42:58 +08:00
Adam Vandenberg d1539e3a56 Reformatted ./configure
Signed-off-by: Max Howell <max@methylblue.com>
2009-08-12 05:42:57 +08:00
Adeel Ahmad Khan 92ef9a6249 Modified imagemagick formula to compile (for me).
Signed-off-by: Max Howell <max@methylblue.com>
2009-08-12 05:41:06 +08:00
Adeel Ahmad Khan ab6e4b2aa0 Updated dos2unix download URL.
Signed-off-by: Max Howell <max@methylblue.com>
2009-08-12 05:41:04 +08:00
Max Howell 637b37883e 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 #10
2009-08-11 18:16:12 +01:00
Max Howell ecf64c3679 Remove MacPorts and Fink from the build environment
Closes #13
2009-08-11 14:52:45 +01:00
Max Howell ba8ac7d02d Some frivalous mods to glib 2009-08-11 01:31:47 +01:00
Max Howell 82fa9b71f4 More ARGV tests 2009-08-11 01:30:39 +01:00
Max Howell 7b3751940d 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 48a5d9b611 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 ea7c8915a2 Raise if ARGV.named and no named arguments 2009-08-11 00:27:18 +01:00
Max Howell ea2f9bbc79 FIX if dst cannot be deleted, it's an error 2009-08-10 23:41:47 +01:00
Max Howell 241d1d498f Escape / in before inreplace too 2009-08-10 23:32:13 +01:00
Max Howell c2f9ee68ab Place /usr/local first in pkg-config path
And uniq! the path list
2009-08-10 18:46:27 +01:00
Adam Vandenberg 1089896d77 Sqlite (newer than pack-in version) 2009-08-10 18:46:15 +01:00
Max Howell e78705e7e5 FIX Flac2Mp3 script 2009-08-10 18:27:53 +01:00
Max Howell a9e277a341 CTRL-C for a child process should interrupt brew too 2009-08-10 18:17:11 +01:00
Max Howell 371786ec96 Abort debug install if exit is not zero 2009-08-10 18:16:47 +01:00
Max Howell 408762e6c2 TEST Zip'd archives can be extracted 2009-08-10 18:16:12 +01:00
Adam Vandenberg ca0d50a006 Recipe for MySQL client tools (5.1.x) 2009-08-10 18:15:25 +01:00
Max Howell ce16f44d3f Allow skip_clean? to skip entire directories
Speeds up Python formula plenty in clean phase
2009-08-10 18:12:16 +01:00
Adam Vandenberg af21407fec Revert readline to version 5.2, but add patches
This is because Python 2.6 needs this. As soon as something needs readline 6,
we need to support both, which of course we can :)
2009-08-10 18:12:16 +01:00
Max Howell 8ede1c5c26 Fix inreplace and yajl formula 2009-08-10 18:12:16 +01:00
Max Howell 7aa95191dd Neon and libmusicbrainz formulae 2009-08-10 18:12:16 +01:00
Max Howell 1d3026c27b ENV.libpng
libpng and that are in the X11 formula
2009-08-10 18:12:16 +01:00
Max Howell e71f1e3093 FIX ImageMagick formula 2009-08-10 18:12:16 +01:00
Max Howell c17e31c179 Only install UNIX d samples 2009-08-10 18:12:16 +01:00
Max Howell f0ea5b96d6 mpg123 formula 2009-08-10 18:12:16 +01:00
Adam Vandenberg 320c05133e Updated Python recipe
No longer strips the main Python executable, as that was breaking the ability
of dlopen() and thus import .so based modules.

This change depends on changes to keg & formula that allow files to not be
cleaned.

Also, replaced a duplicate libpython2.6.a with a link (saves 6MB.)
2009-08-10 18:11:23 +01:00
Max Howell c3df8f7723 Install README.txt etc. as README 2009-08-10 18:11:23 +01:00
Max Howell f0f391dcb8 Support github tagged download versions
eg. http://github.com/lloyd/yajl/tarball/1.0.5
2009-08-10 18:11:23 +01:00
Max Howell 2dbe54c2df Ensure ENV is pristine for each installation
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.
2009-08-10 18:11:23 +01:00