From f0bccada95ada5626b9a08ffd898df5a4830593f Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Wed, 22 Jan 2020 22:46:07 +0100 Subject: media-gfx/displaycal: Revbump post dep change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- media-gfx/displaycal/displaycal-3.8.8.1-r1.ebuild | 67 +++++++++++++++++++++++ media-gfx/displaycal/displaycal-3.8.8.1.ebuild | 67 ----------------------- 2 files changed, 67 insertions(+), 67 deletions(-) create mode 100644 media-gfx/displaycal/displaycal-3.8.8.1-r1.ebuild delete mode 100644 media-gfx/displaycal/displaycal-3.8.8.1.ebuild (limited to 'media-gfx/displaycal') diff --git a/media-gfx/displaycal/displaycal-3.8.8.1-r1.ebuild b/media-gfx/displaycal/displaycal-3.8.8.1-r1.ebuild new file mode 100644 index 000000000000..09d6133dd94c --- /dev/null +++ b/media-gfx/displaycal/displaycal-3.8.8.1-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 gnome2-utils xdg + +MY_PN="DisplayCAL" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Display calibration and characterization powered by Argyll CMS" +HOMEPAGE="https://displaycal.net/" +SRC_URI="mirror://sourceforge/dispcalgui/${MY_P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=" + >=media-gfx/argyllcms-1.1.0 + dev-python/wxpython:3.0[${PYTHON_USEDEP}] + >=x11-libs/libX11-1.3.3 + >=x11-apps/xrandr-1.3.2 + >=x11-libs/libXxf86vm-1.1.0 + >=x11-libs/libXinerama-1.1 +" +RDEPEND="${DEPEND} + dev-python/faulthandler[${PYTHON_USEDEP}] + || ( + dev-python/numpy-python2[${PYTHON_USEDEP}] + >=dev-python/numpy-1.2.1[${PYTHON_USEDEP}] + ) +" + +# Just in case someone renames the ebuild +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Do not generate udev/hotplug files + sed -e '/if os.path.isdir/s#/etc/udev/rules.d\|/etc/hotplug#\0-non-existant#' \ + -i DisplayCAL/setup.py || die + # Prohibit setup from running xdg-* programs, resulting to sandbox violation + sed -e '/if which/s#xdg-icon-resource#\0-non-existant#' \ + -e '/if which/s#xdg-desktop-menu#\0-non-existant#' \ + -i DisplayCAL/postinstall.py || die + + # Remove deprecated Encoding key from .desktop file + sed -e '/Encoding=UTF-8/d' -i misc/*.desktop || die + + # Remove x-world Media Type + sed -e 's/x\-world\/x\-vrml\;//g' \ + -i misc/displaycal-vrml-to-x3d-converter.desktop || die + + distutils-r1_src_prepare +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_icon_cache_update +} diff --git a/media-gfx/displaycal/displaycal-3.8.8.1.ebuild b/media-gfx/displaycal/displaycal-3.8.8.1.ebuild deleted file mode 100644 index 09d6133dd94c..000000000000 --- a/media-gfx/displaycal/displaycal-3.8.8.1.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -PYTHON_COMPAT=( python2_7 ) - -inherit distutils-r1 gnome2-utils xdg - -MY_PN="DisplayCAL" -MY_P="${MY_PN}-${PV}" - -DESCRIPTION="Display calibration and characterization powered by Argyll CMS" -HOMEPAGE="https://displaycal.net/" -SRC_URI="mirror://sourceforge/dispcalgui/${MY_P}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND=" - >=media-gfx/argyllcms-1.1.0 - dev-python/wxpython:3.0[${PYTHON_USEDEP}] - >=x11-libs/libX11-1.3.3 - >=x11-apps/xrandr-1.3.2 - >=x11-libs/libXxf86vm-1.1.0 - >=x11-libs/libXinerama-1.1 -" -RDEPEND="${DEPEND} - dev-python/faulthandler[${PYTHON_USEDEP}] - || ( - dev-python/numpy-python2[${PYTHON_USEDEP}] - >=dev-python/numpy-1.2.1[${PYTHON_USEDEP}] - ) -" - -# Just in case someone renames the ebuild -S="${WORKDIR}/${MY_P}" - -src_prepare() { - # Do not generate udev/hotplug files - sed -e '/if os.path.isdir/s#/etc/udev/rules.d\|/etc/hotplug#\0-non-existant#' \ - -i DisplayCAL/setup.py || die - # Prohibit setup from running xdg-* programs, resulting to sandbox violation - sed -e '/if which/s#xdg-icon-resource#\0-non-existant#' \ - -e '/if which/s#xdg-desktop-menu#\0-non-existant#' \ - -i DisplayCAL/postinstall.py || die - - # Remove deprecated Encoding key from .desktop file - sed -e '/Encoding=UTF-8/d' -i misc/*.desktop || die - - # Remove x-world Media Type - sed -e 's/x\-world\/x\-vrml\;//g' \ - -i misc/displaycal-vrml-to-x3d-converter.desktop || die - - distutils-r1_src_prepare -} - -pkg_postinst() { - xdg_pkg_postinst - gnome2_icon_cache_update -} - -pkg_postrm() { - xdg_pkg_postrm - gnome2_icon_cache_update -} -- cgit v1.2.3-65-gdbad