294 Commits

Author SHA1 Message Date
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
Adam Vandenberg
ccd69e45d4 audit github downloads
We want the new-style "/archive/" downloads.
2013-03-15 15:41:22 -07:00
Tobias Lidskog
5f6515baad audit: Improve url audits.
* Add url check for GitHub home pages using http.
* Add url check for GitHub repo urls using http.
* Include url in error messages about url issues.

Closes Homebrew/homebrew#18372.
2013-03-15 15:41:22 -07:00
Tobias Lidskog
06f98132d3 audit: allow ARGV.find
This fixes a false positive for mongodb.

Closes Homebrew/homebrew#18370.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-10 12:13:50 -07:00
Tobias Lidskog
23575f3c7f audit: correct inverted has_trailing_newline condition
has_trailing_newline? checked if formula did not have a trailing
newline. Invert regex and invert audit check.

Closes Homebrew/homebrew#18359.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-09 14:42:51 -06:00
Jack Nagel
20328d763e audit: don't complain about versioned automake depending on autoconf 2013-02-21 16:47:35 -06:00
Jack Nagel
22a3ecff28 Silence warning about unescaped square brackets 2013-02-18 12:13:36 -06:00
Jack Nagel
1a799f04e6 Remove unused variables 2013-02-18 12:13:35 -06:00
Jack Nagel
f172d3a6eb Don't use deprecated form of attr
The form "attr :name, true" is deprecated and causes Ruby to emit a
warning in verbose mode. Using attr_{reader,writer,accessor} is more
clear anyway, so do so.
2013-02-18 12:13:34 -06:00
Jack Nagel
603bcb6cc8 audit: allow alpha.gnu.org URLs 2013-02-07 15:34:13 -06:00
Jack Nagel
3c7837e5a9 audit: check for missing xz build-time dep
Closes Homebrew/homebrew#17565.
2013-02-03 14:57:33 -06:00
Jack Nagel
66d91ac0e4 audit: mark intltool as a build-time dep 2013-02-03 14:48:02 -06:00
Jack Nagel
3957a35c33 audit: inspect dep name, not dep object 2013-02-02 01:00:46 -06:00
Jack Nagel
64eba71cb2 audit: wrap patches in ENV.with_build_environment block 2013-02-01 14:27:34 -06:00
Mike McQuaid
9ba9e749b8 Remove MD5 support.
Closes Homebrew/homebrew#17317.
2013-01-30 22:36:12 -08:00
Adam Vandenberg
68d312c46f audit: hint about depends_on Class 2013-01-27 14:54:48 -08:00
Jack Nagel
2534c1d45e audit: warn about nonexistent options passed to deps 2013-01-26 12:14:51 -06:00
Adam Vandenberg
4bcdb8aeb3 audit: remove silly audit, remove duplicate audit 2013-01-04 09:30:57 -08:00
Adam Vandenberg
a0d53f7bc1 audit: check conflict names 2013-01-03 11:22:31 -08:00
Adam Vandenberg
b25740d61c audit: loosen ARGV check 2012-10-21 13:24:00 -07:00
Max Howell
24b4d445cf Provide more information about bad sf urls 2012-09-18 16:27:35 -04:00
Adam Vandenberg
e4d6de0abc Add skip_clean :all to audit 2012-09-13 07:14:45 -07:00
Jack Nagel
95acaeb98f Audit check for old MacOS version methods
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-10 16:40:13 -05:00
Jack Nagel
192e6e052c audit: allow some forms of gist patches
The problem is not the raw URLs, but URLs that do not contain the commit
hash corresponding to a particular version of the gist.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-06 20:47:05 -05:00
Adam Vandenberg
fabc7eb992 audit: swig is a build time dep 2012-09-05 21:12:08 -07:00
Jack Nagel
35a99c240a Audit check for MACOS_VERSION
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-04 18:18:14 -05:00
Adam Vandenberg
f589644aa4 Exempt automake from some audits 2012-09-04 10:43:48 -07:00
Adam Vandenberg
26f887d4ab add audit for ENV.x11 2012-09-03 19:49:33 -07:00