diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-office/gtg/gtg-0.3.1.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-office/gtg/gtg-0.3.1.ebuild')
-rw-r--r-- | app-office/gtg/gtg-0.3.1.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
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 +} |