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 BB62F138334 for ; Thu, 22 Nov 2018 20:25:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9A7DEE0999; Thu, 22 Nov 2018 20:25:40 +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 61120E0998 for ; Thu, 22 Nov 2018 20:25:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 3C914335CE9 for ; Thu, 22 Nov 2018 20:25:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 86106472 for ; Thu, 22 Nov 2018 20:25:36 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1542918325.c726bf64a7a5626373f961fe18c6f661d5070a05.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/retext/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-editors/retext/retext-9999.ebuild X-VCS-Directories: app-editors/retext/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c726bf64a7a5626373f961fe18c6f661d5070a05 X-VCS-Branch: master Date: Thu, 22 Nov 2018 20:25:36 +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-Archives-Salt: 37e8b3b5-7372-41f9-90e9-1a079905da74 X-Archives-Hash: bfdb1cb245f979240eeb5d4aa5f1efc5 commit: c726bf64a7a5626373f961fe18c6f661d5070a05 Author: Nils Freydank posteo de> AuthorDate: Sat Nov 17 12:02:50 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Nov 22 20:25:25 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c726bf64 app-editors/retext: Update live ebuild Signed-off-by: Nils Freydank posteo.de> Package-Manager: Portage-2.3.51, Repoman-2.3.12 Closes: https://github.com/gentoo/gentoo/pull/10166 Signed-off-by: Michał Górny gentoo.org> app-editors/retext/retext-9999.ebuild | 41 ++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/app-editors/retext/retext-9999.ebuild b/app-editors/retext/retext-9999.ebuild index b69ab5bac2a..9067cf820ea 100644 --- a/app-editors/retext/retext-9999.ebuild +++ b/app-editors/retext/retext-9999.ebuild @@ -1,13 +1,13 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 -PYTHON_COMPAT=( python3_{4,5,6} ) +# no pypy{,3} support as PyQt5 does not support it at 2018-11-18 +# https://bitbucket.org/pypy/compatibility/wiki/Home#!gui-library-bindings +PYTHON_COMPAT=( python3_{4,5,6,7} ) -PLOCALES="ca cs cy da de es et eu fr hu it ja pl pt pt_BR ru sk sr sr@latin uk zh_TW" - -inherit distutils-r1 virtualx l10n xdg-utils +inherit distutils-r1 gnome2-utils virtualx xdg-utils MY_PN="ReText" MY_P="${MY_PN}-${PV/_/~}" @@ -25,38 +25,45 @@ if [[ ${PV} == *9999 ]] S="${WORKDIR}"/${MY_P} fi -LICENSE="GPL-2" +LICENSE="GPL-2+" SLOT="0" IUSE="+spell" RDEPEND=" + dev-python/chardet[${PYTHON_USEDEP}] dev-python/docutils[${PYTHON_USEDEP}] dev-python/markdown[${PYTHON_USEDEP}] - >=dev-python/markups-2.0[${PYTHON_USEDEP}] - >=dev-python/chardet-2.3[${PYTHON_USEDEP}] + dev-python/markups[${PYTHON_USEDEP}] dev-python/pygments[${PYTHON_USEDEP}] + dev-python/python-markdown-math[${PYTHON_USEDEP}] dev-python/PyQt5[gui,network,printsupport,webengine,widgets,${PYTHON_USEDEP}] spell? ( dev-python/pyenchant[${PYTHON_USEDEP}] ) " +DEPEND=" + ${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( x11-base/xorg-server[xvfb] ) +" -remove_locale() { - find "${ED}" -name "retext_${1}.qm" -delete || die "Failed to remove locale ${1}." +src_test() { + virtx distutils-r1_src_test } python_test() { - virtx esetup.py test -} - -python_install_all() { - distutils-r1_python_install_all - - l10n_for_each_disabled_locale_do remove_locale + esetup.py test } pkg_postinst() { xdg_desktop_database_update + gnome2_icon_cache_update + + einfo "Starting with retext-7.0.4 the markdown-math plugin is installed." + einfo "Note that you can use different math delimiters, e.g. \(...\) for inline math." + einfo "For more details take a look at:" + einfo "https://github.com/mitya57/python-markdown-math#math-delimiters" } pkg_postrm() { + gnome2_icon_cache_update xdg_desktop_database_update }