blob: a306568f23a4740eaa94630eab388c70e2a8b57b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# 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.5.0.ebuild,v 1.1 2012/11/26 18:05:54 maksbotan Exp $
EAPI="4"
AUTOTOOLS_AUTORECONF=1
inherit autotools-utils eutils
DESCRIPTION="Portable C++ runtime for threads and sockets"
HOMEPAGE="http://www.gnu.org/software/commoncpp"
SRC_URI="mirror://gnu/commoncpp/${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux"
IUSE="doc static-libs socks +cxx debug ssl gnutls"
RDEPEND="ssl? (
!gnutls? ( dev-libs/openssl )
gnutls? (
net-libs/gnutls
dev-libs/libgcrypt
)
)"
DEPEND="virtual/pkgconfig
doc? ( app-doc/doxygen )
${RDEPEND}"
DOCS=(README NEWS SUPPORT ChangeLog AUTHORS)
PATCHES=( "${FILESDIR}"/disable_rtf_gen_doxy.patch
"${FILESDIR}"/install_gcrypt.m4_file.patch
"${FILESDIR}"/gcrypt_autotools.patch )
#"${FILESDIR}/${P}-address.patch"
AUTOTOOLS_IN_SOURCE_BUILD=1
src_configure() {
local myconf=""
if use ssl; then
myconf+=" --with-sslstack=$(usex gnutls gnu ssl) "
else
myconf+=" --with-sslstack=nossl ";
fi
local myeconfargs=(
$(use_enable socks)
$(use_enable cxx stdcpp)
${myconf}
--enable-atomics
--with-pkg-config
)
autotools-utils_src_configure
}
src_compile() {
autotools-utils_src_compile
use doc && autotools-utils_src_compile doxy
}
src_install() {
autotools-utils_src_install
if use doc; then
dohtml doc/html/*
fi
}
|