Jack Nagel
953f6c1ead
Remove test that doesn't add value
2014-04-29 09:22:17 -05:00
Jack Nagel
b40a3413e3
Pass around only absolute paths when dealing with taps
2014-04-25 18:36:31 -05:00
Tsukasa OMOTO
54004a4759
Make the on-disk representation of taps unambiguous
...
This commit supports "-" and "_" in names of user and repository.
Closes Homebrew/homebrew#28203 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-04-24 17:10:41 -05:00
Mike McQuaid
55d277c335
Support core GCC formula as a GCC compiler.
...
It is activated by the same mechanism as the Homebrew/versions compilers
which now check if the GCC formula uses the same, correct version.
References Homebrew/homebrew#28418 .
2014-04-23 08:10:48 +01:00
Jack Nagel
c208afe226
Don't test jruby deps since it makes the tests slow
2014-04-21 12:48:15 -05:00
Jack Nagel
6b5e92ac47
Raise AlreadyLinkedError when a keg is already linked
2014-04-21 12:43:06 -05:00
Jack Nagel
727f204760
Raise useful errors from make_relative_symlink
2014-04-21 12:43:06 -05:00
Jack Nagel
434854cc69
Don't use assert_nothing_raised
2014-04-15 15:39:26 -05:00
Jack Nagel
46a11a2b26
Remove questionable test
...
This is already covered in test_mach.rb.
2014-04-15 15:39:10 -05:00
Mike McQuaid
f6c6d0f60e
Add tests for new bottling hooks.
...
Closes Homebrew/homebrew#27890 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-04-10 15:25:30 +01:00
Jack Nagel
27e3ab781c
Clean up test classes
2014-04-06 15:55:25 -05:00
Jack Nagel
d22ad92a84
Remove special behavior of autotools symbol deps
...
Closes Homebrew/homebrew#28094 .
2014-04-03 09:12:25 -05:00
Jack Nagel
f1601f6d8a
Stop jumping through hoops to get at the collector object
2014-04-01 16:03:07 -05:00
Jack Nagel
a0851c1380
Assert that Keg#link produces relative symlinks
2014-03-27 09:59:54 -05:00
Jack Nagel
3e9a88c365
Assert that the broken symlink is actually overwritten
2014-03-27 09:59:54 -05:00
Jack Nagel
e9ee640024
Don't let broken symlinks halt linking
2014-03-27 09:35:10 -05:00
Mike McQuaid
e4f291084a
bottle_version: handle pazpar2 style.
2014-03-24 09:56:14 +00:00
Jack Nagel
26fe9df9b2
Preserve permissions when using Pathname#atomic_write
2014-03-22 10:58:28 -05:00
Jack Nagel
45bdeadd94
Set bottle download strategy directly
...
We know what strategy we want, so going through DownloadStrategyDetector
is wasted work. Now we can remove those patterns from the detector and
have two fewer branches each time through.
2014-03-18 21:28:33 -05:00
Jack Nagel
aa7ed10968
Make relative symlinks in Pathname#install_symlink
...
Closes Homebrew/homebrew#27672 .
2014-03-18 19:03:25 -05:00
Mike McQuaid
f115260a29
bottle_version: support lz4 style.
2014-03-17 10:35:53 +00:00
Jack Nagel
665b14c4a4
Enable new patch implementation with compatibility layer
2014-03-13 21:35:41 -05:00
Jack Nagel
bc6e4a1894
New patch implementation and DSL
...
This commit introduces a new patch implementation that supports
checksums and caching.
Patches are declared in blocks:
patch do
url ...
sha1 ...
end
A strip level of -p1 is assumed. It can be overridden using a symbol
argument:
patch :p0 do
url ...
sha1 ...
end
Patches can be declared in stable, devel, and head blocks. This form is
preferred over using conditionals.
stable do
# ...
patch do
url ...
sha1 ...
end
end
Embedded (__END__) patches are declared like so:
patch :DATA
patch :p0, :DATA
Patches can also be embedded by passing a string. This makes it possible
to provide multiple embedded patches while making only some of them
conditional.
patch :p0, "..."
2014-03-13 21:35:41 -05:00
Jack Nagel
ce5e2aa65c
Make debug an installer mode
2014-03-13 15:59:54 -05:00
Jack Nagel
7da459874f
Make bottle implementation more generic
2014-03-10 14:56:02 -05:00
Jack Nagel
9970c97c28
Clear dependency cache after each test
2014-03-09 12:38:19 -05:00
Jack Nagel
8bfcdf0bd8
Remove special X11 proxy deps
2014-03-05 20:45:44 -06:00
Jack Nagel
6008187d5f
Encode formula revision in installation prefix
...
In order to allow kegs built with the same version but differing formula
revisions to coexist, we must encode the revision as part of the keg's
name. This is necessary to actually perform an upgrade, as we cannot
upgrade a keg in-place, and temporarily moving it pending the result of
the upgrade is error-prone and potentially slow.
To accomplish this, we introduce a new Formula#pkg_version method that
concatenates the active_spec version with the formula revision. An
exception is made for a formula that has no revision: the tag is
omitted. This preserves compatibility with existing installations.
2014-03-05 20:12:51 -06:00
Jack Nagel
4bacc8bb13
Simplify test formula setup
2014-03-03 15:04:23 -06:00
Jack Nagel
c6bc01ab58
Add TapDependency
2014-02-28 11:16:55 -06:00
Jack Nagel
4928b4e02c
Set owner ivar in SoftwareSpec
2014-02-27 14:50:22 -06:00
Jack Nagel
1981e78eb2
Eliminate mutation of Dependency objects
2014-02-27 14:22:43 -06:00
Jack Nagel
b2ccbfe6af
Add set union to Options
2014-02-27 14:22:42 -06:00
Jack Nagel
96df4fe1da
Apply cyclic dependency hack unconditionally
2014-02-27 14:22:42 -06:00
Adam Vandenberg
9559e162b2
Cleaner: do work in clean instead of constructor
2014-02-23 15:53:25 -08:00
Mike McQuaid
0f2d1d7f72
bottle_version: add x264.
2014-02-22 17:15:15 +00:00
Mike McQuaid
ac81d3b0d8
bottle_version: improve test filenames.
2014-02-22 17:14:51 +00:00
Jack Nagel
e3e14a0cdf
Eliminate nil check on path parameter
2014-02-21 20:07:41 -05:00
Jack Nagel
41a9ba8259
Move Formula.class_s to Formulary
2014-02-21 00:46:03 -05:00
Jack Nagel
fb350bad0f
Remove downloader from Formula
2014-02-21 00:41:07 -05:00
Jack Nagel
662560e40d
Remove test with too much implementation knowledge
2014-02-21 00:41:07 -05:00
Jack Nagel
ca0eff67fa
Inline static exception text to remove a rescue
2014-02-18 13:27:35 -05:00
Jack Nagel
0b2c6e87f1
Implement equality for Dependencies collections
2014-02-13 16:31:12 -05:00
Jack Nagel
0f5a80a97b
Fix tokenizing openssl style versions
...
Fixes Homebrew/homebrew#25736 .
2014-01-11 20:00:34 -06:00
Misty De Meo
c247f66a13
stdenv tests: add gcc-4.0 test
2014-01-04 01:37:19 -08:00
Jack Nagel
5e1cbb50c1
cleaner: add more tests for current behavior
2013-12-22 13:43:00 -06:00
Jack Nagel
d19934dcb7
cleaner: clean up broken and orphaned symlinks
2013-12-21 23:28:04 -06:00
Jack Nagel
f55e93d9fc
cleaner: add test to demonstrate that empty prefixes are removed
2013-12-21 23:28:03 -06:00
Jack Nagel
8430307fa5
cleaner: add tests to document current pruning behavior
2013-12-21 23:28:03 -06:00
Jack Nagel
b57e6006a6
cleaner: add tests to demonstrate some current failures
2013-12-21 23:28:03 -06:00