pology-0.12.ebuild 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright 1999-2015 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. [[ ${PV} == 9999 ]] || \
  15. KEYWORDS="~amd64 ~x86"
  16. IUSE=""
  17. RDEPEND="
  18. dev-libs/libxslt
  19. dev-libs/libxml2
  20. dev-python/dbus-python[${PYTHON_USEDEP}]
  21. sys-devel/gettext
  22. ${PYTHON_DEPS}
  23. "
  24. DEPEND="${RDEPEND}
  25. app-text/docbook-xsl-stylesheets
  26. app-text/docbook-xml-dtd:4.5
  27. dev-python/epydoc[${PYTHON_USEDEP}]
  28. "
  29. REQUIRED_USE="${PYTHON_REQUIRED_USE}"
  30. # Magic on python parsing makes it impossible to make it parallel safe
  31. MAKEOPTS+=" -j1"
  32. src_prepare() {
  33. python_fix_shebang .
  34. }
  35. src_install() {
  36. cmake-utils_src_install
  37. dosym ../../../pology/syntax/kate/synder.xml /usr/share/apps/katepart/syntax/synder.xml
  38. newbashcomp "${ED}"/usr/share/pology/completion/bash/pology posieve
  39. bashcomp_alias {posieve,poediff}{,.py}
  40. einfo "You should also consider following packages to install:"
  41. einfo " app-text/aspell"
  42. einfo " app-text/hunspell"
  43. einfo " dev-vcs/git"
  44. einfo " dev-vcs/subversion"
  45. einfo " sci-misc/apertium"
  46. }