Currently sci-libs/gdal-1.5.2 has a generic jpeg2k use flag. However, it supports multiple jpeg2k libraries as seen on http://www.gdal.org/formats_list.html. The attached ebuild modifies the use flags to contain more specific dependencies. More specifically, no longer does the jpeg2k useflag indicate that jasper is required. It is instead removed in favor of introducing a jasper and ecw useflags that require media-libs/jasper and sci-libs/libecwj2 respectively. Reproducible: Always Steps to Reproduce:
Created attachment 166857 [details] New sci-libs/gdal-1.5.2 ebuild
[It's generally more useful to post a diff (a patch to the ebuild) instead of a full ebuild.]
This bug depends on resolving a header collision with lcms. I've added sci-libs/libecwj2 as an optional lib (jasper preferred) to the 1.5.3 ebuild I'm working on, which in theory should not cause any problems (however, to use the ecwj2 lib, you'll have to un-install lcms, then rebuild anything built with the lcms USE flag, and finally get rid of xulrunner). As long as this doesn't cause any trouble for anyone not interested in libecwj2, then the new ebuild can remain as-is, and we can re-visit this when the blocking bug is resolved.
Current gdal 1.8 is fixed so reclosing this bug with proper resolution.