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, 26 May 2019 16:07:39
Message-Id: 1558886697.5e6f507337b00725d1d64bc3e329627b5d375e96.voyageur@gentoo
1 commit: 5e6f507337b00725d1d64bc3e329627b5d375e96
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 26 16:04:57 2019 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Sun May 26 16:04:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e6f5073
7
8 media-gfx/displaycal: 3.8.1.1 bump
9
10 Package-Manager: Portage-2.3.66, Repoman-2.3.12
11 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
12
13 media-gfx/displaycal/Manifest | 1 +
14 media-gfx/displaycal/displaycal-3.8.1.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 0b38f7ceca9..314215b8f7a 100644
19 --- a/media-gfx/displaycal/Manifest
20 +++ b/media-gfx/displaycal/Manifest
21 @@ -1 +1,2 @@
22 DIST DisplayCAL-3.7.2.0.tar.gz 10536990 BLAKE2B c3e0c1b75c10911b1624d56f4e5d612eba8c257b5abd8a4632f13d91285283d870d928ad3eb17a9cd620b7fed4b9e5414495e12227fb2b94e3da2551d14042bd SHA512 f516376a84680daa2baffa0b4738f52e5dc6df374ae5d97ed385430e2744a087e044faa4929fdc84b01d79878b44e15eda5fa75b40b8a78e6962f66fc06876d4
23 +DIST DisplayCAL-3.8.1.1.tar.gz 10611516 BLAKE2B 797c20aa7d26014ce5d039de352639b6d9f045eb06701044a0cb4a1b34c9744b0ca4f659a33cd23d16fe918e5d7e270def4ecd5007ddfc82682b486d3a413e44 SHA512 75d4ff038ad4f98b2d234b99d473a9e951983a607c28bc4eadcaa89bcfaa02ca13ed18fca8d4608cd881f215cbb37c36f91f7862a8c83541423524aca35b4688
24
25 diff --git a/media-gfx/displaycal/displaycal-3.8.1.1.ebuild b/media-gfx/displaycal/displaycal-3.8.1.1.ebuild
26 new file mode 100644
27 index 00000000000..6d9baac97b2
28 --- /dev/null
29 +++ b/media-gfx/displaycal/displaycal-3.8.1.1.ebuild
30 @@ -0,0 +1,64 @@
31 +# Copyright 1999-2019 Gentoo Authors
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[${PYTHON_USEDEP}]
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/faulthandler[${PYTHON_USEDEP}]
61 + >=dev-python/numpy-1.2.1[${PYTHON_USEDEP}]
62 +"
63 +
64 +# Just in case someone renames the ebuild
65 +S="${WORKDIR}/${MY_P}"
66 +
67 +src_prepare() {
68 + # Do not generate udev/hotplug files
69 + sed -e '/if os.path.isdir/s#/etc/udev/rules.d\|/etc/hotplug#\0-non-existant#' \
70 + -i DisplayCAL/setup.py || die
71 + # Prohibit setup from running xdg-* programs, resulting to sandbox violation
72 + sed -e '/if which/s#xdg-icon-resource#\0-non-existant#' \
73 + -e '/if which/s#xdg-desktop-menu#\0-non-existant#' \
74 + -i DisplayCAL/postinstall.py || die
75 +
76 + # Remove deprecated Encoding key from .desktop file
77 + sed -e '/Encoding=UTF-8/d' -i misc/*.desktop || die
78 +
79 + # Remove x-world Media Type
80 + sed -e 's/x\-world\/x\-vrml\;//g' \
81 + -i misc/displaycal-vrml-to-x3d-converter.desktop || die
82 +
83 + distutils-r1_src_prepare
84 +}
85 +
86 +pkg_postinst() {
87 + xdg_pkg_postinst
88 + gnome2_icon_cache_update
89 +}
90 +
91 +pkg_postrm() {
92 + xdg_pkg_postrm
93 + gnome2_icon_cache_update
94 +}