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 06EED138330 for ; Fri, 25 May 2018 22:32:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1AC27E0876; Fri, 25 May 2018 22:32:07 +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 EA360E0876 for ; Fri, 25 May 2018 22:32:06 +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 DE6C7335CA2 for ; Fri, 25 May 2018 22:32:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B70552A9 for ; Fri, 25 May 2018 22:32:03 +0000 (UTC) From: "Aaron Bauman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aaron Bauman" Message-ID: <1527287510.44f063eaf8c99bc8db3ed4e23fa13e737fad45df.bman@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/retext/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-editors/retext/retext-7.0.1-r2.ebuild X-VCS-Directories: app-editors/retext/ X-VCS-Committer: bman X-VCS-Committer-Name: Aaron Bauman X-VCS-Revision: 44f063eaf8c99bc8db3ed4e23fa13e737fad45df X-VCS-Branch: master Date: Fri, 25 May 2018 22:32:03 +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: ca6f9695-1cce-4b66-9b89-fc446429a486 X-Archives-Hash: 55f30bed76e9802e3dfb86c2093b419e commit: 44f063eaf8c99bc8db3ed4e23fa13e737fad45df Author: Nils Freydank posteo de> AuthorDate: Thu May 24 19:36:01 2018 +0000 Commit: Aaron Bauman gentoo org> CommitDate: Fri May 25 22:31:50 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44f063ea app-editors/retext: Revbump to backport fixes. Bug: https://bugs.gentoo.org/show_bug.cgi?id=626824 Package-Manager: Portage-2.3.38, Repoman-2.3.9 app-editors/retext/retext-7.0.1-r2.ebuild | 62 +++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/app-editors/retext/retext-7.0.1-r2.ebuild b/app-editors/retext/retext-7.0.1-r2.ebuild new file mode 100644 index 00000000000..b69ab5bac2a --- /dev/null +++ b/app-editors/retext/retext-7.0.1-r2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_{4,5,6} ) + +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 + +MY_PN="ReText" +MY_P="${MY_PN}-${PV/_/~}" + +DESCRIPTION="Simple editor for Markdown and reStructuredText" +HOMEPAGE="https://github.com/retext-project/retext https://github.com/retext-project/retext/wiki" + +if [[ ${PV} == *9999 ]] + then + inherit git-r3 + EGIT_REPO_URI="https://github.com/retext-project/retext.git" + else + SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}"/${MY_P} +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="+spell" + +RDEPEND=" + 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/pygments[${PYTHON_USEDEP}] + dev-python/PyQt5[gui,network,printsupport,webengine,widgets,${PYTHON_USEDEP}] + spell? ( dev-python/pyenchant[${PYTHON_USEDEP}] ) +" + +remove_locale() { + find "${ED}" -name "retext_${1}.qm" -delete || die "Failed to remove locale ${1}." +} + +python_test() { + virtx esetup.py test +} + +python_install_all() { + distutils-r1_python_install_all + + l10n_for_each_disabled_locale_do remove_locale +} + +pkg_postinst() { + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update +}