Commit Graph
20799 Commits
Author SHA1 Message Date
Jack Nagel 176908621d Style nit 2013-04-14 23:29:15 -05:00
Jack Nagel 4a0d57283e Performance fix for Pathname#prepend_prefix
See 05a456c231dc6da7cb0f7c70cb21feaf9a0d803c; same story.
2013-04-14 22:38:18 -05:00
Jack Nagel 05a456c231 Performance fix for Pathname#chop_basename
This is an internal method, but is called a bunch of times in
performance-critical codepaths, and is ultra slow because the constant
is interpoplated into the Regexp each time the method is called.

Alas, this has been fixed in Ruby 1.9+.
2013-04-14 21:56:04 -05:00
Jack Nagel 0bb33f8b10 Avoid slow operations in FormulaPin#initialize
A FormulaPin object is created every time Formula is instantiated, so
don't do filesystem operations or Pathname concatenation eagerly.
2013-04-14 21:41:30 -05:00
Jack Nagel bed85d1a5d Don't use Pathname#/ in performance-critical code
This method (well, really, #join) is *twice* as slow as simple
concatenation, and shouldn't really be used at all in non-Formula code.
2013-04-14 20:09:20 -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
Jack Nagel 90b70fd8a1 Keg requires OpenStruct 2013-04-14 15:38:14 -05:00
Rui Pereira 2978099d0c paps 0.6.8
Closes #17920.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-14 12:36:16 -07:00
Frank Celler cd22e0013f ArangoDB 1.2.3, 1.3.0-alpha2
Closes #19186.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-14 11:54:02 -07:00
Jeong Mok Cho f506cb81fb tmux: Korean letter patch
Closes #19123.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-14 11:52:49 -07:00
Ian Lancaster d5d40710fb closure-compiler 20130411
Closes #19193.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-14 11:31:16 -07:00
Ian Lancaster 87297dabc7 openvpn 2.3.1
Closes #19194.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-14 11:31:04 -07:00
Sebastian Sdorra d7d95e8714 scm-manager 1.30
Closes #19185.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-14 09:35:57 -07:00
Adam Vandenberg 26dfa2ccbc Only prune taps if taps exist.
Closes #19192.
2013-04-14 09:35:16 -07:00
yrammos f78116c72b lilypond devel 2.17.16
Closes #19191.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-14 09:33:24 -07:00
Ian Lancaster af5e60a991 libebml 1.3.0
Closes #19189.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-14 09:33:24 -07:00
Ian Lancaster 7e89a2d7e6 libmatroska 1.4.0
Closes #19190.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-14 09:33:24 -07:00
Francisco Souza d7deac98db vim 7.3.891
Closes #19188.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-14 09:33:24 -07:00
Doğan Çeçen 638f0e9319 cassandra 1.2.4
Closes #19187.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-14 09:33:24 -07:00
Jack Nagel 57af79afbe libusb: fix typo 2013-04-13 21:08:56 -05:00
Jack Nagel 051674cfac wireshark: modernize style 2013-04-13 21:03:41 -05:00
Benjamin Dobell 96e1cd4ee6 New formula: libusbx 1.0.14
Added homebrew formula for the popular user-space USB library, libusbx 1.0.14

Closes #17186.
Closes #18452.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-13 20:59:41 -05:00
Steven Peters 028f2b0351 New formula: libtar
libtar provides a C interface to tar files. It installs include and
library files as well as an executable called libtar, which provides
similar functionality to tar and gnu-tar. I think there should be
no conflicts since the executable has a different name.

Closes #18780.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-13 20:41:53 -05:00
Jaime Marquínez Ferrándiz f5b8a6abd0 New visualization for brew deps --tree
Closes #18835.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-13 20:32:45 -05:00
Jack Nagel 6c0a291c14 rrdtool: use stdenv to support custom perl and ruby
Closes #19018.
2013-04-13 20:31:20 -05:00
Jack Nagel 8848a468eb spin: install ispin
Closes #19044.
2013-04-13 20:28:22 -05:00
Jon Roberts 604f459469 OpenSSL: enable ec_nistp_64_gcc_128 option on 64-bit machines
This is supposed to increase speed dramatically...

Closes #19064.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-13 20:21:41 -05:00
Jack Nagel 884a4aa812 Remove extra require 2013-04-13 20:07:14 -05:00
Jack Nagel a99554879d Use assert_operator 2013-04-13 19:50:02 -05:00
Jack Nagel ef4de70a5f Remove obsolete tests
This behavior is now tested at more appropriate levels in
test_software_spec, test_formula_spec_selection, and
test_formula_validation.
2013-04-13 18:23:06 -05:00
Jack Nagel 04e2ae6d60 Make a specific assertion in this test 2013-04-13 17:40:14 -05:00
Jack Nagel 6f252fe1d2 Raise a useful exception for incomplete formulae 2013-04-13 17:40:14 -05:00
Jack Nagel d78efa8f02 Add tests for formula spec selection
These tests document the relative precedence of the stable, bottle,
devel, and head specifications, and the conditions that can influence
which is selected (e.g. command-line flags).
2013-04-13 17:40:13 -05:00
Jack Nagel f0b7f44415 Allow "devel-only" formulae
It seems only natural that this should be possible, or at the very
least, it should not result in calling methods on nil.
2013-04-13 17:40:13 -05:00
Jack Nagel 563d8be6bd Improved formula attribute validation
The initializer for Formula does a number of validations, but it does
them in a weird order, and some attributes aren't validated under
certain circumstances. This became even more of a mess when most
software package attributes were moved into the SoftwareSpec class.

This commit removes the last vestiges of storing these attributes as
instance variables. In particular, it eliminates #set_instance_variable
and #validate_variable, replacing them with methods that operate on
SoftwareSpec instances, and generate more useful errors.

Doing these validations unconditionally in the initializer means we bail
out much earlier if the formula has invalid attributes or is not fully
specified, and no longer need to validate in #prefix.

Technically we don't need to validate in #brew either, but we continue
to do so anyway as a safety measure, and because we cannot enforce calls
to super in subclasses.
2013-04-13 17:40:12 -05:00
Jack Nagel 5ba5e21536 Run tap --repair as part of prune
And by extension, `cleanup`.

Fixes #18658.
2013-04-13 17:23:14 -05:00
Johannes Schönberger 75d1a3db20 Python 3.3.1
Closes #19081.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-13 14:38:25 -07:00
Jack Nagel a722605dd5 Clean up checksum verification tests 2013-04-13 16:36:30 -05:00
Jack Nagel 84c7d9dea3 Document brew --env
Closes #19083.
2013-04-13 14:18:53 -05:00
Jack Nagel 2ae8603bb1 Document --env=std 2013-04-13 14:17:17 -05:00
Jack Nagel 2c55d41699 Document brew link --force 2013-04-13 14:10:08 -05:00
Adam Vandenberg b1df7d22a9 bochs 2.6.1 2013-04-13 11:22:53 -07:00
Adam Vandenberg 864e9f1038 Python3: package distribute 0.6.36 2013-04-13 10:48:20 -07:00
youpy 91abd5b567 nicovideo-dl 0.0.20120212
Closes #18793.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-13 09:35:21 -07:00
Adam Vandenberg a98ef33b81 Remove Neko.
Removed in favor of the binary downloads provided upstream:
http://nekovm.org/download

Closes #18071.
2013-04-13 09:15:47 -07:00
xiaobo 35cf8ff0ad ccal 2.5.3
Closes #18491.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-13 09:06:10 -07:00
Adam Vandenberg 9998ba2223 ledger: change download location
Closes #18772.
2013-04-13 08:46:22 -07:00
Ian Lancaster a8509c3aaf osmosis 0.43
Closes #19178.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-13 08:38:40 -07:00
David Holm 09be0abf93 Wine --devel 1.5.28
Also removes the notice on how to enable the Mac driver since it is enabled
by default starting with this release.

Closes #19173.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-13 07:59:14 -07:00
Jack Nagel 4853f8137b curl: fix typo 2013-04-13 02:32:16 -05:00