dev-libs/m17n-lib-1.6.3 was built with the following: USE="-X -gd" # ldd /usr/lib/m17n/1.0/libmimx-anthy.so ... libanthy.so.0 => /usr/lib/libanthy.so.0 (0xf776a000) libanthydic.so.0 => /usr/lib/libanthydic.so.0 (0xf7490000) As a side node, it would also be nice to have USE=static-libs.
Created attachment 313311 [details, diff] m17n-lib-1.6.3.ebuild.patch
Created attachment 313313 [details, diff] m17n-lib-1.6.3.ebuild.patch m17n-lib's code has fine #ifdef HAVE_FOO .. #endif, however most of them lack --with-foo options. This patch add such options to pump dependencies. Maybe some of these flags can be dropped and force its dependencies.
I tested the patches with all USE flags disabled. libmimx-anthy.so is still built, but it doesn't link against anthy: # ldd /usr/lib/m17n/1.0/libmimx-anthy.so linux-gate.so.1 => (0xf77da000) libc.so.6 => /lib/libc.so.6 (0xf7660000) /lib/ld-linux.so.2 (0xf77db000)
Created attachment 314973 [details] dev-libs:m17n-lib-1.6.3-r1:20120611-115550.log
(In reply to comment #3) > I tested the patches with all USE flags disabled. libmimx-anthy.so is still > built, but it doesn't link against anthy: > > # ldd /usr/lib/m17n/1.0/libmimx-anthy.so > linux-gate.so.1 => (0xf77da000) > libc.so.6 => /lib/libc.so.6 (0xf7660000) > /lib/ld-linux.so.2 (0xf77db000) This is expected result. example/mimx-anthy.c has #ifdef HAVE_ANTHY ... #else ... #endif. If HAVE_ANTHY not defined, the functions in the libraries are replaced with just "return NULL;" code.
Patch added to the tree.
There is a typo in the ebuild: "--without-friidi", although it doesn't seem to influence anything with USE=-X.
(In reply to comment #7) > There is a typo in the ebuild: "--without-friidi", although it doesn't seem > to influence anything with USE=-X. Fixed.