# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: Exp $ EAPI="2" PYTHON_DEPEND="2:2.5" SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="3.*" inherit distutils eutils DESCRIPTION="Display Calibration and Characterization powered by Argyll CMS" HOMEPAGE="http://dispcalgui.hoech.net/" SRC_URI="http://dispcalgui.hoech.net/${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="+curves" DEPEND=">=dev-lang/python-2.5 >=dev-python/wxpython-2.8.10.1 >=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} curves? ( >=dev-python/numpy-1.2.1 ) >=media-gfx/argyllcms-1.0.0" src_compile() { cd "${WORKDIR}/dispcalGUI-${PV}" || die "Cannot cd to source directory." python setup.py build } src_install() { cd "${WORKDIR}/dispcalGUI-${PV}" || die "Cannot cd to source directory." python setup.py bdist tar -xzf "${WORKDIR}/dispcalGUI-${PV}/dist/dispcalGUI-${PV}.linux-$(uname -m).tar.gz" -C "${D}" dodoc README.html LICENSE.txt }