1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools flag-o-matic toolchain-funcs
7 DESCRIPTION="A network programming library in C++"
8 HOMEPAGE="https://github.com/apenwarr/wvstreams"
10 mirror://debian/pool/main/w/${PN}/${PN}_${PV/_p*}.orig.tar.gz
11 mirror://debian/pool/main/w/${PN}/${PN}_${PV/_p/-}.debian.tar.xz
16 KEYWORDS="~alpha amd64 hppa ppc sparc x86"
17 IUSE="boost +dbus debug doc libressl pam"
19 #Tests fail if openssl is not compiled with -DPURIFY. Gentoo's isn't. FAIL!
22 #QA Fail: xplc is compiled as a part of wvstreams.
23 #It'll take a larger patching effort to get it extracted, since upstream integrated it
24 #more tightly this time. Probably for the better since upstream xplc seems dead.
29 dbus? ( >=sys-apps/dbus-1.4.20 )
30 !libressl? ( >=dev-libs/openssl-1.1:0= )
31 libressl? ( dev-libs/libressl:0= )
37 doc? ( app-doc/doxygen )
38 boost? ( >=dev-libs/boost-1.34.1:= )
40 DOCS="ChangeLog README*"
42 "${FILESDIR}"/${PN}-4.6.1-autoconf.patch
43 "${FILESDIR}"/${PN}-4.6.1-gcc47.patch
44 "${FILESDIR}"/${PN}-4.6.1-parallel-make.patch
45 "${FILESDIR}"/${PN}-4.6.1-_DEFAULT_SOURCE.patch
52 eapply $(awk '{ print "'"${WORKDIR}"'/debian/patches/" $0; }' < "${WORKDIR}"/debian/patches/series)
53 eapply "${FILESDIR}"/${P}-libressl.patch # bug 687096
59 append-flags -fno-strict-aliasing
60 append-flags -fno-tree-dce -fno-optimize-sibling-calls #421375
64 use boost && export ac_cv_header_tr1_functional=no
70 --cache-file="${T}"/config.cache \
71 --disable-optimization \
72 --localstatedir=/var \
97 dodoc -r Docs/doxy-html/*