aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/pathname+yeast.rb
AgeCommit message (Collapse)Author
2009-10-15Some subdirs and renames to aid homebrew n00bsMax Howell
The classes better reflect their contents. I'm sure this change may be contentious, but I am a sucker for trying to create source bases that are easy to get to grips with and easy to navigate. brewkit.rb is now a deprecated file.
2009-10-08Tweak version regex.Adam Vandenberg
Enable tarballs named like "fceux-2.1.1.src.tar.bz2"
2009-10-01Add -sources to the version recognizer.Adam Vandenberg
2009-09-30Pathname fix for ruby 1.9 [hack?]Zachery Hostens
2009-09-29Angband version styleMax Howell
2009-09-25Find version number in *-src.tarballAdam Vandenberg
Signed-Off-By: Max Howell <max@methylblue.com> I added a unittest.
2009-09-14Ant formulaClinton R. Nixon
Ant is a Java-based build tool. In theory, it is kind of like Make, without Make's wrinkles and with the full portability of pure Java code.
2009-09-14Couchdb and dependency formulaeSean Wolfe
Signed-off-by: Max Howell <max@methylblue.com> I squashed a number of commits here, and also replaced the use of nspr.prefix with HOMEBREW_PREFIX as in theory we are flexible with our requirement for dependencies, although with the limited build system that SpiderMonkey possesses this is difficult for us to achieve anyway…
2009-09-11Fix lame version, eg. 398-2Max Howell
Included test this time!
2009-09-02Tests for Pathname+YeastMax Howell
I removed the rename and mv functions as when I wrote the tests I realised the function implied the pathname object would be updated to reflect the moved or renamed file. However that cannot be done. Also frankly I think writing it out in full makes clearer code.
2009-09-01Dict.org client formulaBen Alpert
Added Formula::etc() Added Pathname::write() convenience function which can write a string out to the file it points too, raising if it would have to overwrite.
2009-08-31Change license to BSDMax Howell
I confirmed this change with all relevant contributors first.
2009-08-30Ruby 1.9 version styleMax Howell
2009-08-24Don't return a version that equals the basenameMax Howell
Return nil instead
2009-08-24Factor out downloading from FormulaAdam Vandenberg
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-21Raise if installing a non-existent fileMax Howell
2009-08-12Pathname.version on directories ignores extnameMax Howell
Because directories don't have extensions. Included test
2009-08-11rmdir_if_possible should ignore EACCESMax Howell
It was raising an exception, which stopped prune in its tracks when something was installed root, eg. Fuse.
2009-08-10FIX if dst cannot be deleted, it's an errorMax Howell
2009-08-10Support github tagged download versionsMax Howell
eg. http://github.com/lloyd/yajl/tarball/1.0.5
2009-08-10Refactor0.4Max Howell
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.
2009-08-10Return the installed path(s) from installMax Howell
2009-08-10FIX Pathname.renameMax Howell
Rename relative to self.dirname
2009-07-31Refactor $foo into HOMEBREW_FOOMax Howell
CONSTANTS are the far saner choice for these important parameters. Split env up so I can redefine the CONSTANTS in unittest.rb.