commit:     64e1294c596cd4ea34a90a5d668362cd47881451
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Tue Jan  3 16:00:13 2017 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Tue Jan  3 16:02:05 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64e1294c

media-gfx/displaycal: 3.2.2.0 bump

Move udev rules removal in src_prepare, clean sed commands
README file is alread installed in /usr/share/doc/DisplayCAL-${PV}

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 media-gfx/displaycal/Manifest                  |  1 +
 media-gfx/displaycal/displaycal-3.2.2.0.ebuild | 55 ++++++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/media-gfx/displaycal/Manifest b/media-gfx/displaycal/Manifest
index 6af9a3e..8c62afe 100644
--- a/media-gfx/displaycal/Manifest
+++ b/media-gfx/displaycal/Manifest
@@ -1,2 +1,3 @@
 DIST DisplayCAL-3.1.6.0.tar.gz 9592426 SHA256 
fc27814cf29b3643f8a44973f2139518c133f6a2549ffe51658e765a67cd02fd SHA512 
ea5d0c5028c9dcfc834c03bd50d9e4cd5f4528ac0adf1312117128f8969533f857eaab738019d561b8197ad595ca73ad085db4feb36101df1e303933e1edbd87
 WHIRLPOOL 
6a23f57e606852838b43834d81acd346be1746040d47ac5884c997d828130ddf5b2049b8684d2de42b555ab7b6b6fb4d0430544d2586ca388eb769fbecc86be6
 DIST DisplayCAL-3.2.1.0.tar.gz 9725546 SHA256 
41e71fcec3c0867c94c68e9c56753a3aab614ca3b815cab547b6510926f5321f SHA512 
b2a6fdab470f551361de5743f39a8ed9f23ae1ee47d0573f2f68a30d4cb2be89102f4272f2f99fd674e23ec99c6ee2ab2c89632cdad2394c618275af92d2b942
 WHIRLPOOL 
7081cb274598ca0cdf159c7f3e684a1bd33467f56d49662946740ce8033b002ef0e7060d707354d4d911fe7589788c1ea4f6700f1de25fdb1b34a564b6e5f8a7
+DIST DisplayCAL-3.2.2.0.tar.gz 9728053 SHA256 
013520784841ddb3bef41d60e9bb3f9d0c11c67bf4902cfd6aec25193450ed3e SHA512 
6615b2f8bf8817c56c7691d031d7408b9b608d752319e7a0497a2292f4498ee1e138d6e66f9cca11d1015c1753e96897f68cfb8c32c0f73486c38ff2a8cea8cf
 WHIRLPOOL 
6206d73aae7167f37b37fc378bd7d4590c85a14a2ed4dda2394164e716436cdac926cbe0df7145906c7ded9ad264bcf216a3626426bb221669a0ff690f18586e

diff --git a/media-gfx/displaycal/displaycal-3.2.2.0.ebuild 
b/media-gfx/displaycal/displaycal-3.2.2.0.ebuild
new file mode 100644
index 00000000..8428b1f
--- /dev/null
+++ b/media-gfx/displaycal/displaycal-3.2.2.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 xdg
+
+MY_PN="DisplayCAL"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Display calibration and characterization powered by Argyll CMS"
+HOMEPAGE="https://displaycal.net/";
+SRC_URI="mirror://sourceforge/dispcalgui/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+       >=media-gfx/argyllcms-1.1.0
+       dev-python/wxpython:3.0
+       >=x11-libs/libX11-1.3.3
+       >=x11-apps/xrandr-1.3.2
+       >=x11-libs/libXxf86vm-1.1.0
+       >=x11-proto/xineramaproto-1.2
+       >=x11-libs/libXinerama-1.1
+"
+RDEPEND="${DEPEND}
+       >=dev-python/numpy-1.2.1
+"
+
+# Just in case someone renames the ebuild
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+       # Do not generate udev/hotplug files
+       sed -e '/if 
os.path.isdir/s#/etc/udev/rules.d\|/etc/hotplug#\0-non-existant#' \
+               -i DisplayCAL/setup.py || die
+       # Prohibit setup from running xdg-* programs, resulting to sandbox 
violation
+       sed -e '/if which/s#xdg-icon-resource#\0-non-existant#' \
+               -e '/if which/s#xdg-desktop-menu#\0-non-existant#' \
+               -i DisplayCAL/postinstall.py || die
+
+       # Remove deprecated Encoding key from .desktop file
+       sed -e '/Encoding=UTF-8/d' -i misc/*.desktop  || die
+
+       # Remove x-world Media Type
+       sed -e 's/x\-world\/x\-vrml\;//g' \
+               -i misc/displaycal-vrml-to-x3d-converter.desktop || die
+
+       distutils-r1_src_prepare
+}

Reply via email to