forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gtg-0.3.ebuild
70 lines (59 loc) · 1.85 KB
/
gtg-0.3.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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="https://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
}