Commit Graph
13559 Commits
Author SHA1 Message Date
Jack Nagel 6ccf2aa253 Version: build-in devel version comparisons
The heuristic used by the default version comparison is simple. A
version string is scanned for strings of digits, split into an array of
these strings, and then an element-wise comparison is done.

This fails when presented with something like

  Version.new("1.0.0beta7") <=> Version.new("1.0.0")

because the first three digits match, and the fourth digit of the
receiver (7) is greater than the assumed fourth digit of the parameter
(0).

Fix this by defining an element-wise comparator on a new VersionElement
class. This allows us to correctly compare "alpha", "beta", and "rc"
style version strings, and keeps the logic out of the main version
comparison.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 15:53:04 -05:00
Jack Nagel 41994f9423 brew-mirror-check: update for new specs API
This was missed as part of the specs refactor.

Fixes #14280.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 12:05:18 -05:00
Fayland Lam f8b7dfc648 tor 0.2.2.38
Closes #14273.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 11:43:17 -05:00
Michael Vincent a256d75821 kdiff3 0.9.97
Closes #14268.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 11:41:57 -05:00
Jeremy Johnstone dfba8c0d98 sshuttle 0.61
Closes #14266.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 11:40:35 -05:00
nibbles 2bits a328046aab avidemux: update fails_with
avidemux fails with clang build 421. Make the adjustment.

Fixes #14230.
Closes #14231.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 11:39:16 -05:00
Nicolas Crowell 10064fb22c ncmpcpp: update URLs
brew install ncmpcpp was failing on a sha1 mismatch. It turns out the
link is dead or something and redirects to a new homepage. The new links
come from the page where the old ones were redirected to.

Closes #14218.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 11:37:17 -05:00
Anthony Pearson ae6acb42c5 node 0.8.7
Closes #14233.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 11:36:16 -05:00
Jack Nagel a17eaca132 Refer to the real keg when dying because the keg exists
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 11:26:00 -05:00
Jack Nagel 094ce49859 Refactor brew missing
The heuristic for determining whether something is installed changes
from "f.installed?" to "f.rack.exist? and f.rack.subdirs.length > 0" in
order to properly consider outdated formulae.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 11:25:59 -05:00
Jack Nagel ce604c642d Deprecate MacOS.version? style methods
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 11:25:59 -05:00
Jack Nagel 5b31fa358c Adjust formula versions
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 11:13:54 -05:00
Jack Nagel 822aeac407 Add custom comparator for MacOS.version
This will allow us to do comparisons like

  if MacOS.version >= :lion

and hopefully deprecate the MacOS.<name>? family of methods, which are
counterinitutive.
2012-08-18 11:13:54 -05:00
Jack Nagel 610c65c908 Add small DSL for defining comparators 2012-08-18 11:12:10 -05:00
Jack Nagel c7cd378c6e outdated: use new version comparison machinery 2012-08-18 11:12:10 -05:00
Jack Nagel 816348131b keg: add method to return the corresponding Version 2012-08-18 11:12:10 -05:00
Jack Nagel db7a800130 Add support for custom version schemes
A version scheme is a class that inherits from Version and reimplements
Version#<=>. This will allow formulae to specify a custom comparison
method that will be used instead of the default, for cases where the
default is insufficient.
2012-08-18 11:12:09 -05:00
Jack Nagel e53bb4f18b SoftwareSpec: simplify conditional 2012-08-18 11:12:09 -05:00
Jack Nagel 9e80ec2c11 Add Version#detected_from_url? 2012-08-18 11:12:09 -05:00
Jack Nagel 4affbabfb7 Replace version strings with Version objects 2012-08-18 11:12:08 -05:00
Jack Nagel 7cfc6beaef Further version test refactoring 2012-08-18 11:12:08 -05:00
Jack Nagel acd2866bbc Move version detection to Version class
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 11:12:07 -05:00
Jack Nagel 966f555e65 Initial version comparison implementation
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 11:12:07 -05:00
Jack Nagel 0da83e6158 Preliminary version test refactoring 2012-08-18 11:12:07 -05:00
Jack Nagel 35b0647697 Add Version class 2012-08-18 11:12:07 -05:00
Charlie Sharpsteen bfc71f788b node: Remove XCode dependency
Node builds just fine under CLT-only installs. Node will not build under any
non-XCode package that provides Apple compilers but lacks a full set of
development Frameworks such as the osx-gcc-compiler.

