diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/conkyforecast/conkyforecast-2.24-r1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/conkyforecast/conkyforecast-2.24-r1.ebuild')
-rw-r--r-- | app-admin/conkyforecast/conkyforecast-2.24-r1.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/app-admin/conkyforecast/conkyforecast-2.24-r1.ebuild b/app-admin/conkyforecast/conkyforecast-2.24-r1.ebuild new file mode 100644 index 000000000000..2a1f73e2ee42 --- /dev/null +++ b/app-admin/conkyforecast/conkyforecast-2.24-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# upstream broke setup.py to install into /usr/share... +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Conky weather forecast script with support for language files" +HOMEPAGE="https://launchpad.net/~conky-companions" +SRC_URI="https://launchpad.net/~conky-companions/+archive/ppa/+files/${PN}_${PV}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="app-admin/conky" + +S=${WORKDIR}/src + +python_prepare_all() { + sed -i -e "s:pythoncmd=.*$:pythoncmd=${EPYTHON}:" conkyForecast* || die + + distutils-r1_python_prepare_all +} + +python_install() { + distutils-r1_python_install + + python_optimize "${ED%/}"/usr/share/${PN} +} + +pkg_postinst() { + elog "You have to define a partner id and registration code for " + elog "the weather.com xoap. You need to copy the template from" + elog "/usr/share/conkyforecast/conkyForecast.config into you account" + elog "as ~/.conkyForecast.config and edit the respective fields." + elog + elog "More details can be found in the README file." +} |