summaryrefslogtreecommitdiff
path: root/app-office/gtg
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-office/gtg
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-office/gtg')
-rw-r--r--app-office/gtg/Manifest2
-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.ebuild74
-rw-r--r--app-office/gtg/gtg-0.3.ebuild70
-rw-r--r--app-office/gtg/metadata.xml29
6 files changed, 208 insertions, 0 deletions
diff --git a/app-office/gtg/Manifest b/app-office/gtg/Manifest
new file mode 100644
index 00000000000..2a8c7d34607
--- /dev/null
+++ b/app-office/gtg/Manifest
@@ -0,0 +1,2 @@
+DIST gtg-0.3.1.tar.gz 7902244 SHA256 57ceb3fa15298b69ce64cdd0a0a35ef3f4fd1151458ddff21f26a288cc02a0a7 SHA512 7d342971cd98fbe5b84ec2f2b4c918dd668d00699b6f0afb76b143acdbe79807525bcc02d2e189769c24de5a8b33d7eef4ce242e3c091fe09505daac55158f12 WHIRLPOOL 3d90cf709cfe15e0a303b0caea7c1102cf4e9c31441be7a390b8be32f34a20059bc3ff9b422bada593364b22047f95a2eb58c6a558c5f5f8f8af7f534db8fc5b
+DIST gtg-0.3.tar.gz 4692580 SHA256 7c55a2eb1e6a552ece4c023f92ebec85661d514e4035ff5e2bcfc1c56ec4e2bc SHA512 0d36a1fabc23457057ef8c5f3b6f945f317c0d840f5a63ebc50fba0a5823c729e5765b531a95f71acb4364cae373420fded6ce04958bd4f8b44669a43dc22191 WHIRLPOOL 9c95218b8e882637ed9b6b8017e1c67cea2521d08aa63cf1bcdd0f499b0b296784b077cce4447354913dff9958071aa91c792f003f42bac237b72318afb26909
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 00000000000..82db6ce36f3
--- /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 00000000000..56bf5ce5e9b
--- /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 00000000000..6e58f372af9
--- /dev/null
+++ b/app-office/gtg/gtg-0.3.1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="http://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/gtg-0.3.ebuild b/app-office/gtg/gtg-0.3.ebuild
new file mode 100644
index 00000000000..a4dc1625291
--- /dev/null
+++ b/app-office/gtg/gtg-0.3.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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://gtg.fritalk.com/"
+SRC_URI="http://launchpad.net/${PN}/${MY_PV}/${PV}/+download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-python/liblarch[${PYTHON_USEDEP}]
+ dev-python/configobj[${PYTHON_USEDEP}]
+ dev-python/dbus-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
+
+ # tweepy: missing python-r1 support
+ # geoloc: uses removed from tree bindings
+ sed -e "/GTG.backends.tweepy/d" \
+ -e "/GTG.plugins.geolocalized_tasks',/d" \
+ -e "/geolocalized-tasks.gtg-plugin/d" \
+ -i setup.py || die
+
+ # launchpad: missing dependency
+ # mantis: missing python-r1 support
+ # evolution: missing python-r1 support
+ rm GTG/backends/backend_launchpad.py \
+ GTG/backends/backend_mantis.py \
+ GTG/backends/backend_evolution.py \
+ GTG/backends/backend_twitter.py \
+ || die
+}
+
+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 00000000000..800b2371a62
--- /dev/null
+++ b/app-office/gtg/metadata.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>eva@gentoo.org</email>
+ </maintainer>
+ <maintainer>
+ <email>steev@gentoo.org</email>
+ </maintainer>
+ <maintainer>
+ <email>leio@gentoo.org</email>
+ <description>Backup maintainer, CC on bugs, assign to remaming</description>
+ </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>