From 78e26ce8ff1d972faf1896f7247857599374031f Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 7 Feb 2020 10:35:09 +0100 Subject: app-i18n/pology: Switch to PYTHON_MULTI_USEDEP API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- app-i18n/pology/pology-0.12-r1.ebuild | 67 ---------------------------------- app-i18n/pology/pology-0.12-r2.ebuild | 69 +++++++++++++++++++++++++++++++++++ app-i18n/pology/pology-9999.ebuild | 4 +- 3 files changed, 72 insertions(+), 68 deletions(-) delete mode 100644 app-i18n/pology/pology-0.12-r1.ebuild create mode 100644 app-i18n/pology/pology-0.12-r2.ebuild diff --git a/app-i18n/pology/pology-0.12-r1.ebuild b/app-i18n/pology/pology-0.12-r1.ebuild deleted file mode 100644 index da1015d3f26b..000000000000 --- a/app-i18n/pology/pology-0.12-r1.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python2_7 ) -inherit bash-completion-r1 cmake kde.org python-single-r1 - -DESCRIPTION="A framework for custom processing of PO files" -HOMEPAGE="http://pology.nedohodnik.net" - -if [[ ${KDE_BUILD_TYPE} = release ]]; then - SRC_URI="http://pology.nedohodnik.net/release/${P}.tar.bz2" - KEYWORDS="amd64 x86" -fi - -LICENSE="GPL-3" -SLOT="0" -IUSE="" - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -BDEPEND=" - app-text/docbook-xsl-stylesheets - app-text/docbook-xml-dtd:4.5 -" -RDEPEND="${PYTHON_DEPS} - dev-libs/libxml2 - dev-libs/libxslt - dev-python/dbus-python[${PYTHON_USEDEP}] - sys-devel/gettext -" -DEPEND="${RDEPEND}" - -# Magic on python parsing makes it impossible to make it parallel safe -MAKEOPTS+=" -j1" - -src_prepare() { - cmake_src_prepare - sed -e "/DOC_INSTALL_DIR/s/^/#DONT/" -i CMakeLists.txt || die - python_fix_shebang . -} - -src_configure() { - local mycmakeargs=( - -DDOC_INSTALL_DIR="${EPREFIX}"/usr/share/doc/${PF} - -DCMAKE_DISABLE_FIND_PACKAGE_Epydoc=ON - ) - cmake_src_configure -} - -src_install() { - cmake_src_install - python_optimize - - dosym ../../../pology/syntax/kate/synder.xml /usr/share/apps/katepart/syntax/synder.xml - - newbashcomp "${ED}"/usr/share/pology/completion/bash/pology posieve - bashcomp_alias {posieve,poediff}{,.py} - - elog "You should also consider following packages to install:" - elog " app-text/aspell" - elog " app-text/hunspell" - elog " dev-vcs/git" - elog " dev-vcs/subversion" - elog " sci-misc/apertium" -} diff --git a/app-i18n/pology/pology-0.12-r2.ebuild b/app-i18n/pology/pology-0.12-r2.ebuild new file mode 100644 index 000000000000..fcb45eb16276 --- /dev/null +++ b/app-i18n/pology/pology-0.12-r2.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 ) +inherit bash-completion-r1 cmake kde.org python-single-r1 + +DESCRIPTION="A framework for custom processing of PO files" +HOMEPAGE="http://pology.nedohodnik.net" + +if [[ ${KDE_BUILD_TYPE} = release ]]; then + SRC_URI="http://pology.nedohodnik.net/release/${P}.tar.bz2" + KEYWORDS="amd64 x86" +fi + +LICENSE="GPL-3" +SLOT="0" +IUSE="" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +BDEPEND=" + app-text/docbook-xsl-stylesheets + app-text/docbook-xml-dtd:4.5 +" +RDEPEND="${PYTHON_DEPS} + dev-libs/libxml2 + dev-libs/libxslt + $(python_gen_cond_dep ' + dev-python/dbus-python[${PYTHON_MULTI_USEDEP}] + ') + sys-devel/gettext +" +DEPEND="${RDEPEND}" + +# Magic on python parsing makes it impossible to make it parallel safe +MAKEOPTS+=" -j1" + +src_prepare() { + cmake_src_prepare + sed -e "/DOC_INSTALL_DIR/s/^/#DONT/" -i CMakeLists.txt || die + python_fix_shebang . +} + +src_configure() { + local mycmakeargs=( + -DDOC_INSTALL_DIR="${EPREFIX}"/usr/share/doc/${PF} + -DCMAKE_DISABLE_FIND_PACKAGE_Epydoc=ON + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + python_optimize + + dosym ../../../pology/syntax/kate/synder.xml /usr/share/apps/katepart/syntax/synder.xml + + newbashcomp "${ED}"/usr/share/pology/completion/bash/pology posieve + bashcomp_alias {posieve,poediff}{,.py} + + elog "You should also consider following packages to install:" + elog " app-text/aspell" + elog " app-text/hunspell" + elog " dev-vcs/git" + elog " dev-vcs/subversion" + elog " sci-misc/apertium" +} diff --git a/app-i18n/pology/pology-9999.ebuild b/app-i18n/pology/pology-9999.ebuild index 1670d22e95ef..1347ffb8ba86 100644 --- a/app-i18n/pology/pology-9999.ebuild +++ b/app-i18n/pology/pology-9999.ebuild @@ -27,7 +27,9 @@ BDEPEND=" RDEPEND="${PYTHON_DEPS} dev-libs/libxml2 dev-libs/libxslt - dev-python/dbus-python[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/dbus-python[${PYTHON_MULTI_USEDEP}] + ') sys-devel/gettext " DEPEND="${RDEPEND}" -- cgit v1.2.3-65-gdbad