From 3db4d4ceafa188ee9bed8c7c68ce6d2f1f043865 Mon Sep 17 00:00:00 2001 From: Conrad Kostecki Date: Thu, 3 Nov 2022 23:25:25 +0100 Subject: x11-misc/mugshot: migrate to pep517 Signed-off-by: Conrad Kostecki --- x11-misc/mugshot/mugshot-0.4.3-r1.ebuild | 78 -------------------------------- x11-misc/mugshot/mugshot-0.4.3-r2.ebuild | 78 ++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 78 deletions(-) delete mode 100644 x11-misc/mugshot/mugshot-0.4.3-r1.ebuild create mode 100644 x11-misc/mugshot/mugshot-0.4.3-r2.ebuild (limited to 'x11-misc/mugshot') diff --git a/x11-misc/mugshot/mugshot-0.4.3-r1.ebuild b/x11-misc/mugshot/mugshot-0.4.3-r1.ebuild deleted file mode 100644 index c9384816d429..000000000000 --- a/x11-misc/mugshot/mugshot-0.4.3-r1.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_SETUPTOOLS="no" -PYTHON_COMPAT=( python3_{8..11} ) - -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" -S="${WORKDIR}/${PN}-${P}" - -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 -" - -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 -} diff --git a/x11-misc/mugshot/mugshot-0.4.3-r2.ebuild b/x11-misc/mugshot/mugshot-0.4.3-r2.ebuild new file mode 100644 index 000000000000..bbdfe5a464ec --- /dev/null +++ b/x11-misc/mugshot/mugshot-0.4.3-r2.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517="setuptools" +PYTHON_COMPAT=( python3_{8..11} ) + +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" +S="${WORKDIR}/${PN}-${P}" + +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 +" + +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 +} -- cgit v1.2.3-65-gdbad