| 1 |
# Copyright 1999-2011 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: $ |
| 4 |
|
| 5 |
EAPI="3" |
| 6 |
PYTHON_DEPEND="2" |
| 7 |
|
| 8 |
inherit distutils |
| 9 |
|
| 10 |
DESCRIPTION="Conky weather forecast script with support for language files" |
| 11 |
HOMEPAGE="https://launchpad.net/~conky-companions" |
| 12 |
SRC_URI="https://launchpad.net/~conky-companions/+archive/ppa/+files/${PN}_${PV}.tar.gz" |
| 13 |
|
| 14 |
LICENSE="GPL-3" |
| 15 |
SLOT="0" |
| 16 |
KEYWORDS="~amd64 ~x86" |
| 17 |
IUSE="" |
| 18 |
|
| 19 |
RDEPEND="app-admin/conky" |
| 20 |
|
| 21 |
S=${WORKDIR}/src |
| 22 |
|
| 23 |
pkg_setup() { |
| 24 |
python_set_active_version 2 |
| 25 |
python_pkg_setup |
| 26 |
} |
| 27 |
|
| 28 |
src_prepare() { |
| 29 |
sed -i -e "s:/usr/bin/python:$(PYTHON -a):" conkyForecast || die |
| 30 |
distutils_src_prepare |
| 31 |
} |
| 32 |
|
| 33 |
pkg_postinst() { |
| 34 |
distutils_pkg_postinst |
| 35 |
|
| 36 |
elog "You have to define a partner id and registration code for " |
| 37 |
elog "the weather.com xoap. You need to copy the template from" |
| 38 |
elog "/usr/share/conkyforecast/conkyForecast.config into you account" |
| 39 |
elog "as ~/.conkyForecast.config and edit the respective fields." |
| 40 |
elog |
| 41 |
elog "More details can be found in the README file." |
| 42 |
} |