summaryrefslogtreecommitdiff
path: root/app-office/gtg
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-office/gtg
reinit the tree, so we can have metadata
Diffstat (limited to 'app-office/gtg')
-rw-r--r--app-office/gtg/Manifest7
-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.xml29
5 files changed, 142 insertions, 0 deletions
diff --git a/app-office/gtg/Manifest b/app-office/gtg/Manifest
new file mode 100644
index 000000000000..be0f04d1e407
--- /dev/null
+++ b/app-office/gtg/Manifest
@@ -0,0 +1,7 @@
+AUX gtg-0.3.1-desktop.patch 334 SHA256 faf36515f2bc6cdb3f3b334a761620370c9a17ac24b93db3ea29177770f9d117 SHA512 3d3b0b1c46fe352183d7a2d5b9ee65db995a1fe8bf10e35033a7c51261700cbfb8341371553eb95e11a8d502b70caeb588a41e8377014e85f30d20df97ee8449 WHIRLPOOL fbe91e4e2a253ee2ad31b31934f0a7fb778dc2d6afa6d20ffe0a27239e9e996bc45fd32097405a33f104a9bcc92819304f72a449ffc2f81d0ca4d7c5781699e1
+AUX gtg-0.3.1-locales.patch 584 SHA256 628539e0e8b2ba9fdef7189520cf97b17b98cdfec0501756f101ad6f06952254 SHA512 4a62d55e0bdf4cb0bfaa3edcbf7f1573645c2d5505ec98c17529437545bd5f18374a561063d5e5d163bea0064d9daa9f82a29ee2f8ebeb00833c678d47446142 WHIRLPOOL efdaebe4e8d2e2eb77e334c4e16101362dbc2e5dbeb84c73bcccc3b09edb73c4d263762055e4af50021ad145b5a1eedddca6696e6d9d4bd6ee351415b65fbe5f
+DIST gtg-0.3.1.tar.gz 7902244 SHA256 57ceb3fa15298b69ce64cdd0a0a35ef3f4fd1151458ddff21f26a288cc02a0a7 SHA512 7d342971cd98fbe5b84ec2f2b4c918dd668d00699b6f0afb76b143acdbe79807525bcc02d2e189769c24de5a8b33d7eef4ce242e3c091fe09505daac55158f12 WHIRLPOOL 3d90cf709cfe15e0a303b0caea7c1102cf4e9c31441be7a390b8be32f34a20059bc3ff9b422bada593364b22047f95a2eb58c6a558c5f5f8f8af7f534db8fc5b
+EBUILD gtg-0.3.1.ebuild 1929 SHA256 c50d88c7257897399a82bbc4f03df943c27f0c8637abfc0e35e92d29e4b3170c SHA512 d8191011dc938d8f2f01193ebdd18411f3635772b9d08252a7da8046072c2b8e6c971be400c1f9877c9e66bd86fb261361b5e808f2aa74495ba071ded341de45 WHIRLPOOL 99123599927b8cf784a0d72216691ad9fb8c267ed36d2fbc097e9ce102120d6b5644eed575199609df6ac9120201ee437c79b23a0cb08503ace5cba34df532e8
+MISC ChangeLog 2462 SHA256 7644ab638ef4eb7f709ef18bd65d5ad6e6c1003a16c2eeab605e3ce1ae96caef SHA512 35d3ef952395f05109dbfa0b19a68afdbad2d8cfb8713fdaf2eae47d0d7f33366eab10dcc4afcd637850102d65829303584cd283b15c1f9d3407b6b3b434f43b WHIRLPOOL 6ad46d5b7fd779fbe162b744a0f62be05ad5849c00ff4c9a485b34cffb4f7b81cfeada0ba29e15132e7016444f273113d6d81712026d69fee33b96bef58ff439
+MISC ChangeLog-2015 3055 SHA256 5ac726d12b37adb0f4997aaaa4403f0dbfd367e8cd826077755cf1ef972de5d8 SHA512 cc57f8beaad8754c58112e861dcb726b43ca15335264e7bb53f6d457471b234bc1333868ea3d38c8ede97e61f9e18a71918d90b82dd51534607fbc6c59b466ff WHIRLPOOL 11f9a0fa1b19ab9bbdde4de327514938d21193ac938c7bc6b99406993b4650c8f14238f3e81c2eabbd459287c6566201aa78d4663a1a17aaf0a95f6e0b49586c
+MISC metadata.xml 1117 SHA256 7fd2b5d9aabbc719fe33a5f7189d4e0551a0d33f4b9deb971b9e1bcd3c95d288 SHA512 23b42dd1428241f4fad416dd90a6692478062fb02db8e8d7c0bbcafdeb9e7f311ea3cebae223b6315a340a274b1e8b9b216cdda273dbd057ce57f5729802f2df WHIRLPOOL b1037991c42edb4a47560b31f9a4dd4d3be9360b7d6c6362349bd2c63d0aae10bf6f41eb84b5b1ea807e0d9cc1904e7efb5f4e7c16dd26e3c6724e3ab2fc9060
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..ab50093bb5d5
--- /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 type="person">
+ <email>eva@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>steev@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <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>