1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools eutils flag-o-matic toolchain-funcs versionator
7 DESCRIPTION="A network programming library in C++"
8 HOMEPAGE="http://alumnit.ca/wiki/?WvStreams"
9 SRC_URI="https://wvstreams.googlecode.com/files/${P}.tar.gz"
13 KEYWORDS="alpha amd64 hppa ppc sparc x86"
14 IUSE="pam doc +ssl +dbus debug boost"
16 #Tests fail if openssl is not compiled with -DPURIFY. Gentoo's isn't. FAIL!
19 #QA Fail: xplc is compiled as a part of wvstreams.
20 #It'll take a larger patching effort to get it extracted, since upstream integrated it
21 #more tightly this time. Probably for the better since upstream xplc seems dead.
23 RDEPEND="sys-libs/readline:0=
25 dbus? ( >=sys-apps/dbus-1.4.20 )
26 <dev-libs/openssl-1.1:0=
30 doc? ( app-doc/doxygen )
31 boost? ( >=dev-libs/boost-1.34.1:= )"
33 DOCS="ChangeLog README*"
36 [[ ${MERGE_TYPE} == "binary" ]] && return
38 if ! use boost && ! version_is_at_least 4.1 "$(gcc-fullversion)"; then
39 eerror "This package requires the active gcc to be at least version 4.1"
40 eerror "or USE=boost must be installed."
41 die "Please activate >=sys-devel/gcc-4.1 with gcc-config."
47 "${FILESDIR}"/${P}-parallel-make.patch \
48 "${FILESDIR}"/${P}-openssl-1.0.0.patch \
49 "${FILESDIR}"/${P}-glibc212.patch \
50 "${FILESDIR}"/${P}-gcc47.patch \
51 "${FILESDIR}"/${P}-fix-c++14.patch
54 -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
55 -e 's:AM_PROG_CC_STDC:AC_PROG_CC:' \
56 argp/configure.ac || die
65 append-flags -fno-strict-aliasing
66 append-flags -fno-tree-dce -fno-optimize-sibling-calls #421375
70 use boost && export ac_cv_header_tr1_functional=no
73 --localstatedir=/var \
75 --disable-optimization \
101 #the list of files is too big for dohtml -r Docs/doxy-html/*