IUSE="+introspection libgda perl python"
# python-loader plugin is python2.7 only
-REQUIRED_USE="python? ( $(python_gen_useflags -2) )"
+REQUIRED_USE="
+ introspection? ( ${PYTHON_REQUIRED_USE} )
+ python? ( || ( $(python_gen_useflags -2) ) )"
# Missing gnome-extra/libgnomedb required version in tree
# but its upstream is dead and will be dropped soon.
>=x11-libs/gtk+-3.8.7:3
x11-libs/cairo:=[svg]
- introspection? ( >=dev-libs/gobject-introspection-1:= )
+ introspection? ( ${PYTHON_DEPS}
+ >=dev-libs/gobject-introspection-1:= )
perl? ( dev-lang/perl:= )
- python? ( ${PYTHON_DEPS}
+ python? ( $(python_gen_impl_dep '' -2)
>=dev-python/pygobject-3:3[${PYTHON_USEDEP}] )
libgda? ( gnome-extra/libgda:5[gtk] )
"
src_configure() {
if use python ; then
- python_setup 'python2*'
+ python_setup -2
fi
gnome2_src_configure \
--disable-static \
src_install() {
gnome2_src_install
- python_moduleinto gi.overrides
- python_foreach_impl python_domodule introspection/gi/overrides/Gnm.py
+ if use introspection; then
+ python_moduleinto gi.overrides
+ python_foreach_impl python_domodule introspection/gi/overrides/Gnm.py
+ fi
}
IUSE="+introspection libgda perl python"
# python-loader plugin is python2.7 only
-REQUIRED_USE="python? ( $(python_gen_useflags -2) )"
+REQUIRED_USE="
+ introspection? ( ${PYTHON_REQUIRED_USE} )
+ python? ( || ( $(python_gen_useflags -2) ) )"
# Missing gnome-extra/libgnomedb required version in tree
# but its upstream is dead and will be dropped soon.
>=x11-libs/gtk+-3.8.7:3
x11-libs/cairo:=[svg]
- introspection? ( >=dev-libs/gobject-introspection-1:= )
+ introspection? ( ${PYTHON_DEPS}
+ >=dev-libs/gobject-introspection-1:= )
perl? ( dev-lang/perl:= )
- python? ( ${PYTHON_DEPS}
+ python? ( $(python_gen_impl_dep '' -2)
>=dev-python/pygobject-3:3[${PYTHON_USEDEP}] )
libgda? ( gnome-extra/libgda:5[gtk] )
"
src_configure() {
if use python ; then
- python_setup 'python2*'
+ python_setup -2
fi
gnome2_src_configure \
--disable-static \
src_install() {
gnome2_src_install
- python_moduleinto gi.overrides
- python_foreach_impl python_domodule introspection/gi/overrides/Gnm.py
+ if use introspection; then
+ python_moduleinto gi.overrides
+ python_foreach_impl python_domodule introspection/gi/overrides/Gnm.py
+ fi
}