Commit Graph
57 Commits
Author SHA1 Message Date
Mike McQuaid 1ae1dc8e67 bottles: support mavericks.
Closes #23447.
2013-10-23 00:09:35 +01:00
Misty De Meo a27630a28b Bottles: add Leopard/PPC tags 2013-10-21 18:06:46 -07:00
Misty De Meo 478bf23076 Update Leopard/Tiger bottle tags
* PPC bottles are in the os_cpu format, e.g. :tiger_g3
* Intel bottles are the bare cat, as usual
* 64-bit bottles have _64 appended to them, e.g. :tiger_g5_64 or :leopard_64
2013-10-21 13:52:49 -07:00
Jack Nagel 3cba7d44c6 Rename MacOS to OS::Mac 2013-10-18 12:56:51 -05:00
Jack Nagel d16abcddd5 Simplify setup for local bottle installation
Closes #22833.
2013-09-26 10:04:45 -05:00
Mike McQuaid 76ef4e1d50 Move bottle.rb logic from test-bot to brew bottle. 2013-09-22 16:16:50 +01:00
Jack Nagel c6de3f7894 Give this condition a more revealing name 2013-09-21 19:27:24 -05:00
Mike McQuaid 148a746ddd Bottles: use options hash for install_bottle? 2013-09-18 12:36:43 +01:00
Mike McQuaid 20115155cf Allow forcing bottle installation. 2013-09-01 12:59:01 +01:00
Mike McQuaid ee972d943b bottles: use dedicated version class. 2013-08-03 22:27:42 -07:00
Mike McQuaid c83c386bf9 Move getting formula names from bottles to method. 2013-07-18 09:56:55 -07:00
Mike McQuaid a5c796b2cc bottles: only try f.bottle.revision if it exists. 2013-07-04 11:32:50 +01:00
Mike McQuaid 4e5992efd3 bottles: remove legacy tab handling.
References #20716.
2013-06-27 10:09:37 +01:00
Adam Vandenberg edfce76fe5 Remove unused guard
Closes #20716.
2013-06-26 20:32:13 -07:00
Mike McQuaid fcd635fe24 bottles: add arguments cleanup TODO. 2013-06-22 11:13:59 +01:00
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