summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/displaycal/Manifest1
-rw-r--r--media-gfx/displaycal/displaycal-3.2.4.0.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/media-gfx/displaycal/Manifest b/media-gfx/displaycal/Manifest
index e8bc867d6bd4..00454913beab 100644
--- a/media-gfx/displaycal/Manifest
+++ b/media-gfx/displaycal/Manifest
@@ -2,3 +2,4 @@ DIST DisplayCAL-3.1.6.0.tar.gz 9592426 SHA256 fc27814cf29b3643f8a44973f2139518c1
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
DIST DisplayCAL-3.2.3.0.tar.gz 9730309 SHA256 6d55765d7c8dd45cf2306bb88fc36655de61253474caeb2a406431d7f3a74c40 SHA512 837e076f37c215c3341907be85beb659ac60654c0b853b486f2c9eb3141ef6d03c21b94288621b35a0d1f447e1dda870509847475036e2448b4c4b869aaa5e2f WHIRLPOOL 70b21f81ed10909ad532a1e62dbfc948a878b158402a42c82b818676473d68b8605c89dad066d54b17b9711f7ea8b086f4e6c3e3306d40fcd1b3989800e03bae
+DIST DisplayCAL-3.2.4.0.tar.gz 9759425 SHA256 6851d801d36ab11ba3f65fbc0b8882ebf6a265fb1f0ce7bbab333434c686936b SHA512 87c63f6c2710592b31233ff906b0670d1b733f4fe7c1500e19305739a5658b38059ff1cc91e27b5d7e8dbb780f16d00c05cc84d0e42ce717a481d999fdd33a54 WHIRLPOOL 948344e781a9cf5613b8e31cfdca64c4ab72337744d0f3544c36fc081f8b34c0c099d42d981bf7cdd88a1f246154d26ee781f24f6f6f0a5577d9cd050f325508
diff --git a/media-gfx/displaycal/displaycal-3.2.4.0.ebuild b/media-gfx/displaycal/displaycal-3.2.4.0.ebuild
new file mode 100644
index 000000000000..4beb3e30e0da
--- /dev/null
+++ b/media-gfx/displaycal/displaycal-3.2.4.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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
+}