--- gnutls-2.2.1.ebuild 2008-01-19 00:36:22.000000000 +0100 +++ gnutls-2.2.1.ebuild 2008-01-20 14:45:49.000000000 +0100 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/gnutls-2.2.1.ebuild,v 1.2 2008/01/18 23:08:15 alonbl Exp $ -inherit libtool autotools +inherit libtool autotools eutils DESCRIPTION="A TLS 1.0 and SSL 3.0 implementation for the GNU project" HOMEPAGE="http://www.gnutls.org/" @@ -21,7 +21,7 @@ nls? ( virtual/libintl ) guile? ( dev-scheme/guile ) zlib? ( >=sys-libs/zlib-1.1 ) - lzo? ( >=dev-libs/lzo-2 )" + !bindist? ( lzo? ( >=dev-libs/lzo-2 ) )" DEPEND="${RDEPEND} sys-devel/libtool doc? ( dev-util/gtk-doc ) @@ -34,8 +34,9 @@ die fi if use lzo && use bindist; then - eerror "lzo is not allowed in binary distribution of gnutls" - die + ewarn "lzo support was disabled for binary distribution of gnutls" + ewarn "due to licensing issues. See Bug 202381 for details." + epause 5 fi } @@ -46,6 +47,8 @@ } src_compile() { + local myconf + use bindist && myconf="--disable-lzo" || myconf="$(use_enable lzo)" econf \ --without-included-opencdk \ $(use_with zlib) \ @@ -53,7 +56,7 @@ $(use_enable nls) \ $(use_enable guile) \ $(use_enable doc gtk-doc) \ - || die + ${myconf} emake || die }