blob: 45a57aef557f7b334c59c899c58e2507a4b4b2a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/dispcalgui/dispcalgui-1.2.7.0.ebuild,v 1.4 2014/03/04 20:10:14 ago Exp $
EAPI="2"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.4 3.* *-jython 2.7-pypy-*"
inherit distutils fdo-mime eutils
MY_PN="dispcalGUI"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Display Calibration and Characterization powered by Argyll CMS"
HOMEPAGE="http://dispcalgui.hoech.net/"
SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=">=media-gfx/argyllcms-1.1.0
dev-python/wxpython:2.8
>=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}
DOCS=(
README.html
)
src_prepare() {
epatch "${FILESDIR}"/${P}-wxversion-select.patch
# Prohibit setup from running xdg-* programs, resulting to sandbox violation
cd "${S}/dispcalGUI" || 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
distutils_src_prepare
}
src_install() {
distutils_src_install
#remove udev files
rm -rf "${D}"/etc/udev/rules.d
}
pkg_postinst() {
# Run xdg-* programs the Gentoo way since we removed this functionality from the original package
fdo-mime_mime_database_update
fdo-mime_desktop_database_update
distutils_pkg_postinst
}
pkg_postrm() {
# Run xdg-* programs the Gentoo way since we removed this functionality from the original package
fdo-mime_mime_database_update
fdo-mime_desktop_database_update
distutils_pkg_postrm
}
|