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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon Jul 30 05:45:32 2012 UTC (10 months, 2 weeks ago) by jdhore
Branch: MAIN
Changes since 1.1: +2 -2 lines
marked x86 per bug 428230

(Portage version: 2.2.0_alpha120/cvs/Linux i686)

1 hwoarang 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jdhore 1.2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/dispcalgui/dispcalgui-0.9.9.1.ebuild,v 1.1 2012/04/29 16:57:19 hwoarang Exp $
4 hwoarang 1.1
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 jdhore 1.2 KEYWORDS="~amd64 x86"
22 hwoarang 1.1 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     # Set udev rules to install at /lib/udev/rules.d
49     cd "${S}" || die "Cannot cd to work directory."
50     for offendingFile in $(grep -r -l "/etc/udev/rules.d" *); do
51     sed -e 's|/etc/udev/rules\.d|/lib/udev/rules\.d|g' -i "${offendingFile}" || \
52     die "setting udev rules' destination directory failed"
53     done
54    
55     distutils_src_prepare
56     }
57    
58     pkg_postinst() {
59     # Run xdg-* programs the Gentoo way since we removed this functionality from the original package
60     fdo-mime_mime_database_update
61     fdo-mime_desktop_database_update
62     distutils_pkg_postinst
63     }
64    
65     pkg_postrm() {
66     # Run xdg-* programs the Gentoo way since we removed this functionality from the original package
67     fdo-mime_mime_database_update
68     fdo-mime_desktop_database_update
69     distutils_pkg_postrm
70     }

  ViewVC Help
Powered by ViewVC 1.1.20