1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 )
9 inherit distutils-r1 eutils versionator
14 DESCRIPTION="Simple personal tasks and todo lists manager"
15 HOMEPAGE="http://www.taskcoach.org https://pypi.python.org/pypi/TaskCoach"
16 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
19 KEYWORDS="~amd64 ~x86"
22 >=dev-python/wxpython-2.8.9.2:2.8[${PYTHON_USEDEP}]
23 dev-python/wxpython:3.0[${PYTHON_USEDEP}]
25 >=dev-python/twisted-core-10.0"
27 libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] )"
29 S="${WORKDIR}/${MY_P}"
31 DOCS=( CHANGES.txt README.txt )
34 epatch "${FILESDIR}"/${P}-fix-desktop-file.patch
37 python_install_all() {
38 distutils-r1_python_install_all
40 doicon "icons.in/${PN}.png"
41 make_desktop_entry ${PN}.py "Task Coach" ${PN} Office
45 if [[ -n ${REPLACING_VERSIONS} ]]; then
46 if ! version_is_at_least 1.3.40 ${REPLACING_VERSIONS}; then
47 elog "Since version 1.3.40, the Task Coach executable is called ${PN}.py"