Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/displaycal/
Date: Mon, 02 Mar 2020 09:01:39
Message-Id: 1583139682.3f4b652e1f9f4598fdada2956e1572bc50e189ea.voyageur@gentoo
1 commit: 3f4b652e1f9f4598fdada2956e1572bc50e189ea
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 2 09:01:22 2020 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 2 09:01:22 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f4b652e
7
8 media-gfx/displaycal: 3.8.9.3 bump
9
10 Not run-tested as it is still python2-only sadly
11
12 Package-Manager: Portage-2.3.91, Repoman-2.3.20
13 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
14
15 media-gfx/displaycal/Manifest | 1 +
16 media-gfx/displaycal/displaycal-3.8.9.3.ebuild | 67 ++++++++++++++++++++++++++
17 2 files changed, 68 insertions(+)
18
19 diff --git a/media-gfx/displaycal/Manifest b/media-gfx/displaycal/Manifest
20 index 0a6d3db0067..109e794f17a 100644
21 --- a/media-gfx/displaycal/Manifest
22 +++ b/media-gfx/displaycal/Manifest
23 @@ -1 +1,2 @@
24 DIST DisplayCAL-3.8.8.1.tar.gz 10625317 BLAKE2B 3e988221ee7d75d5a34b1cd69ab80737017c7e7a0fa16c3bc1587210b6b1108e623a3ccada3be8b99fae4c0a70f2cf45293222232f87f0ac13fedf2a1f22fcbd SHA512 e16cdc4590274f10fc122e18a5d94a1d326c43bc132e7af97c6f28c5a656f02203cfb7c73b92fa98d3ee2a8bbf560514615bc9b34c881d2758a5a6f2867092b3
25 +DIST DisplayCAL-3.8.9.3.tar.gz 10639277 BLAKE2B b99d2a39eb707654799b089a8f14891b257a27cb209511ed04ea6e2de7ec4bc3e68db884ebc460e25325495645d1a851b936f91632c571a385e009ea6b9cd6d2 SHA512 cece09605c12be6a154d8d8b088005e527a9e6674a89ec2787b0687a92b7f424749681f149a07bb798df6729c9f4c37e8760abeec115a014c06f94f25fc2f904
26
27 diff --git a/media-gfx/displaycal/displaycal-3.8.9.3.ebuild b/media-gfx/displaycal/displaycal-3.8.9.3.ebuild
28 new file mode 100644
29 index 00000000000..09d6133dd94
30 --- /dev/null
31 +++ b/media-gfx/displaycal/displaycal-3.8.9.3.ebuild
32 @@ -0,0 +1,67 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +PYTHON_COMPAT=( python2_7 )
38 +
39 +inherit distutils-r1 gnome2-utils xdg
40 +
41 +MY_PN="DisplayCAL"
42 +MY_P="${MY_PN}-${PV}"
43 +
44 +DESCRIPTION="Display calibration and characterization powered by Argyll CMS"
45 +HOMEPAGE="https://displaycal.net/"
46 +SRC_URI="mirror://sourceforge/dispcalgui/${MY_P}.tar.gz"
47 +
48 +LICENSE="GPL-3"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86"
51 +IUSE=""
52 +
53 +DEPEND="
54 + >=media-gfx/argyllcms-1.1.0
55 + dev-python/wxpython:3.0[${PYTHON_USEDEP}]
56 + >=x11-libs/libX11-1.3.3
57 + >=x11-apps/xrandr-1.3.2
58 + >=x11-libs/libXxf86vm-1.1.0
59 + >=x11-libs/libXinerama-1.1
60 +"
61 +RDEPEND="${DEPEND}
62 + dev-python/faulthandler[${PYTHON_USEDEP}]
63 + || (
64 + dev-python/numpy-python2[${PYTHON_USEDEP}]
65 + >=dev-python/numpy-1.2.1[${PYTHON_USEDEP}]
66 + )
67 +"
68 +
69 +# Just in case someone renames the ebuild
70 +S="${WORKDIR}/${MY_P}"
71 +
72 +src_prepare() {
73 + # Do not generate udev/hotplug files
74 + sed -e '/if os.path.isdir/s#/etc/udev/rules.d\|/etc/hotplug#\0-non-existant#' \
75 + -i DisplayCAL/setup.py || die
76 + # Prohibit setup from running xdg-* programs, resulting to sandbox violation
77 + sed -e '/if which/s#xdg-icon-resource#\0-non-existant#' \
78 + -e '/if which/s#xdg-desktop-menu#\0-non-existant#' \
79 + -i DisplayCAL/postinstall.py || die
80 +
81 + # Remove deprecated Encoding key from .desktop file
82 + sed -e '/Encoding=UTF-8/d' -i misc/*.desktop || die
83 +
84 + # Remove x-world Media Type
85 + sed -e 's/x\-world\/x\-vrml\;//g' \
86 + -i misc/displaycal-vrml-to-x3d-converter.desktop || die
87 +
88 + distutils-r1_src_prepare
89 +}
90 +
91 +pkg_postinst() {
92 + xdg_pkg_postinst
93 + gnome2_icon_cache_update
94 +}
95 +
96 +pkg_postrm() {
97 + xdg_pkg_postrm
98 + gnome2_icon_cache_update
99 +}