1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
7 inherit bash-completion-r1 cmake kde.org python-single-r1
9 DESCRIPTION="A framework for custom processing of PO files"
10 HOMEPAGE="http://pology.nedohodnik.net"
12 if [[ ${KDE_BUILD_TYPE} = release ]]; then
13 SRC_URI="http://pology.nedohodnik.net/release/${P}.tar.bz2"
21 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
24 app-text/docbook-xsl-stylesheets
25 app-text/docbook-xml-dtd:4.5
27 RDEPEND="${PYTHON_DEPS}
30 $(python_gen_cond_dep '
31 dev-python/dbus-python[${PYTHON_MULTI_USEDEP}]
37 # Magic on python parsing makes it impossible to make it parallel safe
42 sed -e "/DOC_INSTALL_DIR/s/^/#DONT/" -i CMakeLists.txt || die
48 -DDOC_INSTALL_DIR="${EPREFIX}"/usr/share/doc/${PF}
49 -DCMAKE_DISABLE_FIND_PACKAGE_Epydoc=ON
50 -DCMAKE_DISABLE_FIND_PACKAGE_Pygments=ON
59 dosym ../../../pology/syntax/kate/synder.xml /usr/share/apps/katepart/syntax/synder.xml
61 newbashcomp "${ED}"/usr/share/pology/completion/bash/pology posieve
62 bashcomp_alias {posieve,poediff}{,.py}
64 elog "You should also consider following packages to install:"
65 elog " app-text/aspell"
66 elog " app-text/hunspell"
68 elog " dev-vcs/subversion"
69 elog " sci-misc/apertium"