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, 29 Nov 2018 12:46:05
Message-Id: 1543494376.a2befc95d38ae80a0c183d83c6d3239c4d12d1bb.voyageur@gentoo
1 commit: a2befc95d38ae80a0c183d83c6d3239c4d12d1bb
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 29 12:22:21 2018 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 29 12:26:16 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2befc95
7
8 media-gfx/displaycal: 3.7.1.2 bump
9
10 Package-Manager: Portage-2.3.52, 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.7.1.2.ebuild | 63 ++++++++++++++++++++++++++
15 2 files changed, 64 insertions(+)
16
17 diff --git a/media-gfx/displaycal/Manifest b/media-gfx/displaycal/Manifest
18 index db365fbae68..6caad1828f6 100644
19 --- a/media-gfx/displaycal/Manifest
20 +++ b/media-gfx/displaycal/Manifest
21 @@ -1,2 +1,3 @@
22 DIST DisplayCAL-3.6.2.0.tar.gz 10437261 BLAKE2B c476c7834e2c723c48fb9ad9d2ea7f4919c2636814078d8f1a83a6af0e91586e0762ea3787c90f8625cba672ac72ef5e1d2dd6906fd3fd7f3b67637a180b81e3 SHA512 e66a20edf46d460caf5d2f7ddbc93cfe7c37937cd4933d2a2b7d141676696c6f22aadc07d229fbaefe0ced62066fc99d3290352c3e8fc9db4b95a8d0541f0be7
23 DIST DisplayCAL-3.7.1.1.tar.gz 10472440 BLAKE2B 2e53537a7570c37120a462102269b5c042299df3de0926b0221bef8b5c29d75e7983b359d9ad162e2d9df2819c624d5f0c00c65fa181cce3fa831f1791d7a1fd SHA512 d5d18b25dd4ce6a2b328db6adb55c43ffcb3e3a495be38004d9e6a6e5c8d576b9477dc895668f82210ce955e7854a578218cb8c9ca2c206f58c47a011ad99c09
24 +DIST DisplayCAL-3.7.1.2.tar.gz 10472879 BLAKE2B a0722af9c8a6df8af57c0a66e792886b6aecb78bec79d0bed22567bd6ce540793ed6dd51437cbf1974b9070b9adb3708f841cf8cfae0e482056d90783be6ddbd SHA512 d708110e0528ffada5fd4a0ca7da9cf02a54964bc7d5af2b98738aa3e34079c0a4890f2cf6086750045915e06d6c943fc954e0f03653d25c080522a4b24795bd
25
26 diff --git a/media-gfx/displaycal/displaycal-3.7.1.2.ebuild b/media-gfx/displaycal/displaycal-3.7.1.2.ebuild
27 new file mode 100644
28 index 00000000000..02f4e0b4a7e
29 --- /dev/null
30 +++ b/media-gfx/displaycal/displaycal-3.7.1.2.ebuild
31 @@ -0,0 +1,63 @@
32 +# Copyright 1999-2018 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
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/numpy-1.2.1
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 +}