Commit graph

15 commits

Author SHA1 Message Date
Jack Nagel
ec11577107 Switch compilers when no build is specified
Given the current state of OS X compilers, the original fails_with
behavior is becoming less useful, mostly resulting in build failures
each time the compiler is updated. So make the following changes:

When a build is specified, we retain the old behavior: switch compilers
if the available compiler is <= the build, don't switch if it is > the
build.

When no build is specified, unconditionally switch compilers, and don't
output the advice message. This allows us to mark formulae as
perpetually failing, avoiding the need to update formulae each time a
new compiler build is made available.

As a bonus, this makes the logic much easier to reason about.

Closes Homebrew/homebrew#18175.
2013-03-12 13:55:15 -05:00
Adam Vandenberg
db348827dc libagg still fails with clang 425
Closes Homebrew/homebrew#17798.
2013-02-12 09:01:54 -08:00
Jack Nagel
da2cb78574 libagg: use optional dep 2013-02-02 19:21:27 -06:00
Jack Nagel
e16d348002 libagg: make libtool dep consistent
Should fix Homebrew/homebrew#16225.
2012-12-22 17:28:30 -06:00
Jack Nagel
47d569b8e1 Tagging symbol deps as optional is undefined
The current code does not support this behavior, and the X11Dependency
will choke if symbols are passed in the tag field.

Future work will enable this.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-13 23:16:51 -05:00
Jack Nagel
53473b6bf5 Clean up MacOS version method usage
The MacOS.version? family of methods (other than "leopard?") are poorly
defined and lead to confusing code. Replace them in formulae with more
explicit comparisons.

"MacOS.version" is a special version object that can be compared to
numerics, symbols, and strings using the standard Ruby comparison
methods.

The old methods were moved to compat when the version comparison code
was merged, and they must remain there "forever", but they should not be
used in new code.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-10 16:16:54 -05:00
Mike McQuaid
9f59a1f617 libagg: fix SHA1 and X11 dependency. 2012-09-04 19:44:41 -07:00
Mike McQuaid
88779ade49 Batch convert MD5 formula to SHA1.
Closes Homebrew/homebrew#14653.
2012-09-03 11:36:42 -07:00
Max Howell
7925add543 libagg still fails with clang (prolly always will)
Clang is unlikely to ever support this kind of thing, it's bad code!

In this case really we could use a way to provide a diff of the lines that break the compile and say that it fails with clang while this bad code is in the sources.

Closes Homebrew/homebrew#14573.
2012-09-01 00:33:09 -04:00
Adam Vandenberg
62fa0c4f42 Use autotools symbols 2012-07-10 08:56:02 -07:00
Jack Nagel
d6e8244287 Update formulae for XQuartz compatibility 2012-07-01 12:41:00 -05:00
Thomas Goyne
3e5db5b842 libagg: Fix compilation errors
Remove AM_C_PROTOTYPES from configure.in, which was dropped in automake
1.12 as pre-ANSI C compilers are no longer worth caring about.

Add fails_with clang. AGG tries to return a const reference as a
non-const reference, which is allowed by gcc and llvm but not clang 3.1.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-07 20:58:49 -07:00
Jack Nagel
52270920c6 Add more autoconf deps where appropriate
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-15 16:38:16 -05:00
Max Howell
cc42975f81 depends_on "automake" where necessary
Had to remove full paths, since we have two options for location now.
2012-02-27 04:05:43 +00:00
Charlie Sharpsteen
aea781bab8 Anti-Grain Geometry library
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-13 12:26:17 -07:00