editra-0.7.20-r1.ebuild 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 distutils-r1 eutils fdo-mime
  6. MY_PN=${PN/e/E}
  7. DESCRIPTION="Multi-platform text editor supporting over 50 programming languages"
  8. HOMEPAGE="http://editra.org https://pypi.python.org/pypi/Editra"
  9. SRC_URI="http://editra.org/uploads/src/${MY_PN}-${PV}.tar.gz"
  10. LICENSE="wxWinLL-3.1"
  11. SLOT="0"
  12. KEYWORDS="amd64 x86"
  13. IUSE="spell"
  14. DEPEND="
  15. >=dev-python/wxpython-2.8.9.2:2.8[${PYTHON_USEDEP}]
  16. >=dev-python/setuptools-0.6[${PYTHON_USEDEP}]"
  17. # setuptools is RDEPEND because it's used by the runtime for installing plugins
  18. RDEPEND="${DEPEND}
  19. spell? ( dev-python/pyenchant[${PYTHON_USEDEP}] )"
  20. S="${WORKDIR}"/${MY_PN}-${PV}
  21. python_compile() {
  22. # https://code.google.com/p/editra/issues/detail?id=481
  23. distutils-r1_python_compile --no-clean
  24. }
  25. python_install() {
  26. distutils-r1_python_install --no-clean
  27. }
  28. python_install_all() {
  29. distutils-r1_python_install_all
  30. doicon "${S}"/pixmaps/editra.png
  31. make_desktop_entry editra Editra editra "Utility;TextEditor"
  32. dodoc FAQ THANKS
  33. }
  34. pkg_postinst() {
  35. fdo-mime_desktop_database_update
  36. }
  37. pkg_postrm() {
  38. fdo-mime_desktop_database_update
  39. }