diff options
author | Mart Raudsepp <leio@gentoo.org> | 2019-03-11 18:00:06 +0200 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2019-03-11 18:14:20 +0200 |
commit | 30e2c7a3324e7f2dce7d320d319f2445eb3c6664 (patch) | |
tree | 30b7bcdbf6334ce7cf79b0cf37290fa9009b289a /dev-python/pygobject/pygobject-3.32.0.ebuild | |
parent | dev-python/pygobject: bump to 3.30.4 (diff) | |
download | gentoo-30e2c7a3324e7f2dce7d320d319f2445eb3c6664.tar.gz gentoo-30e2c7a3324e7f2dce7d320d319f2445eb3c6664.tar.bz2 gentoo-30e2c7a3324e7f2dce7d320d319f2445eb3c6664.zip |
dev-python/pygobject: bump to 3.32.0
Bug: https://bugs.gentoo.org/676556
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
Diffstat (limited to 'dev-python/pygobject/pygobject-3.32.0.ebuild')
-rw-r--r-- | dev-python/pygobject/pygobject-3.32.0.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/dev-python/pygobject/pygobject-3.32.0.ebuild b/dev-python/pygobject/pygobject-3.32.0.ebuild new file mode 100644 index 000000000000..07fd28f1cbd0 --- /dev/null +++ b/dev-python/pygobject/pygobject-3.32.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} ) + +inherit gnome.org meson python-r1 virtualx xdg + +DESCRIPTION="Python bindings for GObject Introspection" +HOMEPAGE="https://wiki.gnome.org/Projects/PyGObject" + +LICENSE="LGPL-2.1+" +SLOT="3" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="+cairo examples test" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + >=dev-libs/glib-2.48:2 + >=dev-libs/gobject-introspection-1.54:= + virtual/libffi:= + cairo? ( + >=dev-python/pycairo-1.11.1[${PYTHON_USEDEP}] + x11-libs/cairo[glib] ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig + cairo? ( x11-libs/cairo[glib] ) + test? ( + dev-libs/atk[introspection] + dev-python/pytest[${PYTHON_USEDEP}] + x11-libs/gdk-pixbuf:2[introspection,jpeg] + x11-libs/gtk+:3[introspection] + x11-libs/pango[introspection] ) +" + +RESTRICT="!test? ( test )" + +src_configure() { + configuring() { + meson_src_configure \ + $(meson_use cairo pycairo) \ + -Dpython="${EPYTHON}" + } + + python_foreach_impl configuring +} + +src_compile() { + python_foreach_impl meson_src_compile +} + +src_test() { + local -x GIO_USE_VFS="local" # prevents odd issues with deleting ${T}/.gvfs + local -x GIO_USE_VOLUME_MONITOR="unix" # prevent udisks-related failures in chroots, bug #449484 + + testing() { + local -x XDG_CACHE_HOME="${T}/${EPYTHON}" + meson_src_test || die "test failed for ${EPYTHON}" + } + virtx python_foreach_impl testing +} + +src_install() { + installing() { + meson_src_install + python_optimize + } + python_foreach_impl installing + use examples && dodoc -r examples +} |