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