summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-gfx/displaycal/Manifest1
-rw-r--r--media-gfx/displaycal/displaycal-3.3.0.0.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/media-gfx/displaycal/Manifest b/media-gfx/displaycal/Manifest
index 8e8024e32df1..3f49229d05eb 100644
--- a/media-gfx/displaycal/Manifest
+++ b/media-gfx/displaycal/Manifest
@@ -1 +1,2 @@
DIST DisplayCAL-3.2.4.0.tar.gz 9759425 SHA256 6851d801d36ab11ba3f65fbc0b8882ebf6a265fb1f0ce7bbab333434c686936b SHA512 87c63f6c2710592b31233ff906b0670d1b733f4fe7c1500e19305739a5658b38059ff1cc91e27b5d7e8dbb780f16d00c05cc84d0e42ce717a481d999fdd33a54 WHIRLPOOL 948344e781a9cf5613b8e31cfdca64c4ab72337744d0f3544c36fc081f8b34c0c099d42d981bf7cdd88a1f246154d26ee781f24f6f6f0a5577d9cd050f325508
+DIST DisplayCAL-3.3.0.0.tar.gz 9882703 SHA256 32419d6435fc7369eb6f4320317573ea3b5ec1f204fd299ac81a39aeba68c5ea SHA512 1605845ff63821c1464feffa559b632c1e590e9f8456887e604a89443d65d6c5413ca26edaf1847d7b9b48a338baab0c59cf61fe845f5927e24d9f3af231d77c WHIRLPOOL fc46708cc5ca411bd014baff24afa36d746857c7753c8d49d8aefd761f79fe4e84195168601de08db06d88a0cc35de6ac32781531f7a2b4c7f5008572a062ade
diff --git a/media-gfx/displaycal/displaycal-3.3.0.0.ebuild b/media-gfx/displaycal/displaycal-3.3.0.0.ebuild
new file mode 100644
index 000000000000..4beb3e30e0da
--- /dev/null
+++ b/media-gfx/displaycal/displaycal-3.3.0.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
+}