From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C5DD5138351 for ; Tue, 28 Jan 2020 22:50:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9BEEE086F; Tue, 28 Jan 2020 22:50:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A90AEE086C for ; Tue, 28 Jan 2020 22:50:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 974C134E475 for ; Tue, 28 Jan 2020 22:50:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8B81791 for ; Tue, 28 Jan 2020 22:50:13 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1580251798.c6b7729fb8374d57be48575b08939806a7cfda2e.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/pology/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-i18n/pology/pology-9999.ebuild X-VCS-Directories: app-i18n/pology/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: c6b7729fb8374d57be48575b08939806a7cfda2e X-VCS-Branch: master Date: Tue, 28 Jan 2020 22:50:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 36016976-bb66-404d-a824-52cc972598f0 X-Archives-Hash: 5ec7c182e95e583fb9210626c46009c1 commit: c6b7729fb8374d57be48575b08939806a7cfda2e Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Jan 28 22:34:42 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Jan 28 22:49:58 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6b7729f app-i18n/pology: EAPI-7, use kde.org, cmake.eclass, disable epydoc A lot has happened since this was last touched, unfortunately no py3. Yet. Upstream repository switched to git. Fix doc install dir. Run python_optimize. Bug: https://bugs.gentoo.org/707036 Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner gentoo.org> app-i18n/pology/pology-9999.ebuild | 64 +++++++++++++++++++++----------------- 1 file changed, 35 insertions(+), 29 deletions(-) diff --git a/app-i18n/pology/pology-9999.ebuild b/app-i18n/pology/pology-9999.ebuild index a1c06c9a171..1670d22e95e 100644 --- a/app-i18n/pology/pology-9999.ebuild +++ b/app-i18n/pology/pology-9999.ebuild @@ -1,61 +1,67 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/l10n-support/pology" PYTHON_COMPAT=( python2_7 ) - -[[ ${PV} == 9999 ]] && VCS_ECLASS="subversion" - -inherit python-single-r1 cmake-utils bash-completion-r1 ${VCS_ECLASS} -unset VCS_ECLASS +inherit bash-completion-r1 cmake kde.org python-single-r1 DESCRIPTION="A framework for custom processing of PO files" HOMEPAGE="http://pology.nedohodnik.net" -[[ ${PV} == 9999 ]] || SRC_URI="http://pology.nedohodnik.net//release/${P}.tar.bz2" + +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" -[[ ${PV} == 9999 ]] || \ -KEYWORDS="~amd64 ~x86" IUSE="" -RDEPEND=" - dev-libs/libxslt +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 - ${PYTHON_DEPS} -" -DEPEND="${RDEPEND} - app-text/docbook-xsl-stylesheets - app-text/docbook-xml-dtd:4.5 - dev-python/epydoc[${PYTHON_USEDEP}] " - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" +DEPEND="${RDEPEND}" # Magic on python parsing makes it impossible to make it parallel safe MAKEOPTS+=" -j1" src_prepare() { - cmake-utils_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-utils_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} - einfo "You should also consider following packages to install:" - einfo " app-text/aspell" - einfo " app-text/hunspell" - einfo " dev-vcs/git" - einfo " dev-vcs/subversion" - einfo " sci-misc/apertium" + 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" }