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: Fri, 02 Jun 2017 22:31:09
Message-Id: 1496442525.4860c51c64993c28115d8fa0a5bac2e043daa3cc.voyageur@gentoo
1 commit: 4860c51c64993c28115d8fa0a5bac2e043daa3cc
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 2 22:26:44 2017 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 2 22:28:45 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4860c51c
7
8 media-gfx/displaycal: 3.3.0.0 bump
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 media-gfx/displaycal/Manifest | 1 +
13 media-gfx/displaycal/displaycal-3.3.0.0.ebuild | 54 ++++++++++++++++++++++++++
14 2 files changed, 55 insertions(+)
15
16 diff --git a/media-gfx/displaycal/Manifest b/media-gfx/displaycal/Manifest
17 index 8e8024e32df..3f49229d05e 100644
18 --- a/media-gfx/displaycal/Manifest
19 +++ b/media-gfx/displaycal/Manifest
20 @@ -1 +1,2 @@
21 DIST DisplayCAL-3.2.4.0.tar.gz 9759425 SHA256 6851d801d36ab11ba3f65fbc0b8882ebf6a265fb1f0ce7bbab333434c686936b SHA512 87c63f6c2710592b31233ff906b0670d1b733f4fe7c1500e19305739a5658b38059ff1cc91e27b5d7e8dbb780f16d00c05cc84d0e42ce717a481d999fdd33a54 WHIRLPOOL 948344e781a9cf5613b8e31cfdca64c4ab72337744d0f3544c36fc081f8b34c0c099d42d981bf7cdd88a1f246154d26ee781f24f6f6f0a5577d9cd050f325508
22 +DIST DisplayCAL-3.3.0.0.tar.gz 9882703 SHA256 32419d6435fc7369eb6f4320317573ea3b5ec1f204fd299ac81a39aeba68c5ea SHA512 1605845ff63821c1464feffa559b632c1e590e9f8456887e604a89443d65d6c5413ca26edaf1847d7b9b48a338baab0c59cf61fe845f5927e24d9f3af231d77c WHIRLPOOL fc46708cc5ca411bd014baff24afa36d746857c7753c8d49d8aefd761f79fe4e84195168601de08db06d88a0cc35de6ac32781531f7a2b4c7f5008572a062ade
23
24 diff --git a/media-gfx/displaycal/displaycal-3.3.0.0.ebuild b/media-gfx/displaycal/displaycal-3.3.0.0.ebuild
25 new file mode 100644
26 index 00000000000..4beb3e30e0d
27 --- /dev/null
28 +++ b/media-gfx/displaycal/displaycal-3.3.0.0.ebuild
29 @@ -0,0 +1,54 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +PYTHON_COMPAT=( python2_7 )
35 +
36 +inherit distutils-r1 xdg
37 +
38 +MY_PN="DisplayCAL"
39 +MY_P="${MY_PN}-${PV}"
40 +
41 +DESCRIPTION="Display calibration and characterization powered by Argyll CMS"
42 +HOMEPAGE="https://displaycal.net/"
43 +SRC_URI="mirror://sourceforge/dispcalgui/${MY_P}.tar.gz"
44 +
45 +LICENSE="GPL-3"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE=""
49 +
50 +DEPEND="
51 + >=media-gfx/argyllcms-1.1.0
52 + dev-python/wxpython:3.0
53 + >=x11-libs/libX11-1.3.3
54 + >=x11-apps/xrandr-1.3.2
55 + >=x11-libs/libXxf86vm-1.1.0
56 + >=x11-proto/xineramaproto-1.2
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 +}