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