aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/pathname.rb
AgeCommit message (Collapse)Author
2012-03-16Taps can only have one directory of formulaMax Howell
Rationale: Let's not have duplicate-names. Insisting on only one directory lets the filesystem enforce this unique-naming criteria for us. We special-case adamv/alt for now, until we remove it.
2012-03-16Pathname.atomic_writeMax Howell
2012-03-16Leave kegs keg-only if linking step failsMax Howell
Rationale: well, it should always have been like this! However now we are opening ourselves up to more-mixed installations of formula not maintained by us, it's important that
2012-03-16`brew tap` and `brew untap`Max Howell
2012-03-11Allow multiple digits in GitHub version partsAdam Vandenberg
2012-03-10Move most bottle stuff to a bottles.rb file.Mike McQuaid
2012-03-10Support bottles for non-Lion OSX versions.Mike McQuaid
2012-03-06Pathname.stem knows about bottlesMax Howell
2012-02-21Convert to Pathname if not Pathname as we need it to beMax Howell
2012-02-17Update return values of install and install_symlinkAdam Vandenberg
These now return an Array of all the target destinations. Previously, if a single argument was passed a single non- Array was returned. This behavior has been changed so that an Array is always returned even for a single argument. Updated the test. Hopefully this won't break any custom code out there.
2012-02-12Pathname.install_symlinkAdam Vandenberg
2012-02-11Recognize dist suffixAdam Vandenberg
2012-02-10Pathname: silence install-info outputJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-09Allow multiple arguments to installAdam Vandenberg
2012-02-08this was out of balanceAdam Vandenberg
2012-02-08Pathname: support .tar.Z extensionAdam Vandenberg
2012-02-01keg: handle the info directory file properlyNicolas Despres
If HOMEBREW_KEEP_INFO environment variable is set: - Do not symlink the info directory file (aka 'share/info/dir') otherwise it gets overwritten by next installed brew. - Install an entry in the directory for each linked info file when the brew is linked. - Uninstall the entry when the brew is unlinked. Closes Homebrew/homebrew#9700. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-01Pathname: remove trailing spacesNicolas Despres
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-14Fix libinet version detectionMax Howell
2012-01-12pathname: recognize ".cpio.*" double extensionsJack Nagel
Just a cosmetic nicety. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-09Add support for xz-compressed tarballsJack Nagel
Rationale: some software (e.g. GNU Coreutils, GnuTLS 3.x), have started distributing _only_ xz-compressed tarballs. There is no system XZ utility provided by OS X, but it is necessary so that we can continue to provide formulae for this software. If XZUtils isn't installed, we abort and prompt the user to `brew install xz`. The `xz` command itself doesn't do any untarring, so we write the decompressed archive to stdout and pipe it to tar.
2011-10-04pathname.rb: Fix spelling for permssionsDustin Koupal
Closes Homebrew/homebrew#7970. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-09-21Correctly parse ImageMagick bottle versionJack Nagel
Commit 2695821e98 ("Only use the bottle if its version is up-to-date") essentially broke the ImageMagick bottle, because the version parsing logic returns "1" as the bottle version. Fixing this requires only a slight modification to the bottle URL regex; includes a test. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-08-31fix version parser for upcoming erlang bottleJan Lehnardt
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2011-06-21Fix bad pathname indentation.Mike McQuaid
2011-06-21Fix brew bottle versioning.Mike McQuaid
2011-06-19Pathname: remove unused method starts_with?Adam Vandenberg
2011-06-17Actually reset the permissionsMax Howell
2011-06-17Fix make_relative_symlink when names differMax Howell
Before we would always make the symlink itself have a basename the same as what it pointed to. I don’t think this breaks any of the other usages as they were working by coincidence.
2011-06-16Allow underscore with these suffixes for version detectionAdam Vandenberg
2011-06-04Also find versions in zipballsAdam Vandenberg
2011-03-25Adding version detection to sf.net /download urlsAustin Ziegler
SourceForge links can end with /download which appears to be part of what is used to drive mirror selection. Modifying the version detection extension of pathname.rb to detect this case for both sourceforge.net and sf.net download selections. This is sufficient for version detection but may not be sufficient for other uses of /download links. I have not found any problems with links that use /download, though. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12Pathname.ensure_writableMax Howell
Yields after chmoding (if necessary), once block is complete restores permissions.
2010-11-07Allow underscore in github version numbers.Adam Vandenberg
2010-11-05More .DS_Store ignoringMichael Dippery
* Don't link .DS_Store files * Don't list .DS_Store files in `brew info` Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30fix warnings: ambiguous first argJamie Macey
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-28Handle dashed tags at github.arlolra
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-09-12Pathname./ because it looks a lot better than +Max Howell
2010-08-27Fixed recognition of versions like 'foobar-4.50-beta' in Pathname#versionlukas
Sphinx currently has a download name 'http://sphinxsearch.com/downloads/sphinx-1.10-beta.tar.gz', which homebrew currently can't correctly identify - with a small change to the regex for 'foobar-4.5.0-beta1' (make that trailing number optional) - it works like a charm. Signed-off-by: David Höppner <0xffea@gmail.com>
2010-08-15Move method back to Pathname.Adam Vandenberg
2010-08-08Move Pathname.starts_with? into PathnameAdam Vandenberg
2010-07-25Add Pathname.resolved_pathAdam Vandenberg
2010-07-08Move method from ObserverPathnameExtension to extend/PathnameAdam Vandenberg
* This method is generally useful, even without the Observer extensions.
2010-07-06Add debian style names to version checker.Adam Vandenberg
2010-07-04Pathname - fix RC version detection.Adam Vandenberg
2010-07-04Update Pathname version checks.Adam Vandenberg
* allow capital 'RC' * allow 'stable' suffix
2010-03-30More hashing refactoring to work with byte chunksJake Good
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-27fix github version parser with multidigit numberJoshua Peek
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-23More effective use of incremental MD5 to eliminate loading entire tarball ↔Jake Good
into memory Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-08Change the return value of Pathname.install.Adam Vandenberg
The change to Pathname to support renaming changed the return value. This commit puts it back, so the associated unit test passes again.