diff options
author | 2019-12-15 13:44:26 +0100 | |
---|---|---|
committer | 2019-12-15 14:08:18 +0100 | |
commit | 9240c4b7e3420dc3d16e51b66d1dc545680ad237 (patch) | |
tree | a2c2739225c6d50e6da225f607e7408da457f993 /x11-misc/mugshot | |
parent | dev-python/python-distutils-extra: add python3_8 support (diff) | |
download | gentoo-9240c4b7e3420dc3d16e51b66d1dc545680ad237.tar.gz gentoo-9240c4b7e3420dc3d16e51b66d1dc545680ad237.tar.bz2 gentoo-9240c4b7e3420dc3d16e51b66d1dc545680ad237.zip |
x11-misc/mugshot: add python3_8 support
Also fixing QA error by calling python_optimize
and adding DISTUTILS_USE_SETUPTOOLS.
Updated dependencies, since not all deps are needed in DEPEND.
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'x11-misc/mugshot')
-rw-r--r-- | x11-misc/mugshot/mugshot-0.4.2-r1.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/x11-misc/mugshot/mugshot-0.4.2-r1.ebuild b/x11-misc/mugshot/mugshot-0.4.2-r1.ebuild new file mode 100644 index 000000000000..d73d30cc473e --- /dev/null +++ b/x11-misc/mugshot/mugshot-0.4.2-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS="no" +PYTHON_COMPAT=( python3_{5,6,7,8} ) + +inherit distutils-r1 gnome2-utils xdg-utils + +DESCRIPTION="A lightweight user-configuration application" +HOMEPAGE="https://github.com/bluesabre/mugshot" +SRC_URI="https://github.com/bluesabre/${PN}/archive/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gnome libreoffice webcam" + +COMMON_DEPEND=" + dev-libs/gobject-introspection + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/pexpect[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] + +" + +RDEPEND=" + ${COMMON_DEPEND} + dev-python/pycairo[${PYTHON_USEDEP}] + sys-apps/accountsservice + sys-apps/shadow + gnome? ( gnome-base/gnome-control-center ) + libreoffice? ( + || ( + app-office/libreoffice-bin + app-office/libreoffice + ) + ) + webcam? ( + media-libs/gstreamer:1.0 + media-libs/gst-plugins-good:1.0 + gnome? ( + media-libs/clutter-gtk[introspection] + media-video/cheese[introspection] + ) + ) +" + +DEPEND=" + ${COMMON_DEPEND} + x11-libs/gtk+:3[introspection] +" + +BDEPEND=" + dev-python/python-distutils-extra[${PYTHON_USEDEP}] + dev-util/intltool +" + +S="${WORKDIR}/${PN}-${P}" + +python_install() { + distutils-r1_python_install + + python_optimize + + # Since DOCS are installed twice, remove the wrong path + rm -r "${ED}"/usr/share/doc/mugshot || die +} + +pkg_postinst() { + gnome2_schemas_update + xdg_icon_cache_update +} + +pkg_postrm() { + gnome2_schemas_update + xdg_icon_cache_update +} |