mxcl/homebrew — Issue #8860: Dia 0.97.1 formula failed on Mac OS X 10.5.8
Author: migane
Created: 2011-11-29 04:23:23+00:00
State: open

The formula failed on Leopard at the end due to isspecial in objects/GRAFCET/boolequation.c already defined elsewhere in the system.

New formula to make it build:
...
def install
system "./configure", "--prefix=#{prefix}"
inreplace 'objects/GRAFCET/boolequation.c', 'isspecial', 'char_isspecial'
system "make install"
...

See MacPorts updated 4 months ago with the same replacement (https://trac.macports.org/browser/trunk/dports/gnome/dia/Portfile)

Compiled on 10.5.8 Intel