Fixes #14274.
2012-08-18 00:17:26 -07:00
Jack Nagel db358b49a3 Add Xcode 4.4.1 to standard compilers map
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 22:38:32 -05:00
Jack Nagel 4ce190f4f4 pan 0.139
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 22:18:43 -05:00
Jack Nagel 9f97971f1d enchant: only build aspell backend
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 22:18:15 -05:00
Jack Nagel 222a812da3 autogen 5.16.2
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 21:33:05 -05:00
Jack Nagel 596b4888a6 automake 1.12.3
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 21:30:22 -05:00
Jack Nagel 71fb990141 Remove executable bits from audit.rb and bottle.rb
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 21:09:12 -05:00
Max Howell da628ce106 avro-c conflicts with xz 2012-08-17 18:42:22 -04:00
Max Howell b681f1f8ed Fix syntax error, sorry about that.
Didn't test properly, it was a side-fix. Bad mxcl.
2012-08-17 18:00:33 -04:00
Max Howell 547ca0a8d1 Stop warning about CLT w/o Xcode
Also made the latest_versions checks smarter. Hopefully correct too.
2012-08-17 17:18:17 -04:00
Max Howell cac059e185 Forgot to remove install_homebrew.rb
It's now in the go branch.
2012-08-17 17:10:59 -04:00
Adam Vandenberg ea955e6217 Use new :xcode dependency
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 15:37:41 -05:00
Adam Vandenberg f334344b1b Add special :xcode dependency
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 15:35:54 -05:00
Misty De Meo f554497dc0 exempt: style nits
A few style changes to bring it in line with current style:

* Moved homepage above url
* Use sha1 instead of md5
2012-08-17 14:10:41 -05:00
Misty De Meo 56c8975013 gource: fix compilation with boost 1.50.0
Fixes #14246.
2012-08-17 14:05:58 -05:00
Lars Holm Nielsen 4ad8598ae9 New formula: exempi
Closes #10692.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>

Note: Removed test since `exempi -h` doesn't exit 0
2012-08-17 14:05:58 -05:00
Jack Nagel 1583f42b03 class-dump: fix audit warning
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 13:44:34 -05:00
Jack Nagel b673f90583 Increment copyright year in LICENSE
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 13:38:26 -05:00
Chris Koenig c6cdcb1863 gst-plugins-good: add optional libsoup dependency
Required for Gstreamer plugins souphttpsrc and souphttpclientsink.

Closes #14240.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 13:34:01 -05:00
Chris Koenig 280cfc39c0 New formula: libsoup
Intended to be an optional dependency of gst-plugins-good.

Closes #14240.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 13:34:01 -05:00
Chris Koenig ea5f75d29f New formula: glib-networking
Intended to be used by libsoup, coming in a later commit.

Closes #14240.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 13:34:01 -05:00
Chris Koenig f183c46e8d New formula: gsettings-desktop-schemas
Intended to be used by glib-networking, coming in a later commit.

Closes #14240.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 13:34:00 -05:00
Jack Nagel 682e199122 gnutls: depend on p11-kit
This enables compilation of other software that depends on this
functionality.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 13:33:32 -05:00
Jack Nagel 02bbfa4af2 p11-kit 0.13
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 13:13:53 -05:00
Sebastian Sdorra fb0cfbd455 subversion 1.7.6
Closes #14250.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 12:31:06 -05:00