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, 02 Nov 2017 12:54:22
Message-Id: 1509627127.cf36a2d328bdf6fffdb03d704ea4bc548a0fd9c1.voyageur@gentoo
1 commit: cf36a2d328bdf6fffdb03d704ea4bc548a0fd9c1
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 2 12:48:30 2017 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 2 12:52:07 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf36a2d3
7
8 media-gfx/displaycal: 3.3.5.0
9
10 Update gtk+ icon cache on postinstall/postrm steps
11
12 Package-Manager: Portage-2.3.13, Repoman-2.3.4
13
14 media-gfx/displaycal/Manifest | 1 +
15 media-gfx/displaycal/displaycal-3.3.5.0.ebuild | 62 ++++++++++++++++++++++++++
16 2 files changed, 63 insertions(+)
17
18 diff --git a/media-gfx/displaycal/Manifest b/media-gfx/displaycal/Manifest
19 index 6abdd0f9d91..f47dd46796e 100644
20 --- a/media-gfx/displaycal/Manifest
21 +++ b/media-gfx/displaycal/Manifest
22 @@ -1,2 +1,3 @@
23 DIST DisplayCAL-3.3.3.0.tar.gz 9887918 SHA256 47bcd09a44d43eb550fcd6f486d3f37c204a17b74fd9517991707856f54ca178 SHA512 2f9ac1ac2ce24629695f70078625ac4dc6e1346a675cd55658efc3631a6a37546cf6dc7b2747ae77b3681e7f7c816527497f53564e6cb51ce71a132d93955534 WHIRLPOOL 9b68dad41092d29fc7c15b34cfe3b1b034d7100eb8eeabbc1d9b1214c7670dc423fd9767830c2cf2ef007d2cc14238a0d608658206c76b0db59408d08daf863c
24 DIST DisplayCAL-3.3.4.1.tar.gz 9909570 SHA256 0f4b15ef1b9bbc4ef5107651149373bb7c3dd76c524d55f9143b717e0fb0ad53 SHA512 c596333e298aea9366c808c074e467a49e32fa00b0534ae8ce6ad89d0250cf1f2a013dac0d87444edb911bcdea053a462026e335cfc2aa507a932217f1dcd272 WHIRLPOOL 0d74647f8876d6d97ccc9c969fd8a21264135f83b3db838702dd6545851670b89c48ed206ab247d885d3e80abe75378268be5a3b6c9db0981efab98a44f24fb0
25 +DIST DisplayCAL-3.3.5.0.tar.gz 9913672 SHA256 17045d971fc17ab75736a9d1e24afbbae3f062b4809e86c625e92884a0dc8fab SHA512 7a24cbc540771fd26b504536ee0c1b9c34f013c19b5b2a4e1ce38015014e9b34e67b48a1f08bf96581cef2968883691206ddb6cefa9ac70d76251a305a5b1c37 WHIRLPOOL 1ceb7608d660cbb1f883c8853ef1f8be5a8fd7cb110abc9e49906ff5015ec92bf323ea43f6575eb084c610be202b3c6e40293546c711ed03c4972ff1b1705850
26
27 diff --git a/media-gfx/displaycal/displaycal-3.3.5.0.ebuild b/media-gfx/displaycal/displaycal-3.3.5.0.ebuild
28 new file mode 100644
29 index 00000000000..a78347da3cc
30 --- /dev/null
31 +++ b/media-gfx/displaycal/displaycal-3.3.5.0.ebuild
32 @@ -0,0 +1,62 @@
33 +# Copyright 1999-2017 Gentoo Foundation
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
56 + >=x11-libs/libX11-1.3.3
57 + >=x11-apps/xrandr-1.3.2
58 + >=x11-libs/libXxf86vm-1.1.0
59 + >=x11-proto/xineramaproto-1.2
60 + >=x11-libs/libXinerama-1.1
61 +"
62 +RDEPEND="${DEPEND}
63 + >=dev-python/numpy-1.2.1
64 +"
65 +
66 +# Just in case someone renames the ebuild
67 +S="${WORKDIR}/${MY_P}"
68 +
69 +src_prepare() {
70 + # Do not generate udev/hotplug files
71 + sed -e '/if os.path.isdir/s#/etc/udev/rules.d\|/etc/hotplug#\0-non-existant#' \
72 + -i DisplayCAL/setup.py || die
73 + # Prohibit setup from running xdg-* programs, resulting to sandbox violation
74 + sed -e '/if which/s#xdg-icon-resource#\0-non-existant#' \
75 + -e '/if which/s#xdg-desktop-menu#\0-non-existant#' \
76 + -i DisplayCAL/postinstall.py || die
77 +
78 + # Remove deprecated Encoding key from .desktop file
79 + sed -e '/Encoding=UTF-8/d' -i misc/*.desktop || die
80 +
81 + # Remove x-world Media Type
82 + sed -e 's/x\-world\/x\-vrml\;//g' \
83 + -i misc/displaycal-vrml-to-x3d-converter.desktop || die
84 +
85 + distutils-r1_src_prepare
86 +}
87 +
88 +pkg_postinst() {
89 + gnome2_icon_cache_update
90 +}
91 +
92 +pkg_postrm() {
93 + gnome2_icon_cache_update
94 +}