mxcl/homebrew — Issue #10467: bug - HEAD getting propogated into #{.include}
Author: 2bits
Created: 2012-02-25 12:11:13+00:00
State: open

I found what might unexpected behavior when I compile a formula using --HEAD. I need the include path for openjpeg. So I use Formula.factory to get it. The problem is that when I brew my formula as HEAD, I don't get the right versioned path to the include. I get a path with HEAD in it, and that doesn't exist.

depends_on 'openjpeg'

def install
j2k = Formula.factory('openjpeg')
puts "The variable is #{j2k.include}"
end

The variable is /usr/local/Cellar/openjpeg/HEAD/include
The variable is /usr/local/Cellar/openjpeg/1.5.0/include

Not only that, but the include is actually `/usr/local/Cellar/openjpeg/1.5.0/include/openjpeg-1.5`, but I that's probably my fault.