summaryrefslogtreecommitdiff
path: root/app-office/gtg
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-office/gtg
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-office/gtg')
-rw-r--r--app-office/gtg/Manifest5
-rw-r--r--app-office/gtg/files/gtg-0.3.1-desktop.patch13
-rw-r--r--app-office/gtg/files/gtg-0.3.1-locales.patch20
-rw-r--r--app-office/gtg/gtg-0.3.1.ebuild73
-rw-r--r--app-office/gtg/metadata.xml25
5 files changed, 136 insertions, 0 deletions
diff --git a/app-office/gtg/Manifest b/app-office/gtg/Manifest
new file mode 100644
index 000000000000..0cfd6ef8ff3d
--- /dev/null
+++ b/app-office/gtg/Manifest
@@ -0,0 +1,5 @@
+AUX gtg-0.3.1-desktop.patch 334 BLAKE2B 639f2eb22b67def21485d2837ef9ed03860dd6595fc69b72cb07cfb62c6132949cc298e0d72030ddbcd0990cc2b237e1db8b022f3ec26af5a3fa81a5d5b5e371 SHA512 3d3b0b1c46fe352183d7a2d5b9ee65db995a1fe8bf10e35033a7c51261700cbfb8341371553eb95e11a8d502b70caeb588a41e8377014e85f30d20df97ee8449
+AUX gtg-0.3.1-locales.patch 584 BLAKE2B a6a7e8797a0e082e77545101455ebf70b40bc72f706471f85c4ba9b0a0d5293c61bd6afdd56d478b554eca882bf309db73a5e8f9c02f9eec912022fdf710a569 SHA512 4a62d55e0bdf4cb0bfaa3edcbf7f1573645c2d5505ec98c17529437545bd5f18374a561063d5e5d163bea0064d9daa9f82a29ee2f8ebeb00833c678d47446142
+DIST gtg-0.3.1.tar.gz 7902244 BLAKE2B 843c0df194450e9fcc718f94b83973209184ab041f42751ff1a32275c839b5e0bc80fe7aa903d91ce44d5999b496cd50218d8656c060d70fcdd3f3561f4eacb0 SHA512 7d342971cd98fbe5b84ec2f2b4c918dd668d00699b6f0afb76b143acdbe79807525bcc02d2e189769c24de5a8b33d7eef4ce242e3c091fe09505daac55158f12
+EBUILD gtg-0.3.1.ebuild 1929 BLAKE2B 6cf7deef0b847b541cc38e20a38f60f083d7bb73213e02f2a9a5f0db4cc06cdb690f9e654a07c7e4d806d15fb490ed420026a013bba301844dc2a6ae1dc598ee SHA512 d8191011dc938d8f2f01193ebdd18411f3635772b9d08252a7da8046072c2b8e6c971be400c1f9877c9e66bd86fb261361b5e808f2aa74495ba071ded341de45
+MISC metadata.xml 961 BLAKE2B 2f4308fd2c31cb88a84a87c7e0000d18e47fab4dda0f68d9ca034366d198b7dde3b25f3c3512afac95f795da3766c2da2d8540320af692d56e601b381be56b32 SHA512 373c7e0baeaa24aa7416be88b2526b7de7912bbcf10acea35e80e649f93a8d6a0f2ea3f2df45cb0d466fb6e9893e66aa6690ffb58cd39603fd2d26146bfff4ef
diff --git a/app-office/gtg/files/gtg-0.3.1-desktop.patch b/app-office/gtg/files/gtg-0.3.1-desktop.patch
new file mode 100644
index 000000000000..82db6ce36f3b
--- /dev/null
+++ b/app-office/gtg/files/gtg-0.3.1-desktop.patch
@@ -0,0 +1,13 @@
+Fix desktop-file-validate warning.
+
+--- a/gtg.desktop 2014-11-01 11:23:31.101881704 +0100
++++ b/gtg.desktop 2014-11-01 11:23:37.349775014 +0100
+@@ -14,7 +14,7 @@
+ StartupNotify=true
+ X-Ayatana-Desktop-Shortcuts=NewTask
+
+-[NewTask Shortcut Group]
++[X-NewTask Shortcut Group]
+ Name=New Task
+ Exec=gtg_new_task
+ TargetEnvironment=Unity
diff --git a/app-office/gtg/files/gtg-0.3.1-locales.patch b/app-office/gtg/files/gtg-0.3.1-locales.patch
new file mode 100644
index 000000000000..56bf5ce5e9b1
--- /dev/null
+++ b/app-office/gtg/files/gtg-0.3.1-locales.patch
@@ -0,0 +1,20 @@
+Do not install unwanted locales.
+
+--- a/setup.py 2014-11-01 11:21:49.679613605 +0100
++++ b/setup.py 2014-11-01 11:26:36.305719135 +0100
+@@ -101,9 +101,15 @@
+
+ PO_DIR = 'po'
+ MO_DIR = os.path.join('build', 'po')
++LINGUAS = os.environ.get('LINGUAS', '*').split(' ')
+
+ for po in glob.glob(os.path.join(PO_DIR, '*.po')):
+ lang = os.path.basename(po[:-3])
++
++ # Skip unwanted locales
++ if lang not in LINGUAS and '*' not in LINGUAS:
++ continue
++
+ mo = os.path.join(MO_DIR, lang, 'gtg.mo')
+ target_dir = os.path.dirname(mo)
+ if not os.path.isdir(target_dir):
diff --git a/app-office/gtg/gtg-0.3.1.ebuild b/app-office/gtg/gtg-0.3.1.ebuild
new file mode 100644
index 000000000000..05a309c14361
--- /dev/null
+++ b/app-office/gtg/gtg-0.3.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils fdo-mime gnome2-utils distutils-r1 versionator
+
+MY_PV="$(get_version_component_range 1-2)"
+DESCRIPTION="Personal organizer for the GNOME desktop environment"
+HOMEPAGE="http://gtgnome.net/"
+SRC_URI="https://launchpad.net/${PN}/${MY_PV}/${PV}/+download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-python/configobj[${PYTHON_USEDEP}]
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/liblarch[${PYTHON_USEDEP}]
+ dev-python/notify-python[${PYTHON_USEDEP}]
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ dev-python/pyxdg[${PYTHON_USEDEP}]
+ dev-python/simplejson[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+
+python_prepare_all() {
+ # Plugins are voluntarily left automagic as application has a nice way
+ # to suggest missing dependencies. We only remove the ones that cannot
+ # work on gentoo.
+ # Backends should be enabled via USE flag when pulling extra deps
+
+ # geoloc: uses removed from tree bindings
+ sed -e "/GTG.plugins.geolocalized_tasks',/d" \
+ -e "/geolocalized-tasks.gtg-plugin/d" \
+ -i setup.py || die
+
+ # launchpad: missing dependency
+ # evolution: missing python-r1 support
+ rm GTG/backends/backend_launchpad.py \
+ GTG/backends/backend_evolution.py \
+ || die
+
+ # Respect LINGUAS
+ epatch "${FILESDIR}"/${PN}-0.3.1-locales.patch
+
+ # Fix validation warning
+ epatch "${FILESDIR}"/${PN}-0.3.1-desktop.patch
+
+ distutils-r1_python_prepare_all
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/app-office/gtg/metadata.xml b/app-office/gtg/metadata.xml
new file mode 100644
index 000000000000..7d791919d833
--- /dev/null
+++ b/app-office/gtg/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>eva@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>leio@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ Getting Things Gnome! (gtg) is a personal organizer for the GNOME desktop that
+ was inspired by the Getting Things Done methodology (GTD). It is not a GTD only
+ software as it aims for flexibility, adaptability and ease of use.
+
+ GTG wants to help you to track everything you need to do and need to know, from
+ very small tasks to big projects.
+
+ GTG uses a very handy text edition system for task creation and edition.
+ The task editor can automatically recognize metadata such as tags and subtasks
+ only by the use of a very simple syntax.
+ </longdescription>
+ <upstream>
+ <remote-id type="launchpad">gtg</remote-id>
+ </upstream>
+</pkgmetadata>