aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/pathname.rb
AgeCommit message (Collapse)Author
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.
2010-03-07Fixes Pathname.install(:foo => :bar) to work when File.exist?(:bar)Max Howell
2010-03-07Allow Pathname.install to take a Hash.Adam Vandenberg
The keys of the hash are original file names, the values are new file names. Originals are renamed, and then installed under the new name.
2010-03-01Move license block to separate LICENSE file.Adam Vandenberg
2010-02-27Pathname.subdirs and Pathname.cd{}Max Howell
2010-02-18Fix Pathname.install for relative symlinksMax Howell
If you have a bunch of symlinks and they all point at one file and you use Pathname.install on them all the error checking would fail if the file was moved before the symlinks because the symlinks would then point at a non existent file.
2010-02-18Fix GitHub tarball version detectionMax Howell
2010-01-06Use full path to duMax Howell
Fixes Homebrew/homebrew#354
2009-12-30Pathname.md5 methodMax Howell
2009-12-17Also match -source tarballs.Adam Vandenberg
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.