Allows for uw-imap c-client library to be installed instead of the entire uw-imap package. useful for packages such as mod_php which have imap support, but only require end application libraries. See Bug 15602 for more details (also includes CFLAGS fix from 19442)
Created attachment 11423 [details] The Ebuild
Created attachment 11424 [details, diff] Patch for Makefile Patch to only build the c-client library from uw-imap instead of the entire package.
One problem I see with this is that the uw-imap package duplicates all these files, so we really need a package such as mod_php to be able to build with either the c-client package OR uw-imap package installed. So, I'd suggest creating a virtual/c-client category and changing both this ebuild and the uw-imap ebuild to PROVIDE it. This package should also conflict with the uw-imap package. I'll attach a revised ebuild that has these changes and is made from the uw-imap-2002c version (instead of the 2002b version).
Created attachment 12486 [details] A slightly improved c-client ebuild This ebuild uses the us-imap-2002c1 source. It differs from the other ebuild in that it PROVIDEs virtual/c-client, it conflicts with net-mail/uw-imap, and it does not bother patching the Makefile to not build things like imapd (it just doesn't install them). I wasn't sure what to do about the EXTRACFLAGS and EXTRALDFLAGS settings in the previous c-client ebuild, but since the uw-imap-2002c ebuild doesn't set them, I opted to leave them out of my c-client ebuild.
Created attachment 12487 [details, diff] Corresponding uw-imap patch To round things out, the uw-imap ebuild would also need to PROVIDE the new virtual/c-client category, so this patch adds that and also adds a conflict with the c-client package. While I was at it, I also added a MY_PN var so that the imap filename isn't specified twice.
Perhaps this bug should be assigned to Preston A. Elder or Robin Johnson since they handled the uw-imap issues in bug 21565? Discussion issue: An alternative to my proposed creation of a new virtual would be to remove the c-client lib & header files from the uw-imap ebuild. That would probably be cleaner -- any opinions on the matter?
See bug #15602 for ongoing work.
In CVS.