see Homebrew/homebrew-core#35539 (comment)
so the install script seems to no longer work because of this I think.
There's a workaround given here somewhere:
So before brew install --with-x11 cairo, the cairo.rb from /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cairo.rb should be changed back to the previous version, see Homebrew/homebrew-core@6c0eb26#diff-fc0bebeccf19d64035e754186795be64
The next-previois version of cario.rb can be found here: https://github.com/Homebrew/homebrew-core/blob/1fea60405bf98c6385dfba18c75a7fb667dc3a40/Formula/cairo.rb
here's the file for convinience:
cairo.rb.zip
then
brew reinstall --with-x11 cairo
see Homebrew/homebrew-core#35539 (comment)
so the install script seems to no longer work because of this I think.
There's a workaround given here somewhere:
here's the file for convinience:
cairo.rb.zip
then
brew reinstall --with-x11 cairo