forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-office/taskcoach: 1.4.2 (bug #522420)
Package-Manager: portage-2.2.26
- Loading branch information
Showing
3 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
app-office/taskcoach/files/taskcoach-1.4.2-fix-desktop-file.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From dd39524692896995daabc69c7090ecf66e64858e Mon Sep 17 00:00:00 2001 | ||
From: Sebastian Pipping <[email protected]> | ||
Date: Sun, 10 Jan 2016 01:34:13 +0100 | ||
Subject: [PATCH] Fix .desktop file | ||
|
||
error: value "task;todo;reminder" for locale string list key "Keywords" in group "Desktop Entry" does not have a semicolon (';') as trailing character | ||
--- | ||
build.in/linux_common/taskcoach.desktop | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/build.in/linux_common/taskcoach.desktop b/build.in/linux_common/taskcoach.desktop | ||
index 9382b0b..b1a4bd1 100644 | ||
--- a/build.in/linux_common/taskcoach.desktop | ||
+++ b/build.in/linux_common/taskcoach.desktop | ||
@@ -7,4 +7,4 @@ Icon=taskcoach | ||
Terminal=false | ||
Type=Application | ||
Categories=Office;Calendar; | ||
-Keywords=task;todo;reminder | ||
+Keywords=task;todo;reminder; | ||
-- | ||
2.7.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
|
||
PYTHON_COMPAT=( python2_7 ) | ||
|
||
inherit distutils-r1 eutils versionator | ||
|
||
MY_PN="TaskCoach" | ||
MY_P="${MY_PN}-${PV}" | ||
|
||
DESCRIPTION="Simple personal tasks and todo lists manager" | ||
HOMEPAGE="http://www.taskcoach.org https://pypi.python.org/pypi/TaskCoach" | ||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" | ||
LICENSE="GPL-3" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="libnotify" | ||
DEPEND="|| ( | ||
>=dev-python/wxpython-2.8.9.2:2.8[${PYTHON_USEDEP}] | ||
dev-python/wxpython:3.0[${PYTHON_USEDEP}] | ||
) | ||
>=dev-python/twisted-core-10.0" | ||
RDEPEND="${DEPEND} | ||
libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] )" | ||
|
||
S="${WORKDIR}/${MY_P}" | ||
|
||
DOCS=( CHANGES.txt README.txt ) | ||
|
||
src_prepare() { | ||
epatch "${FILESDIR}"/${P}-fix-desktop-file.patch | ||
} | ||
|
||
python_install_all() { | ||
distutils-r1_python_install_all | ||
|
||
doicon "icons.in/${PN}.png" | ||
make_desktop_entry ${PN}.py "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 | ||
} |