blob: 394c983e26b154029501eeb2162c2b5494819d27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
GCONF_DEBUG="yes"
PYTHON_COMPAT=( python3_{4,5,6} )
inherit gnome.org gnome2-utils meson python-r1
DESCRIPTION="GObject to SQLite object mapper library"
HOMEPAGE="https://wiki.gnome.org/Projects/Gom"
LICENSE="LGPL-2+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="doc +introspection test"
RDEPEND="
>=dev-db/sqlite-3.7:3
>=dev-libs/glib-2.36:2
introspection? ( >=dev-libs/gobject-introspection-1.30.0:= )
${PYTHON_DEPS}
>=dev-python/pygobject-3.16:3[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}
doc? ( dev-util/gtk-doc )
>=dev-util/intltool-0.40.0
sys-devel/gettext
virtual/pkgconfig
test? ( x11-libs/gdk-pixbuf:2 )
"
# TODO: make gdk-pixbuf properly optional with USE=test
pkg_setup() {
python_setup
}
src_prepare() {
default
python_copy_sources
}
src_configure() {
local emesonargs=(
$(meson_use introspection enable-introspection)
$(meson_use doc enable-gtk-doc)
)
# FIXME: is this needed???
meson_src_configure
python_foreach_impl run_in_build_dir \
meson_src_configure
}
src_install() {
meson_src_install
docinto examples
dodoc examples/*.py
python_foreach_impl run_in_build_dir \
meson_src_install DESTDIR="${D}"
}
src_test() {
# tests may take a long time
python_foreach_impl run_in_build_dir \
meson_src_test
}
|