1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 GNOME2_EAUTORECONF="yes"
8 DESCRIPTION="An integrated VNC server for GNOME"
9 HOMEPAGE="https://wiki.gnome.org/Projects/Vino"
10 SRC_URI+=" https://dev.gentoo.org/~leio/distfiles/${P}-patchset.tar.xz"
14 KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc x86"
15 IUSE="crypt debug gnome-keyring ipv6 jpeg ssl +telepathy zeroconf +zlib"
16 # bug #394611; tight encoding requires zlib encoding
17 REQUIRED_USE="jpeg? ( zlib )"
19 # cairo used in vino-fb
20 # libSM and libICE used in eggsmclient-xsmp
22 >=dev-libs/glib-2.26:2
23 >=dev-libs/libgcrypt-1.1.90:0=
36 >=x11-libs/libnotify-0.7.0:=
38 crypt? ( >=dev-libs/libgcrypt-1.1.90:0= )
39 gnome-keyring? ( app-crypt/libsecret )
40 jpeg? ( virtual/jpeg:0= )
41 ssl? ( >=net-libs/gnutls-2.2.0:= )
44 >=net-libs/telepathy-glib-0.18 )
45 zeroconf? ( >=net-dns/avahi-0.6:=[dbus] )
46 zlib? ( sys-libs/zlib:= )
51 >=dev-util/intltool-0.50
52 gnome-base/gnome-common
55 # libsecret is always required at build time per bug 322763
56 # eautoreconf needs gnome-common
59 "${WORKDIR}"/patches/ # Patches from master branch at 2020-02-15 state; needs autoreconf
60 "${FILESDIR}"/CVE-2014-6053.patch
61 "${FILESDIR}"/CVE-2018-7225.patch
62 "${FILESDIR}"/CVE-2019-15681.patch
66 gnome2_src_configure \
68 $(use_with crypt gcrypt) \
69 $(usex debug --enable-debug=yes ' ') \
70 $(use_with gnome-keyring secret) \
72 $(use_with ssl gnutls) \
73 $(use_with telepathy) \
74 $(use_with zeroconf avahi) \
76 --with-systemduserunitdir="$(systemd_get_userunitdir)"