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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Jan 31 13:34:01 2015 UTC (3 years, 6 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Version bump. Bug #532974

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 09BF4F54C2BA7F3C!)

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

  ViewVC Help
Powered by ViewVC 1.1.20