Couchdb and dependency formulae
Signed-off-by: Max Howell <max@methylblue.com> I squashed a number of commits here, and also replaced the use of nspr.prefix with HOMEBREW_PREFIX as in theory we are flexible with our requirement for dependencies, although with the limited build system that SpiderMonkey possesses this is difficult for us to achieve anyway…
This commit is contained in:
parent
46ac04e410
commit
80a54dc5b2
@ -118,7 +118,7 @@ class Pathname
|
||||
|
||||
# eg. foobar-4.5.1-1
|
||||
# eg. ruby-1.9.1-p243
|
||||
/-((\d+\.)*\d\.\d+-p?\d+)$/.match stem
|
||||
/-((\d+\.)*\d\.\d+-(p|rc)?\d+)$/.match stem
|
||||
return $1 if $1
|
||||
|
||||
# eg. lame-398-1
|
||||
|
||||
@ -477,4 +477,9 @@ class BeerTasting <Test::Unit::TestCase
|
||||
assert_equal Formula.class_s('pkg-config'), 'PkgConfig'
|
||||
assert_equal Formula.class_s('foo_bar'), 'FooBar'
|
||||
end
|
||||
|
||||
def test_version_style_rc
|
||||
f=MockFormula.new 'http://ftp.mozilla.org/pub/mozilla.org/js/js-1.8.0-rc1.tar.gz'
|
||||
assert_equal '1.8.0-rc1', f.version
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user