From 8a56f578942842b0bce046e176d226809fa0e03f Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Thu, 25 Oct 2012 02:56:11 +0000 Subject: QA: fix handling of ssl/gnutls USE flags that were completely broken. (Portage version: 2.2.0_alpha141/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342) --- dev-libs/ucommon/ChangeLog | 6 +++++- dev-libs/ucommon/metadata.xml | 1 - dev-libs/ucommon/ucommon-5.2.2-r3.ebuild | 26 +++++++++----------------- 3 files changed, 14 insertions(+), 19 deletions(-) (limited to 'dev-libs/ucommon') diff --git a/dev-libs/ucommon/ChangeLog b/dev-libs/ucommon/ChangeLog index e7a11080ae59..34cb458bd97c 100644 --- a/dev-libs/ucommon/ChangeLog +++ b/dev-libs/ucommon/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-libs/ucommon # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/ucommon/ChangeLog,v 1.10 2012/10/22 16:44:30 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/ucommon/ChangeLog,v 1.11 2012/10/25 02:56:11 flameeyes Exp $ + + 25 Oct 2012; Diego E. Pettenò metadata.xml, + ucommon-5.2.2-r3.ebuild: + QA: fix handling of ssl/gnutls USE flags that were completely broken. 22 Oct 2012; Agostino Sarubbo ucommon-5.2.2-r3.ebuild: Stable for AMD64, wrt bug #438284 diff --git a/dev-libs/ucommon/metadata.xml b/dev-libs/ucommon/metadata.xml index 2d0158f62f39..2b98dd2884d8 100644 --- a/dev-libs/ucommon/metadata.xml +++ b/dev-libs/ucommon/metadata.xml @@ -12,6 +12,5 @@ Build with socks proxy support - Build with openssl as crypt library diff --git a/dev-libs/ucommon/ucommon-5.2.2-r3.ebuild b/dev-libs/ucommon/ucommon-5.2.2-r3.ebuild index e394750c5b38..074b1996d391 100644 --- a/dev-libs/ucommon/ucommon-5.2.2-r3.ebuild +++ b/dev-libs/ucommon/ucommon-5.2.2-r3.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/ucommon/ucommon-5.2.2-r3.ebuild,v 1.5 2012/10/22 16:44:30 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/ucommon/ucommon-5.2.2-r3.ebuild,v 1.6 2012/10/25 02:56:11 flameeyes Exp $ EAPI="4" -inherit autotools-utils +inherit autotools-utils eutils DESCRIPTION="Portable C++ runtime for threads and sockets" HOMEPAGE="http://www.gnu.org/software/commoncpp" @@ -15,8 +15,10 @@ SLOT="0" KEYWORDS="amd64 ppc ppc64 ~x86 ~amd64-linux" IUSE="doc static-libs socks +cxx debug ssl gnutls" -RDEPEND="ssl? ( dev-libs/openssl ) - gnutls? ( net-libs/gnutls )" +RDEPEND="ssl? ( + !gnutls? ( dev-libs/openssl ) + gnutls? ( net-libs/gnutls ) + )" DEPEND="virtual/pkgconfig doc? ( app-doc/doxygen ) @@ -27,22 +29,12 @@ PATCHES=( "${FILESDIR}"/disable_rtf_gen_doxy.patch "${FILESDIR}/${P}-address.patch") AUTOTOOLS_IN_SOURCE_BUILD=1 -REQUIRED_USE="^^ ( ssl gnutls )" - src_configure() { local myconf="" - if ! use ssl && ! use gnutls; then - myconf=" --with-sslstack=nossl " - fi - if use ssl; then - myconf=" --with-sslstack=ssl " - ewarn "Using openssl for ssl stack" - fi - - if use gnutls; then - myconf=" --with-sslstack=gnu " - ewarn "Using gnutls for ssl stack" + myconf+=" --with-sslstack=$(usex gnutls gnu ssl) " + else + myconf+=" --with-sslstack=nossl "; fi local myeconfargs=( -- cgit v1.2.3-65-gdbad