44 Commits

Author SHA1 Message Date
Nicolas Despres
d0be4d692b keg: handle the info directory file properly
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-01 22:52:14 -06:00
Nicolas Despres
212927ee54 Pathname: remove trailing spaces
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-01 22:16:47 -06:00
Max Howell
9a774ac0a6 Fix libinet version detection 2012-01-14 03:48:03 +00:00
Jack Nagel
ae4ea06e22 pathname: recognize ".cpio.*" double extensions
Just a cosmetic nicety.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-12 20:31:47 -06:00
Jack Nagel
ffd5b7d7ab Add support for xz-compressed tarballs
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-12-09 16:16:46 -06:00
Dustin Koupal
bcea01ca0a pathname.rb: Fix spelling for permssions
Closes Homebrew/homebrew#7970.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-10-04 15:19:06 -07:00
Jack Nagel
27d2a95e8f Correctly parse ImageMagick bottle version
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-09-21 17:29:14 -05:00
Jan Lehnardt
27fd2d7a70 fix version parser for upcoming erlang bottle
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2011-08-31 08:57:30 +01:00
Mike McQuaid
b549ca837f Fix bad pathname indentation. 2011-06-21 19:24:45 +01:00
Mike McQuaid
23769d62ad Fix brew bottle versioning. 2011-06-21 19:04:17 +01:00
Adam Vandenberg
f409e4f22f Pathname: remove unused method starts_with? 2011-06-19 21:34:59 -07:00
Max Howell
d661b2be4f Actually reset the permissions 2011-06-17 09:30:25 +01:00
Max Howell
527c841f1c Fix make_relative_symlink when names differ
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-17 09:30:25 +01:00
Adam Vandenberg
b643d105eb Allow underscore with these suffixes for version detection 2011-06-16 06:47:13 -07:00
Adam Vandenberg
f7c7fae0ed Also find versions in zipballs 2011-06-04 17:29:21 -07:00
Austin Ziegler
007b9e72d5 Adding version detection to sf.net /download urls
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-25 22:30:10 -07:00
Max Howell
123f7cd00e Pathname.ensure_writable
Yields after chmoding (if necessary), once block is complete restores permissions.
2011-03-12 11:55:04 -08:00
Adam Vandenberg
f0b6870de7 Allow underscore in github version numbers. 2010-11-07 11:25:20 -08:00
Michael Dippery
e0c23d670d More .DS_Store ignoring
* Don't link .DS_Store files
* Don't list .DS_Store files in `brew info`

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-05 19:44:56 -07:00
Jamie Macey
1e41264f42 fix warnings: ambiguous first arg
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30 14:47:44 -07:00
arlolra
14ebf705ae Handle dashed tags at github.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-28 21:19:42 -07:00
Max Howell
400507b18a Pathname./ because it looks a lot better than + 2010-09-12 21:57:17 +01:00
lukas
bd6fb10361 Fixed recognition of versions like 'foobar-4.50-beta' in Pathname#version
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-27 17:53:06 +02:00
Adam Vandenberg
157425cc10 Move method back to Pathname. 2010-08-15 17:17:26 -07:00
Adam Vandenberg
013fe4bf38 Move Pathname.starts_with? into Pathname 2010-08-08 09:13:27 -07:00
Adam Vandenberg
5f5f820d12 Add Pathname.resolved_path 2010-07-25 12:07:35 -07:00
Adam Vandenberg
a6b6de63a9 Move method from ObserverPathnameExtension to extend/Pathname
* This method is generally useful, even without the Observer extensions.
2010-07-08 22:41:50 -07:00
Adam Vandenberg
375f8094d3 Add debian style names to version checker. 2010-07-06 13:17:50 -07:00
Adam Vandenberg
350aea60dc Pathname - fix RC version detection. 2010-07-04 14:10:04 -07:00
Adam Vandenberg
7d852f10a7 Update Pathname version checks.
* allow capital 'RC'
* allow 'stable' suffix
2010-07-04 11:02:54 -07:00
Jake Good
8ce7abce73 More hashing refactoring to work with byte chunks
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-30 09:24:12 -07:00
Joshua Peek
04855ddd48 fix github version parser with multidigit number
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-27 14:01:19 -07:00
Jake Good
9fbc26a39f More effective use of incremental MD5 to eliminate loading entire tarball into memory
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-23 21:23:25 -07:00
Adam Vandenberg
1e7a71bfef Change the return value of Pathname.install.
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-08 23:42:01 -08:00
Max Howell
99df82c568 Fixes Pathname.install(:foo => :bar) to work when File.exist?(:bar) 2010-03-07 11:24:22 -08:00
Adam Vandenberg
3927972a2a Allow Pathname.install to take a Hash.
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-07 11:24:22 -08:00
Adam Vandenberg
a9b19f0255 Move license block to separate LICENSE file. 2010-03-01 11:41:24 -08:00
Max Howell
991bae91a9 Pathname.subdirs and Pathname.cd{} 2010-02-27 12:29:45 +00:00
Max Howell
8cdb504b14 Fix Pathname.install for relative symlinks
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-18 17:16:02 +00:00
Max Howell
e0999078dc Fix GitHub tarball version detection 2010-02-18 11:59:29 +00:00
Max Howell
89479912ec Use full path to du
Fixes Homebrew/homebrew#354
2010-01-06 21:02:36 +00:00
Max Howell
6bd1741d7d Pathname.md5 method 2009-12-30 20:49:16 +00:00
Adam Vandenberg
a3f448a3e2 Also match -source tarballs. 2009-12-17 19:19:33 +00:00
Max Howell
543a113712 Some subdirs and renames to aid homebrew n00bs
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-15 16:51:53 +01:00