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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Jul 26 22:27:09 2012 UTC (6 years, 1 month ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old

(Portage version: 2.1.11.9/cvs/Linux x86_64)

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-0.7.3.7.ebuild,v 1.2 2012/02/28 12:27:28 patrick Exp $
4
5 EAPI="2"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="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://dispcalgui.hoech.net/archive/${PV}/${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 distutils_src_prepare
49 }
50
51 pkg_postinst() {
52 # Run xdg-* programs the Gentoo way since we removed this functionality from the original package
53 fdo-mime_mime_database_update
54 fdo-mime_desktop_database_update
55 distutils_pkg_postinst
56 }
57
58 pkg_postrm() {
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_postrm
63 }

  ViewVC Help
Powered by ViewVC 1.1.20