1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7,8} )
8 inherit gnome.org meson python-r1
10 DESCRIPTION="GObject to SQLite object mapper library"
11 HOMEPAGE="https://wiki.gnome.org/Projects/Gom"
15 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
16 IUSE="gtk-doc +introspection python test"
17 RESTRICT="!test? ( test )"
18 REQUIRED_USE="python? ( introspection ${PYTHON_REQUIRED_USE} )"
22 >=dev-libs/glib-2.36:2
23 introspection? ( >=dev-libs/gobject-introspection-1.30.0:= )
24 python? ( ${PYTHON_DEPS}
25 >=dev-python/pygobject-3.16:3[${PYTHON_USEDEP}] )
28 gtk-doc? ( dev-util/gtk-doc
29 app-text/docbook-xml-dtd:4.3 )
31 test? ( x11-libs/gdk-pixbuf:2 )
36 sed -i -e '/subdir.*python/d' bindings/meson.build || die
37 # drop test building and deps if not enabled
39 sed -i -e '/gdkpixbuf_dep/d' meson.build || die
40 sed -i -e '/subdir(.*tests.*)/d' meson.build || die
46 $(meson_use introspection enable-introspection)
47 $(meson_use gtk-doc enable-gtk-doc)
60 python_foreach_impl python_domodule bindings/python/gi