1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 # upstream broke setup.py to install into /usr/share...
8 DISTUTILS_SINGLE_IMPL=1
9 PYTHON_COMPAT=( python2_7 )
13 DESCRIPTION="Conky weather forecast script with support for language files"
14 HOMEPAGE="https://launchpad.net/~conky-companions"
15 SRC_URI="https://launchpad.net/~conky-companions/+archive/ppa/+files/${PN}_${PV}.tar.gz"
19 KEYWORDS="~amd64 ~x86"
22 RDEPEND="app-admin/conky"
26 python_prepare_all() {
27 sed -i -e "s:pythoncmd=.*$:pythoncmd=${EPYTHON}:" conkyForecast* || die
29 distutils-r1_python_prepare_all
33 distutils-r1_python_install
35 python_optimize "${ED%/}"/usr/share/${PN}
39 elog "You have to define a partner id and registration code for "
40 elog "the weather.com xoap. You need to copy the template from"
41 elog "/usr/share/conkyforecast/conkyForecast.config into you account"
42 elog "as ~/.conkyForecast.config and edit the respective fields."
44 elog "More details can be found in the README file."