Here is an ebuild for poppler-0.4.2. Changelog says: - Fix a rotation bug. - Fix freetype pkg-config check - Default to built-in decompression. I've added and modified some deps and configure options to make the ebuild behavior a bit more deterministic (imho, too much things are left to ./configure autodetection in the current ebuild, which make it hard to track the real deps of the package). This is more a bunch of suggestions, feel free to enforce what you think should not be optionnal, etc.: - added a cairo USE flag and optionnal dep (sure, that should wait it's unmasked). I would suggest that "cairo" becomes a global flag btw, 'cause it would be the fifth package to have it localy. - added jpeg USE flag and optionnal dep (maybe that could be forced on, everybody loves jpeg) - added zlib USE flag and optionnal dep (this is to override the internal code. Maybe it could be forced off, since that's upstream defaults) - gtk+ dep is >=2.4 because of some glib API functions - added --enable/--disable option for gtk+ (to make the USE flag actually work) - moved dev-util/pkgconfig from RDEPEND to DEPEND - removed t1lib dep (dead code only, and the lib is never linked) - made explicit that qt4 wrappers won't be built (it should imho wait that the lib is keyworded, get its official USE flag, etc., so i think it's better to not link against it at all, even for the braves who already have it installed) - added --enable-opi, without a USE flag (the option to disable it will disappear in next version anyway) One thing i was not sure about is the rdep on ghostscript. Are these fonts still really required now that poppler uses fontconfig et al.? Thanks, TGL.
Created attachment 67798 [details, diff] poppler-0.4.1_to_0.4.2.patch Changes beetween 0.4.1 and this ebuild.
Created attachment 67799 [details] poppler-0.4.2.ebuild
is there any hope to see this in portage? I've got a few PDFs that poppler 0.4.1 can't display (the rotation bug, I suppose) while 0.4.2 has no problems, and the work on dependencies is remarkable
I've added 0.4.2. I had to take out the cairo use flag and dep, because cairo is masked, so I can't depend on it until it comes out of mask. In addition, I've disabled the cairo backend by default, per bug #104830. If people care enough, I can re-enable it, but I think correct operation is more important than whiz-bang new features. As soon as cairo is out of package.mask, I'll put the use flag back and revbump.