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: Sun, 29 Apr 2018 22:49:49
Message-Id: 1525040060.666708d85bf3a950c726c8f5e83a3da247efc796.voyageur@gentoo
1 commit: 666708d85bf3a950c726c8f5e83a3da247efc796
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 29 22:14:20 2018 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 29 22:14:20 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=666708d8
7
8 media-gfx/displaycal: 3.5.3.0 bump
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 media-gfx/displaycal/Manifest | 1 +
13 media-gfx/displaycal/displaycal-3.5.3.0.ebuild | 63 ++++++++++++++++++++++++++
14 2 files changed, 64 insertions(+)
15
16 diff --git a/media-gfx/displaycal/Manifest b/media-gfx/displaycal/Manifest
17 index 716d82695e1..b0c2b5c6bee 100644
18 --- a/media-gfx/displaycal/Manifest
19 +++ b/media-gfx/displaycal/Manifest
20 @@ -1,2 +1,3 @@
21 DIST DisplayCAL-3.5.1.0.tar.gz 10378539 BLAKE2B b10e3f70401b9167728c4fc9b59bf66da7e3a09040fdf0800e9697aa9bc328d7d70e4018d14856fbde1a20028ef3aec2922727282050c291ed5a8c83209178e3 SHA512 7dd0c67c8766478223f1e36a36d386b0e8d284001642e34fd1aa27e196fc36be1fd98340f4af202c4b171aa44da9f9d20a53f8dda11ba5e270a1071351fc7a6a
22 DIST DisplayCAL-3.5.2.0.tar.gz 10341417 BLAKE2B 218d73756c57107b17a475101a8969af4213ce0417669b5d18f009320cab970da125ddae68a3288f61f05be99f3e2a621a727c2cf6b4aeae43252c8d257ed3af SHA512 607a63c94fbebf916009327bf473c45e6e785e5dfa57bd0b5868616a57b7af1aa3173a43cd7e371b43a8078ad350ff27178c6c13b46a3e67e28a4397c5586665
23 +DIST DisplayCAL-3.5.3.0.tar.gz 10559161 BLAKE2B a3eb968dcd0b5edbcf22a0ec84da55d8660ffa8782135a908db8ea7a6480ce7be9a59528d35a73b7eb57c9c0dd46996407ea3de834a85e6da1c5d006b8aa33b3 SHA512 ddb405c1d8b7bc5aefac80fb79edbb03c2a3b32821c8bbbdd6d095312fff57e8ffe5e53cc5b53c56fa32e6bcbc10cd76598441d750008c38a512ed1f62d7cd9c
24
25 diff --git a/media-gfx/displaycal/displaycal-3.5.3.0.ebuild b/media-gfx/displaycal/displaycal-3.5.3.0.ebuild
26 new file mode 100644
27 index 00000000000..72a722b6435
28 --- /dev/null
29 +++ b/media-gfx/displaycal/displaycal-3.5.3.0.ebuild
30 @@ -0,0 +1,63 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +PYTHON_COMPAT=( python2_7 )
36 +
37 +inherit distutils-r1 gnome2-utils xdg
38 +
39 +MY_PN="DisplayCAL"
40 +MY_P="${MY_PN}-${PV}"
41 +
42 +DESCRIPTION="Display calibration and characterization powered by Argyll CMS"
43 +HOMEPAGE="https://displaycal.net/"
44 +SRC_URI="mirror://sourceforge/dispcalgui/${MY_P}.tar.gz"
45 +
46 +LICENSE="GPL-3"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE=""
50 +
51 +DEPEND="
52 + >=media-gfx/argyllcms-1.1.0
53 + dev-python/wxpython:3.0
54 + >=x11-libs/libX11-1.3.3
55 + >=x11-apps/xrandr-1.3.2
56 + >=x11-libs/libXxf86vm-1.1.0
57 + >=x11-libs/libXinerama-1.1
58 +"
59 +RDEPEND="${DEPEND}
60 + >=dev-python/numpy-1.2.1
61 +"
62 +
63 +# Just in case someone renames the ebuild
64 +S="${WORKDIR}/${MY_P}"
65 +
66 +src_prepare() {
67 + # Do not generate udev/hotplug files
68 + sed -e '/if os.path.isdir/s#/etc/udev/rules.d\|/etc/hotplug#\0-non-existant#' \
69 + -i DisplayCAL/setup.py || die
70 + # Prohibit setup from running xdg-* programs, resulting to sandbox violation
71 + sed -e '/if which/s#xdg-icon-resource#\0-non-existant#' \
72 + -e '/if which/s#xdg-desktop-menu#\0-non-existant#' \
73 + -i DisplayCAL/postinstall.py || die
74 +
75 + # Remove deprecated Encoding key from .desktop file
76 + sed -e '/Encoding=UTF-8/d' -i misc/*.desktop || die
77 +
78 + # Remove x-world Media Type
79 + sed -e 's/x\-world\/x\-vrml\;//g' \
80 + -i misc/displaycal-vrml-to-x3d-converter.desktop || die
81 +
82 + distutils-r1_src_prepare
83 +}
84 +
85 +pkg_postinst() {
86 + xdg_pkg_postinst
87 + gnome2_icon_cache_update
88 +}
89 +
90 +pkg_postrm() {
91 + xdg_pkg_postrm
92 + gnome2_icon_cache_update
93 +}