Jack Nagel
faa35b4fcd
Avoid unnecessary float to string conversion
2013-06-15 10:13:20 -05:00
Jack Nagel
e17d2a24fc
Use Hardware::CPU module
2013-06-14 10:34:17 -05:00
Jack Nagel
f155d31943
Decouple bottle tags from MacOS.cat
2013-06-06 16:02:27 -05:00
Jack Nagel
b169cacc32
bottles: use String#[] instead of "captures.first rescue nil"
2013-06-06 14:11:44 -05:00
Jack Nagel
04b400ef9a
Optimization: avoid repeated interpolation in regexp
...
Benchmark.bm do |b|
b.report("before") do
100_000.times { /(\.#{MacOS.cat}\.bottle\.(\d+\.)?tar\.gz)$/ }
end
b.report("after ") do
100_000.times { /(\.#{MacOS.cat}\.bottle\.(\d+\.)?tar\.gz)$/o }
end
end
user system total real
before 35.400000 0.140000 35.540000 ( 35.619674)
after 0.020000 0.000000 0.020000 ( 0.016662)
2013-04-14 18:32:48 -05:00
Mike McQuaid
a9a3cf7a19
Warn on bottles skipped due to non-default Cellar.
...
Closes #18333 .
2013-03-09 21:29:53 +00:00
Mike McQuaid
febd499cd5
bottles: remove unused 'version' from DSL.
2013-03-09 21:27:41 +00:00
Mike McQuaid
041060e28f
Support 32-bit 10.6 bottles.
...
Closes #17735 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com >
2013-03-01 17:49:09 +00:00
Mike McQuaid
82ecb69a53
Add non-/usr/local bottles support.
...
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com >
2013-03-01 17:49:09 +00:00
Mike McQuaid
d1cd6b2d86
Add custom bottle URL support.
...
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com >
2013-03-01 17:49:09 +00:00
Mike McQuaid
f99e05bb49
Cleanup bottle DSL.
...
* Remove legacy url syntax.
* Use revision instead of version.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com >
2013-03-01 17:49:09 +00:00
Mike McQuaid
91ccb21368
Add pour_bottle? method to Formula.
...
Allows a formula to selectively disable bottle pouring.
e.g. the default Boost bottle does not work with a brewed Python.
Fixes #17142
2013-01-29 17:14:11 -08:00
Mike McQuaid
e9eac42daa
Cleanup old bottle syntax.
2013-01-29 17:14:00 -08:00
Jack Nagel
8d0c65e47b
Move option comparison into BuildOptions
2013-01-26 11:37:00 -06:00
Mike McQuaid
b30390f1e4
Improve bottle error messages.
...
On installation or creation of a bottle error out of the current
machine does not support bottles.
References #16291 .
2012-12-04 12:06:02 +00:00
Mike McQuaid
ae335f108a
Fix bad reference to local_bottle_path.
...
Fixes #16337 .
2012-12-01 15:38:05 +00:00
Mike McQuaid
6442baa979
Support installing bottles from local files.
2012-12-01 12:45:23 +00:00
Mike McQuaid
43292793ee
Don't fail to cleanup redacted formula.
2012-08-25 13:40:05 -07:00
Mike McQuaid
18fb888ff3
Miscellaneous bottle code cleanup.
2012-08-25 13:08:46 -07:00
Mike McQuaid
f9268c81fe
Check formula options properly to rule out bottle.
...
Fixes #14148 .
2012-08-25 11:52:37 -07:00
Mike McQuaid
0d1c1491c4
Fix ARGV and bottles circular dependency.
2012-08-25 11:52:37 -07:00
Mike McQuaid
8837423a5a
Rename tab 'built_bottle' to 'build_as_bottle'.
2012-08-25 11:52:37 -07:00
Mike McQuaid
f3ed0f0407
Fix bottling keg-only brews.
2012-07-22 16:09:58 +01:00
Jack Nagel
a76bce6898
Decouple pathname from bottles
...
Pathname is one of the basic building block classes in Homebrew, and as
such it is preferrable that `require`ing it does not drag in other
Homebrew code; thus avoiding circular dependency situations. Its
dependency on bottles.rb gave it an implicit dependency on formula.rb,
among other things.
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2012-07-05 20:32:55 -05:00
Jack Nagel
bac9b5e05f
bottles: protect against a nil bottle
...
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2012-07-04 23:15:45 -05:00
Jack Nagel
0c18ffd7fa
Refactor checksumming
...
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2012-07-04 22:47:33 -05:00
Jack Nagel
cb94753b88
Introduce new formula specs
2012-07-04 22:47:32 -05:00
Mike McQuaid
cd4f7c10cd
Cleanup old bottles.
2012-04-30 21:37:58 +08:00
Mike McQuaid
14a4b3adf3
Fix native bottle regex.
2012-04-30 21:37:46 +08:00
Mike McQuaid
45476c7cf1
Change versioned bottle syntax and fix issues.
...
Fixed #11562 .
2012-04-24 18:53:45 +10:00
Mike McQuaid
5d99e820ae
Fix screwup.
2012-04-24 18:46:43 +10:00
Mike McQuaid
2919ffb8e2
Revert "Add and correctly find erlang bottle."
...
This reverts commit 146e253856 .
2012-04-24 18:10:09 +10:00
Mike McQuaid
d60023c466
Revert "Change versioned bottle syntax and fix issues."
...
This reverts commit f80908bead .
2012-04-24 18:10:08 +10:00
Mike McQuaid
146e253856
Add and correctly find erlang bottle.
2012-04-24 18:08:14 +10:00
Mike McQuaid
f80908bead
Change versioned bottle syntax and fix issues.
...
Fixed #11562 .
2012-04-24 18:08:14 +10:00
Mike McQuaid
0492c5084f
Allow forcing bottle installation.
2012-04-17 12:46:11 +10:00
Mike McQuaid
4864b1ba17
Use current bottle versions to calculate new ones.
2012-04-04 15:44:51 +10:00
Mike McQuaid
e827884e04
Version bottles.
2012-04-03 11:43:41 +10:00
Mike McQuaid
5a5462f624
Bottles currently require 64-bit hardware on 10.6.
2012-03-23 09:24:56 +13:00
Mike McQuaid
b13ca66d53
Fix bottles on non-Lion.
2012-03-18 20:48:11 +13:00
Mike McQuaid
1b71544892
Remove reliance of bottle DSL on EOCLASS.
2012-03-18 20:38:18 +13:00
Mike McQuaid
28b8cc7ee6
Move most bottle stuff to a bottles.rb file.
2012-03-10 18:10:40 +13:00