Mike McQuaid
b072da141f
audit: don't complain about bottle versions.
...
`brew bottle` already complains and this is a niche case.
References Homebrew/homebrew#21374 .
2013-07-28 16:26:16 -07:00
Adam Vandenberg
9608c2bfae
audit: add TODO
2013-07-23 10:51:07 -07:00
Jack Nagel
387200cea5
audit: use !~ instead of "not ... =~"
2013-07-23 11:22:16 -05:00
Jack Nagel
be984215c9
audit: fix dep name escaping
2013-07-23 11:22:15 -05:00
Jack Nagel
a3863394c0
audit: escape dep before regexp interpolation
2013-07-22 22:53:43 -05:00
Jack Nagel
3afa9c2ceb
audit: fix indentation
2013-07-22 22:53:22 -05:00
Jack Nagel
dd9b317e24
audit: fix broken condition
2013-07-22 22:53:11 -05:00
Mike McQuaid
f3821364a7
Warn more about failing bottle version detection.
...
This is needed for local bottle installation and also possible when
detecting bottle versions from URLs.
2013-07-18 09:56:55 -07:00
Adam Vandenberg
ebcf8be789
audit: skip an audit for mongodb
2013-07-17 06:58:11 -07:00
Adam Vandenberg
456621bb54
audit: ARGV.find is a warning, .value is allowed
2013-07-17 06:58:10 -07:00
Jack Nagel
d9790309a6
Fix SYMROOT audit
2013-07-16 23:15:22 -05:00
Jack Nagel
86cf6f0329
More linewise audits
2013-07-16 21:39:46 -05:00
Jack Nagel
b4bb0bf1c0
Audit text linewise
2013-07-16 21:25:02 -05:00
Jack Nagel
a632994403
Audit conditional deps that can be made declarative
2013-07-16 21:24:54 -05:00
Jack Nagel
51023ef15b
Fix some false-positive build-time dep audits
2013-07-16 15:49:11 -05:00
Mike McQuaid
897607b3d7
audit: use FormulaCellarChecks module.
...
Perform post-installation checks if a formula is installed.
Added for brew test-bot to be able to fail on bad Cellar installation.
2013-07-16 13:29:37 -07:00
Samuel John
8f0a073bf6
Audit LanguageModuleDependency for python
...
LanguageModuleDependency.new(:python,...) is deprecated now.
Replace it by
depends_on :python => ['module' => 'name-on-PyPi']
2013-07-16 11:10:14 +02:00
Adam Vandenberg
aba88a8502
audit: improve comment
2013-07-12 23:00:08 -07:00
Adam Vandenberg
34ae063c67
audit: remove github warning
...
All core formulae have been migrated to .io addresses except
for software maintained by github itself.
2013-07-12 21:26:55 -07:00
Adam Vandenberg
37e64a2402
github doesn't use .io urls
2013-07-09 20:50:30 -07:00
Adam Vandenberg
527f80b83d
audit more template comments
2013-07-05 12:05:29 -07:00
Adam Vandenberg
d9487a96ea
Add audit for leading 'v' in version numbers
2013-07-04 08:49:10 -07:00
Adam Vandenberg
7e54d013e7
audit default template comments
2013-07-03 09:20:41 -07:00
Adam Vandenberg
fbe03d2cc1
audit sourceforge URLs even harder
2013-06-30 12:17:47 -07:00
Jack Nagel
dbe04be448
Don't attempt to audit md5 checksums, but complain if they are used
2013-06-29 15:36:44 -05:00
Jack Nagel
033ef09518
Detect versions in tag specs
...
Closes Homebrew/homebrew#18300 .
Closes Homebrew/homebrew#20891 .
2013-06-28 21:17:23 -05:00
Jack Nagel
0f2c5f33a2
Add an exception for imagemagick in build-time dep audit
2013-06-27 21:17:28 -05:00
Jack Nagel
919aac0b89
Add syntax sugar for MPIDependency
...
Closes Homebrew/homebrew#20797 .
2013-06-26 22:18:13 -05:00
Jack Nagel
a89c501486
audit: don't try to audit missing deps
...
Refs Homebrew/homebrew#20829 .
2013-06-26 18:09:12 -05:00
Adam Vandenberg
41352cf1a8
Update audit for Fortran dependency
2013-06-24 07:38:25 -07:00
Jack Nagel
8b9a3a560f
Separate formula conflicts from requirements
...
Closes Homebrew/homebrew#20357 .
2013-06-09 13:45:25 -05:00
Samuel John
031a0ae54e
Improved audit of python stuff
2013-06-07 17:58:55 +02:00
Jack Nagel
816531e28d
Remove postgresql and mysql audit noise
...
Closes Homebrew/homebrew#20159 .
2013-06-04 11:15:31 -05:00
Samuel John
c524895666
Python 2.x and 3.x support
...
New `depends_on :python` Dependency.
New `depends_on :python3` Dependency.
To avoid having multiple formulae with endings -py2 and -py3,
we will handle support for different pythons (2.x vs. 3.x)
in the same formula.
Further brewed vs. external python will be transparently supported.
The formula also gets a new object `python`, which is false if
no Python is available or the user has disabled it. Otherwise
it is defined and provides several support methods:
python.site_packages # the site-packages in the formula's Cellar
python.global_site_packages
python.binary # the full path to the python binary
python.prefix
python.version
python.version.major
python.version.minor
python.xy # => e.g. "python2.7"
python.incdir # includes of python
python.libdir # the python dylib library
python.pkg_config_path # used internally by brew
python.from_osx?
python.framework?
python.universal?
python.pypy?
python.standard_caveats # Text to set PYTHONPATH for python.from_osx?
python.if3then3 # => "" for 2.x and to "3" for 3.x.
Further, to avoid code duplication, `python` takes an optional
block that is run twice if the formula defines depends_on
:python AND :python3.
python do
system python, 'setup.py', "--prefix=#{prefix}"
end
Read more in the Homebrew wiki.
2013-06-03 17:29:43 +02:00
Adam Vandenberg
903c340664
Audit url/devel/head for redundant :using
2013-05-27 22:25:34 -07:00
Jack Nagel
1a7ea33ba5
audit: drop redundant 'each' after 'grep'
2013-05-27 18:31:18 -05:00
Jack Nagel
132e6a3a8e
audit: fix version audit for Version subclasses
...
The version isn't redundant if a subclass of Version is specified.
2013-05-14 20:17:00 -05:00
Jack Nagel
66489b70d7
audit: only generate aliases list once
2013-05-07 18:40:14 -05:00
Jack Nagel
fedf9ddae3
audit: only set up the build environment once
2013-05-07 18:39:45 -05:00
Jack Nagel
62db042277
audit: fix interpolation check
...
Fixes Homebrew/homebrew#19363 .
2013-04-26 19:18:13 -05:00
Jack Nagel
8a74e648e7
audit: warn about top-level methods
2013-04-22 15:19:03 -05:00
Jack Nagel
8bd619e03b
audit: clean up some regexps
2013-04-06 22:12:21 -05:00
Jack Nagel
4a8653ba7d
audit: check build-time deps programmatically
2013-04-06 22:11:02 -05:00
Jack Nagel
d6b5e4f2ed
audit: rescue only FormulaUnavailableError
2013-04-06 22:10:43 -05:00
Jack Nagel
7f55a6089e
audit: clean up URL audits
2013-04-06 22:10:33 -05:00
Jaime Marquínez Ferrándiz
254f3b2c3c
brew audit: find *.github.com pages
...
And suggest changing them to *.github.io
Closes Homebrew/homebrew#19012 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-06 13:12:53 -07:00
Jack Nagel
e0d6ee863f
Make some groups non-capturing
2013-04-05 22:00:36 -05:00
Jack Nagel
62a0b3f18d
Use #grep where it will suffice
2013-04-05 22:00:36 -05:00
Jack Nagel
ad5b128fc7
audit: fix check for depending on requirement classes
...
Don't complain if it's instantiating the class so that it can pass
arguments.
Fixes Homebrew/homebrew#18883 .
2013-04-01 11:35:56 -05:00
Adam Vandenberg
dd112ef579
audit: don't complain about postgis using postgresql
2013-03-28 13:10:41 -07:00