1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 VALA_USE_DEPEND="vapigen"
6 VALA_MIN_API_VERSION="0.32"
10 DESCRIPTION="Library providing a virtual terminal emulator widget"
11 HOMEPAGE="https://wiki.gnome.org/Apps/Terminal/VTE"
15 IUSE="+crypt debug glade +introspection vala vanilla"
16 KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
17 REQUIRED_USE="vala? ( introspection )"
19 SRC_URI="${SRC_URI} !vanilla? ( https://dev.gentoo.org/~eva/distfiles/${PN}/${P}-command-notify.patch.xz )"
22 >=dev-libs/glib-2.40:2
23 >=dev-libs/libpcre2-10.21
24 >=x11-libs/gtk+-3.16:3[introspection?]
25 >=x11-libs/pango-1.22.0
30 crypt? ( >=net-libs/gnutls-3.2.7:0= )
31 glade? ( >=dev-util/glade-3.9:3.10 )
32 introspection? ( >=dev-libs/gobject-introspection-0.9.0:= )
37 >=dev-util/gtk-doc-am-1.13
38 >=dev-util/intltool-0.35
42 vala? ( $(vala_depend) )
45 !x11-libs/vte:2.90[glade]
49 if ! use vanilla; then
50 # First half of http://pkgs.fedoraproject.org/cgit/rpms/vte291.git/tree/vte291-command-notify-scroll-speed.patch
51 # Adds OSC 777 support for desktop notifications in gnome-terminal or elsewhere
52 eapply "${WORKDIR}"/${P}-command-notify.patch
55 use vala && vala_src_prepare
57 # build fails because of -Werror with gcc-5.x
58 sed -e 's#-Werror=format=2#-Wformat=2#' -i configure || die "sed failed"
66 if [[ ${CHOST} == *-interix* ]]; then
67 myconf="${myconf} --disable-Bsymbolic"
69 # interix stropts.h is empty...
70 export ac_cv_header_stropts_h=no
73 # Python bindings are via gobject-introspection
74 # Ex: from gi.repository import Vte
75 gnome2_src_configure \
76 --disable-test-application \
80 $(use_enable glade glade-catalogue) \
81 $(use_with crypt gnutls) \
82 $(use_enable introspection) \
89 mv "${ED}"/etc/profile.d/vte{,-${SLOT}}.sh || die