Created attachment 428394 [details] Updated live ebuild for mail-client/trojita Recently, functionality for PGP-signed and encrypted message parts has been added to the development version of Trojità. This requires kde-apps/gpgmepp:5 and dev-libs/mimetic. In attachment, I provide an updated live ebuild, in which the use flag ‘crypto’ determines inclusion of this functionality. (‘crypto’ and not ‘pgp’ because S/MIME functionality building on the is in the pipeline; ‘gpg’ would be another option, as the S/MIME functionality also builds on gpgmepp, but that may not be generic enough to cover inclusion of mimetic.) I have emerged this ebuild successfully on amd64 and did a limited test of its functionality (looking at a pgp-signed message and getting the message that the signature could not be verified due to the key missing from my keychain).
Please post the diff.
Created attachment 428414 [details, diff] Diff of the patch that adds crypto support to the Trojità live ebuild Replaced full ebuild by diff and replaced (erroneously used) personal repository by the canonical one.
Created attachment 428458 [details, diff] add-crypto-trojita-ebuild.patch Erik, thanks a lot. I've updated your patch so that the ebuild now controls all flags which actually enable/enforce the availability of the required libs (I suspect that my cmake is terrible, but hey, that's what we have). I've also grouped the deps together because that's what I saw in other ebuilds, and changed the USE to default to on so that users have it as an opt-out, not as an opt-in.
@kensington, I suspect that this might require adding the ~x86 keyword to dev-libs/mimetic. Can you do that, please? I would also appreciate some review of the changes, I'm not that strong with ebuilds.
(In reply to Jan Kundrát from comment #4) > @kensington, I suspect that this might require adding the ~x86 keyword to > dev-libs/mimetic. Can you do that, please? Unfortunately I don't have x86 right now to test on. A keyword request can be filed to that team however. > I would also appreciate some review of the changes, I'm not that strong with > ebuilds. The changes look good, although I would personally sort the dependencies alphabetically.
Thanks, fixed in git. I switched 'crypto' to 'crypt' since the latter is already a global flag that seems to fit. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3c997001a1cefc5dd27de7df47d4640cb842b05