/[gentoo-x86]/media-gfx/dispcalgui/dispcalgui-1.1.0.0.ebuild
Gentoo

Contents of /media-gfx/dispcalgui/dispcalgui-1.1.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri May 10 23:31:00 2013 UTC (5 years, 2 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump. Thanks to Marios Andreopoulos <opensource@andmarios.com>. Fixes bug #449302

(Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/dispcalgui/dispcalgui-1.1.0.0.ebuild,v 1.2 2012/11/02 22:15:41 hwoarang Exp $
4
5 EAPI="2"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="2.4 3.* *-jython 2.7-pypy-*"
9
10 inherit distutils fdo-mime
11
12 MY_PN="dispcalGUI"
13 MY_P="${MY_PN}-${PV}"
14
15 DESCRIPTION="Display Calibration and Characterization powered by Argyll CMS"
16 HOMEPAGE="http://dispcalgui.hoech.net/"
17 SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${MY_P}.tar.gz"
18
19 LICENSE="GPL-3"
20 SLOT="0"
21 KEYWORDS="~amd64 ~x86"
22 IUSE=""
23
24 DEPEND=">=media-gfx/argyllcms-1.1.0
25 >=dev-python/wxpython-2.8.10.1
26 >=x11-libs/libX11-1.3.3
27 >=x11-apps/xrandr-1.3.2
28 >=x11-libs/libXxf86vm-1.1.0
29 >=x11-proto/xineramaproto-1.2
30 >=x11-libs/libXinerama-1.1"
31 RDEPEND="${DEPEND}
32 >=dev-python/numpy-1.2.1"
33
34 # Just in case someone renames the ebuild
35 S=${WORKDIR}/${MY_P}
36
37 DOCS=(
38 README.html
39 )
40
41 src_prepare() {
42 # Prohibit setup from running xdg-* programs, resulting to sandbox violation
43 cd "${S}/dispcalGUI" || die "Cannot cd to source directory."
44 sed -e 's/if which(\"xdg-icon-resource\"):/if which(\"xdg-icon-resource-non-existant\"):/' \
45 -e 's/if which(\"xdg-desktop-menu\"):/if which(\"xdg-desktop-menu-non-existant\"):/' \
46 -i postinstall.py || die "sed'ing out the xdg-* setup functions failed"
47
48 # Remove deprecated Encoding key from .desktop file
49 cd "${S}" || die "Cannot cd to work directory."
50 for offendingFile in $(grep -r -l "Encoding=UTF-8" .); do
51 sed -e '/Encoding=UTF-8/d' -i "${offendingFile}" || \
52 die "removing deprecated Encoding key from .desktop files failed"
53 done
54
55 distutils_src_prepare
56 }
57
58 src_install() {
59 distutils_src_install
60 #remove udev files
61 rm "${D}"/etc/udev/rules.d/55-Argyll.rules || die
62 }
63
64 pkg_postinst() {
65 # Run xdg-* programs the Gentoo way since we removed this functionality from the original package
66 fdo-mime_mime_database_update
67 fdo-mime_desktop_database_update
68 distutils_pkg_postinst
69 }
70
71 pkg_postrm() {
72 # Run xdg-* programs the Gentoo way since we removed this functionality from the original package
73 fdo-mime_mime_database_update
74 fdo-mime_desktop_database_update
75 distutils_pkg_postrm
76 }

  ViewVC Help
Powered by ViewVC 1.1.20