gtg-0.3.ebuild 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. PYTHON_COMPAT=( python2_7 )
  5. inherit eutils fdo-mime gnome2-utils distutils-r1 versionator
  6. MY_PV="$(get_version_component_range 1-2)"
  7. DESCRIPTION="Personal organizer for the GNOME desktop environment"
  8. HOMEPAGE="http://gtg.fritalk.com/"
  9. SRC_URI="https://launchpad.net/${PN}/${MY_PV}/${PV}/+download/${P}.tar.gz"
  10. LICENSE="GPL-3"
  11. SLOT="0"
  12. KEYWORDS="~amd64 ~x86"
  13. IUSE=""
  14. RDEPEND="
  15. dev-python/liblarch[${PYTHON_USEDEP}]
  16. dev-python/configobj[${PYTHON_USEDEP}]
  17. dev-python/dbus-python[${PYTHON_USEDEP}]
  18. dev-python/pycairo[${PYTHON_USEDEP}]
  19. dev-python/pygobject:2[${PYTHON_USEDEP}]
  20. dev-python/pygtk[${PYTHON_USEDEP}]
  21. dev-python/python-dateutil[${PYTHON_USEDEP}]
  22. dev-python/pyxdg[${PYTHON_USEDEP}]
  23. dev-python/simplejson[${PYTHON_USEDEP}]
  24. "
  25. DEPEND="${RDEPEND}"
  26. python_prepare_all() {
  27. # Plugins are voluntarily left automagic as application has a nice way
  28. # to suggest missing dependencies. We only remove the ones that cannot
  29. # work on gentoo.
  30. # Backends should be enabled via USE flag when pulling extra deps
  31. # tweepy: missing python-r1 support
  32. # geoloc: uses removed from tree bindings
  33. sed -e "/GTG.backends.tweepy/d" \
  34. -e "/GTG.plugins.geolocalized_tasks',/d" \
  35. -e "/geolocalized-tasks.gtg-plugin/d" \
  36. -i setup.py || die
  37. # launchpad: missing dependency
  38. # mantis: missing python-r1 support
  39. # evolution: missing python-r1 support
  40. rm GTG/backends/backend_launchpad.py \
  41. GTG/backends/backend_mantis.py \
  42. GTG/backends/backend_evolution.py \
  43. GTG/backends/backend_twitter.py \
  44. || die
  45. }
  46. pkg_preinst() {
  47. gnome2_icon_savelist
  48. }
  49. pkg_postinst() {
  50. fdo-mime_desktop_database_update
  51. fdo-mime_mime_database_update
  52. gnome2_icon_cache_update
  53. }
  54. pkg_postrm() {
  55. fdo-mime_desktop_database_update
  56. fdo-mime_mime_database_update
  57. gnome2_icon_cache_update
  58. }