pology-0.11-r1.ebuild 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/l10n-support/pology"
  5. PYTHON_COMPAT=( python2_7 )
  6. [[ ${PV} == 9999 ]] && VCS_ECLASS="subversion"
  7. inherit python-single-r1 cmake-utils bash-completion-r1 ${VCS_ECLASS}
  8. unset VCS_ECLASS
  9. DESCRIPTION="A framework for custom processing of PO files"
  10. HOMEPAGE="http://pology.nedohodnik.net"
  11. [[ ${PV} == 9999 ]] || SRC_URI="http://pology.nedohodnik.net//release/${P}.tar.bz2"
  12. LICENSE="GPL-3"
  13. SLOT="0"
  14. # Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
  15. [[ ${PV} == 9999 ]] || \
  16. KEYWORDS="amd64 x86"
  17. IUSE=""
  18. RDEPEND="
  19. dev-libs/libxslt
  20. dev-libs/libxml2
  21. dev-python/dbus-python[${PYTHON_USEDEP}]
  22. sys-devel/gettext
  23. ${PYTHON_DEPS}
  24. "
  25. DEPEND="${RDEPEND}
  26. app-text/docbook-xsl-stylesheets
  27. app-text/docbook-xml-dtd:4.5
  28. dev-python/epydoc[${PYTHON_USEDEP}]
  29. "
  30. REQUIRED_USE="${PYTHON_REQUIRED_USE}"
  31. # Magic on python parsing makes it impossible to make it parallel safe
  32. MAKEOPTS+=" -j1"
  33. src_prepare() {
  34. python_fix_shebang .
  35. }
  36. src_install() {
  37. cmake-utils_src_install
  38. dosym ../../../pology/syntax/kate/synder.xml /usr/share/apps/katepart/syntax/synder.xml
  39. newbashcomp "${ED}"/usr/share/pology/completion/bash/pology posieve
  40. bashcomp_alias {posieve,poediff}{,.py}
  41. einfo "You should also consider following packages to install:"
  42. einfo " app-text/aspell"
  43. einfo " app-text/hunspell"
  44. einfo " dev-vcs/git"
  45. einfo " dev-vcs/subversion"
  46. einfo " sci-misc/apertium"
  47. }