--- /usr/portage/app-office/taskcoach/taskcoach-1.3.40.ebuild 2014-05-31 00:24:35.000000000 +0200 +++ /var/lib/layman/seden/app-office/taskcoach/taskcoach-1.3.40.ebuild 2014-06-02 10:36:14.333151094 +0200 @@ -1,12 +1,12 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/taskcoach/taskcoach-1.3.40.ebuild,v 1.1 2014/05/30 22:24:35 caster Exp $ +# $Header: $ EAPI=5 -PYTHON_COMPAT=( python{2_6,2_7} ) +PYTHON_COMPAT=( python2_7 ) -inherit distutils-r1 eutils versionator +inherit distutils-r1 eutils MY_PN="TaskCoach" MY_P="${MY_PN}-${PV}" @@ -14,12 +14,14 @@ DESCRIPTION="Simple personal tasks and todo lists manager" HOMEPAGE="http://www.taskcoach.org http://pypi.python.org/pypi/TaskCoach" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" +RESTRICT="mirror" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="libnotify" -DEPEND=">=dev-python/wxpython-2.8.9.2:2.8[${PYTHON_USEDEP}] - >=dev-python/twisted-core-10.0" +DEPEND=" + >=dev-python/wxpython-2.8.9.2:2.8[${PYTHON_USEDEP}] + dev-python/twisted-core" RDEPEND="${DEPEND} libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] )" @@ -29,15 +31,8 @@ python_install_all() { distutils-r1_python_install_all - doicon "icons.in/${PN}.png" - make_desktop_entry ${PN}.py "Task Coach" ${PN} Office + dosym "${PN}.py" "/usr/bin/${PN}" + make_desktop_entry ${PN} "Task Coach" ${PN} Office } -pkg_postinst() { - if [[ -n ${REPLACING_VERSIONS} ]]; then - if ! version_is_at_least 1.3.40 ${REPLACING_VERSIONS}; then - elog "Since version 1.3.40, the Task Coach executable is called ${PN}.py" - fi - fi -}