source/com/itextpdf/text/pdf/security/OcspClientBouncyCastle.java:186: error: package org.bouncycastle.ocsp does not exist else if (status instanceof org.bouncycastle.ocsp.RevokedStatus) { The ebuild depends on >=dev-java/bcprov-1.49:0 but the dev-java/bcprov-1.52:0 I've got installed doesn't contain that class any more. So I'd say that dependency should be on dev-java/bcprov:1.49 instead, and that slot should be used for the classpath as well. Comparing the ebuild against the upstream pom.xml, I wonder whether we might be able to drop the dependency on bcmail. See https://github.com/itext/itextpdf/blob/iText_5_5_4/pom.xml#L257-L289 for the upstream list of dependencies. Also note that the latest release is 5.5.6 so you might want to work on a revision bump.
Created attachment 408610 [details, diff] Changes to the ebuild These changes made the package emerge successfully for me.
I tried with version 1.49 and it didn't work. So I put together a patch to comment out this org.bouncycastle.ocsp warning (it's a simple if else throw Exception) and compilation is going through now. commit ea03b145e75ff0ab44c9a8c526e64a41b2faf129 Author: Patrice Clement <monsieurp@gentoo.org> Date: Tue Aug 11 11:30:11 2015 +0000 dev-java/itext: Adjust classpath and remove unexisting class with a patch. Fixes bug 557114. Package-Manager: portage-2.2.18 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>