You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-libs/libgadu/libgadu-1.11.0.ebuild

71 lines
1.4 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libgadu/libgadu-1.11.0.ebuild,v 1.9 2012/01/28 02:43:22 reavertm Exp $
EAPI="4"
MY_P="${P/_/-}"
inherit autotools-utils
DESCRIPTION="This library implements the client side of the Gadu-Gadu protocol"
HOMEPAGE="http://toxygen.net/libgadu/"
SRC_URI="http://toxygen.net/libgadu/files/${MY_P}.tar.gz"
# Bug 373215
RESTRICT="test"
LICENSE="LGPL-2.1"
KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos"
SLOT="0"
IUSE="doc gnutls ssl static-libs threads"
REQUIRED_USE="
gnutls? ( ssl )
"
COMMON_DEPEND="
sys-libs/zlib
ssl? (
gnutls? ( net-libs/gnutls )
!gnutls? ( >=dev-libs/openssl-0.9.6m )
)
"
DEPEND="${COMMON_DEPEND}
doc? ( app-doc/doxygen )
"
RDEPEND="${COMMON_DEPEND}
!=net-im/kadu-0.6.0.2
!=net-im/kadu-0.6.0.1
"
S="${WORKDIR}/${MY_P}"
AUTOTOOLS_IN_SOURCE_BUILD=1
DOCS=(AUTHORS ChangeLog NEWS README)
src_configure() {
local myeconfargs=(
$(use_with threads pthread)
)
if use ssl; then
myeconfargs+=(
$(use_with gnutls gnutls)
$(use_with !gnutls openssl)
)
else
myeconfargs+=(
--without-gnutls
--without-openssl
)
fi
autotools-utils_src_configure
}
src_install() {
use doc && HTML_DOCS=(docs/html/)
autotools-utils_src_install
}