From 3a6f65564df6bfd7c9cf3e5ccda1cdb2cb1159e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A2=D1=80=D0=B0=D1=86=D0=B5=D0=B2=D1=81=D0=BA=D0=B8?= =?UTF-8?q?=D0=B9=20=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80?= Date: Wed, 23 Sep 2020 12:11:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81?= =?UTF-8?q?=D0=B5=D0=BD=20media-gfx/displaycal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- media-gfx/displaycal/Manifest | 1 + .../displaycal/displaycal-3.8.9.3-r1.ebuild | 71 +++++++++++++++++++ profiles/default/package.keywords/calculate | 1 + profiles/default/package.keywords/default | 1 - 4 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 media-gfx/displaycal/Manifest create mode 100644 media-gfx/displaycal/displaycal-3.8.9.3-r1.ebuild diff --git a/media-gfx/displaycal/Manifest b/media-gfx/displaycal/Manifest new file mode 100644 index 000000000..e575775dc --- /dev/null +++ b/media-gfx/displaycal/Manifest @@ -0,0 +1 @@ +DIST DisplayCAL-3.8.9.3.tar.gz 10639277 BLAKE2B b99d2a39eb707654799b089a8f14891b257a27cb209511ed04ea6e2de7ec4bc3e68db884ebc460e25325495645d1a851b936f91632c571a385e009ea6b9cd6d2 SHA512 cece09605c12be6a154d8d8b088005e527a9e6674a89ec2787b0687a92b7f424749681f149a07bb798df6729c9f4c37e8760abeec115a014c06f94f25fc2f904 diff --git a/media-gfx/displaycal/displaycal-3.8.9.3-r1.ebuild b/media-gfx/displaycal/displaycal-3.8.9.3-r1.ebuild new file mode 100644 index 000000000..c6270a73f --- /dev/null +++ b/media-gfx/displaycal/displaycal-3.8.9.3-r1.ebuild @@ -0,0 +1,71 @@ +# 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" +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}] + ) + || ( + dev-python/pygobject:3[${PYTHON_USEDEP}] + dev-python/dbus-python[${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/profiles/default/package.keywords/calculate b/profiles/default/package.keywords/calculate index d3250a5b1..a4baf2f0f 100644 --- a/profiles/default/package.keywords/calculate +++ b/profiles/default/package.keywords/calculate @@ -4,6 +4,7 @@ #~games-action/oolite-1.86 amd64 ~app-mobilephone/scrcpy-1.14 amd64 ~games-util/steam-launcher-1.0.0.64 amd64 +~media-gfx/displaycal-3.8.9.3 amd64 ~media-plugins/deadbeef-archive-reader-20160116 amd64 ~media-plugins/deadbeef-bookmark-manager-20140514 amd64 ~media-plugins/deadbeef-bs2b-20110319 amd64 diff --git a/profiles/default/package.keywords/default b/profiles/default/package.keywords/default index 19f6484d6..e7f3a6504 100644 --- a/profiles/default/package.keywords/default +++ b/profiles/default/package.keywords/default @@ -60,7 +60,6 @@ dev-util/pycharm-professional amd64 ~mail-client/trojita-0.7 amd64 ~media-gfx/blender-2.83.4 amd64 ~media-gfx/darktable-3.2.1 amd64 -~media-gfx/displaycal-3.8.9.3 amd64 ~media-gfx/gimp-2.10.20 amd64 ~media-gfx/inkscape-1.0 amd64 ~media-gfx/krita-4.2.9 amd64