1 # Copyright 1999-2019 Gentoo Authors
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.
24 <dev-libs/openssl-1.1:0=
27 dbus? ( >=sys-apps/dbus-1.4.20 )
33 doc? ( app-doc/doxygen )
34 boost? ( >=dev-libs/boost-1.34.1:= )
36 DOCS="ChangeLog README*"
38 "${FILESDIR}"/${P}-autoconf.patch
39 "${FILESDIR}"/${P}-fix-c++14.patch
40 "${FILESDIR}"/${P}-gcc47.patch
41 "${FILESDIR}"/${P}-glibc212.patch
42 "${FILESDIR}"/${P}-openssl-1.0.0.patch
43 "${FILESDIR}"/${P}-parallel-make.patch
44 "${FILESDIR}"/${P}-_DEFAULT_SOURCE.patch
45 "${FILESDIR}"/${P}-2048-bytes-should-be-enough-right-question-mark.patch
55 append-flags -fno-strict-aliasing
56 append-flags -fno-tree-dce -fno-optimize-sibling-calls #421375
60 use boost && export ac_cv_header_tr1_functional=no
66 --cache-file="${T}"/config.cache \
67 --disable-optimization \
68 --localstatedir=/var \
92 #the list of files is too big for dohtml -r Docs/doxy-html/*
94 dodoc -r Docs/doxy-html/*