Hi David and thanks, I have a Homebrew formula already, been wanting to mention that. I've had it lying around for a while (the formula is for version 2.5.2), but I only pushed it to a git repo this morning. See https://github.com/liblouis/homebrew-liblouis. Your formula has a few more "depends_on", I'll make sure I incorporate those. I don't know about contributing upstream as they are not so keen on including niche stuff. We can always try. But the "brew tap" mechanism is also very elegant I think. I also have a formula for liblouisutdml by the way, but I haven't pushed it. Bert 2015-03-27 19:28 GMT+01:00 David Sweetman <david@xxxxxxxxxxxxxxxxx>: > It sounds like what you’re really after is a good and maintained Homebrew > formula. > > Building from source takes a lot of investigation and trial/error. This > issue isn’t unique to liblouis — building from source is complex. > > I’ve never created a Homebrew formula before, but it only took about an > hour to whip one up for liblouis. Caveat that there might be some gotchas > I’m not aware of. The reason this is a better solution is that homebrew > still installs from source, but manages the dependencies for you and once > the Formula documents the dependencies, it *should* just work for almost > everybody else, without requiring each person to go through the try > break > > fix > try loop. > > The formula works on my machine, let me know if works for you: > > brew install > https://gist.githubusercontent.com/sweetmandm/ed19af1b2672ba603d82/raw/fb13426ffd2ccb5d1139244b44e842a5d184c63b/liblouis.rb > > If this works I can contribute it upstream to homebrew. The formula is > just a ruby script so it should be easy to maintain. > > Also I looked into liblouisutdml but the behavior wasn’t straightforward > if the user doesn’t have java installed. It breaks on ‘jni.h’ even if you > specify --disable-java-bindings to configure, so that requires more > research. > > Is anybody aware of a way to compile liblouisutdml without requiring > jni.h? If not I’d have to add that check to the formula and document > exactly how to install java. >