@proxy-maint: fix your metadata which is in the wrong order, please. This ebuild is using the gnutls flag in a non-standard way. The usual way this is handled is: ssl? ( !gnutls? ( openssl ) gnutls? ( gnutls ) ) but in this case you got openssl and gnutls USE flag, and there is no description on why this should be special. So please fix this.
So I guess you are suggesting to rename openssl to ssl and migrate to EAPI5 to use REQUIRED_USE correct?
It's already using REQUIRED_USE (incorrectly). My suggestion is to rename openssl to ssl, drop the REQUIRED_USE, if ssl is optional, and if it's not, drop the openssl USE flag entirely, and if gnutls is not enabled, default to openssl.
(In which case the only conditions you'd get would be !gnutls and gnutls).
Ok thanks for the feedback
Created attachment 333240 [details] openconnect-4.07-r3.ebuild -Rearranged use flags to use ssl and a check on gnutls. -Added support for conditionally building and installing docs.
Created attachment 333242 [details] metadata.xml
Almost but not yet. As I said, if it's not optional to have at least one of OpenSSL or GnuTLS (which seems to me to be the case), you should drop the ssl USE flag entirely and just rely on !gnutls to enable openssl support. This also means dropping the REQUIRED_USE whole.
(In reply to comment #6) > Created attachment 333242 [details] > metadata.xml ssl is a global use flags. I see no reason to re-describe it in metadata.xml
Created attachment 333302 [details] openconnect-4.07-r3.ebuild Removed required_use in favor of controlling ssl usage strictly through gnutls flag.
Created attachment 333304 [details] metadata.xml Removed ssl use flag description.
@proxy-maint: Please commit my latest ebuild if there are no longer any issues with it. Also remove 3.11 from the tree due to the security issue with it.
It's not possible to commit the new metadata.xml because it's required for existing ebuild. I will clean it up in the future
+*openconnect-4.07-r3 (04 Jan 2013) + + 04 Jan 2013; Markos Chandras <hwoarang@gentoo.org> + +openconnect-4.07-r3.ebuild: + rework gnutls, ssl use flags logic. Bug #448436. Thanks to Matthew Schultz + <mattsch@gmail.com> +