1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_{6,7,8} )
6 VALA_MIN_API_VERSION="0.26"
7 VALA_USE_DEPEND="vapigen"
9 inherit gnome.org gnome2-utils meson python-single-r1 vala xdg
11 DESCRIPTION="A text editor for the GNOME desktop"
12 HOMEPAGE="https://wiki.gnome.org/Apps/Gedit"
14 LICENSE="GPL-2+ CC-BY-SA-3.0"
17 IUSE="+introspection +python gtk-doc spell vala"
18 REQUIRED_USE="python? ( introspection ${PYTHON_REQUIRED_USE} ) spell? ( python )"
20 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
22 # X libs are not needed for OSX (aqua)
24 >=dev-libs/glib-2.44:2
25 >=x11-libs/gtk+-3.22.0:3[introspection?]
26 >=x11-libs/gtksourceview-4.0.2:4[introspection?]
27 >=dev-libs/libpeas-1.14.1[gtk]
28 >=dev-libs/libxml2-2.5.0:2
29 >=net-libs/libsoup-2.60:2.4
32 spell? ( >=app-text/gspell-0.2.5:0= )
33 introspection? ( >=dev-libs/gobject-introspection-1.54:= )
36 $(python_gen_cond_dep '
37 dev-python/pycairo[${PYTHON_MULTI_USEDEP}]
38 >=dev-python/pygobject-3:3[cairo,${PYTHON_MULTI_USEDEP}]
39 dev-libs/libpeas[python,${PYTHON_SINGLE_USEDEP}]
44 x11-themes/adwaita-icon-theme
45 gnome-base/gsettings-desktop-schemas
50 app-text/docbook-xml-dtd:4.1.2
52 gtk-doc? ( >=dev-util/gtk-doc-1 )
54 >=sys-devel/gettext-0.18
58 "${FILESDIR}"/3.32.2-make-spell-optional.patch
62 use python && python-single-r1_pkg_setup
66 use vala && vala_src_prepare
72 $(meson_use introspection)
73 $(meson_use vala vapi)
74 $(meson_use python plugins)
75 $(meson_use gtk-doc documentation)
76 -Denable-gvfs-metadata=yes
82 # Only appdata and desktop file validation in v3.32.2
89 python_optimize "${ED}/usr/$(get_libdir)/gedit/plugins/"
100 gnome2_schemas_update