You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.8 KiB
68 lines
1.8 KiB
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
8 years ago
|
EAPI=6
|
||
8 years ago
|
PYTHON_COMPAT=( python2_7 )
|
||
|
|
||
8 years ago
|
inherit distutils-r1 xdg
|
||
8 years ago
|
|
||
|
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=""
|
||
|
|
||
8 years ago
|
DEPEND="
|
||
|
>=media-gfx/argyllcms-1.1.0
|
||
|
dev-python/wxpython:3.0
|
||
8 years ago
|
>=x11-libs/libX11-1.3.3
|
||
|
>=x11-apps/xrandr-1.3.2
|
||
|
>=x11-libs/libXxf86vm-1.1.0
|
||
|
>=x11-proto/xineramaproto-1.2
|
||
8 years ago
|
>=x11-libs/libXinerama-1.1
|
||
|
"
|
||
8 years ago
|
RDEPEND="${DEPEND}
|
||
8 years ago
|
>=dev-python/numpy-1.2.1
|
||
|
"
|
||
8 years ago
|
|
||
|
# Just in case someone renames the ebuild
|
||
8 years ago
|
S="${WORKDIR}/${MY_P}"
|
||
8 years ago
|
|
||
|
DOCS=(
|
||
|
README.html
|
||
|
)
|
||
|
|
||
|
src_prepare() {
|
||
|
# Prohibit setup from running xdg-* programs, resulting to sandbox violation
|
||
|
cd "${S}/DisplayCAL" || die "Cannot cd to source directory."
|
||
|
sed -e 's/if which(\"xdg-icon-resource\"):/if which(\"xdg-icon-resource-non-existant\"):/' \
|
||
|
-e 's/if which(\"xdg-desktop-menu\"):/if which(\"xdg-desktop-menu-non-existant\"):/' \
|
||
|
-i postinstall.py || die "sed'ing out the xdg-* setup functions failed"
|
||
|
|
||
|
# Remove deprecated Encoding key from .desktop file
|
||
|
cd "${S}" || die "Cannot cd to work directory."
|
||
|
for offendingFile in $(grep -r -l "Encoding=UTF-8" .); do
|
||
|
sed -e '/Encoding=UTF-8/d' -i "${offendingFile}" || \
|
||
|
die "removing deprecated Encoding key from .desktop files failed"
|
||
|
done
|
||
|
|
||
|
# Remove x-world Media Type
|
||
|
cd "${S}/misc" || die "Cannot cd to misc directory."
|
||
|
sed -e 's/x\-world\/x\-vrml\;//g' -i "displaycal-vrml-to-x3d-converter.desktop" \
|
||
|
|| die "removing x-world media type failed"
|
||
|
|
||
|
distutils-r1_src_prepare
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
distutils-r1_src_install
|
||
|
#remove udev files
|
||
|
rm -rf "${D}"/etc/udev/rules.d
|
||
|
}
|