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 4FCD31395E2 for ; Sun, 6 Nov 2016 18:11:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1577DE0914; Sun, 6 Nov 2016 18:11:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E264BE0914 for ; Sun, 6 Nov 2016 18:11:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CED8834187E for ; Sun, 6 Nov 2016 18:11:48 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 47FAB249D for ; Sun, 6 Nov 2016 18:11:47 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1478455863.f9d6c7ef2aa5cf8f7b5cbd811ca9a6bdeecb248b.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/translate-toolkit/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/translate-toolkit/Manifest dev-python/translate-toolkit/metadata.xml dev-python/translate-toolkit/translate-toolkit-2.0.0_beta7.ebuild X-VCS-Directories: dev-python/translate-toolkit/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: f9d6c7ef2aa5cf8f7b5cbd811ca9a6bdeecb248b X-VCS-Branch: master Date: Sun, 6 Nov 2016 18:11:47 +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: 096b23e9-ce04-449c-8aa5-7abfeeb2f430 X-Archives-Hash: f85be7caddbd1885db49cfa7ffa78ced commit: f9d6c7ef2aa5cf8f7b5cbd811ca9a6bdeecb248b Author: Andreas Sturmlechner gmail com> AuthorDate: Sun Nov 6 13:29:42 2016 +0000 Commit: David Seifert gentoo org> CommitDate: Sun Nov 6 18:11:03 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9d6c7ef dev-python/translate-toolkit: 2.0.0_beta7 version bump, add USE=yaml Package-Manager: portage-2.3.0 Closes: https://github.com/gentoo/gentoo/pull/2760 Signed-off-by: David Seifert gentoo.org> dev-python/translate-toolkit/Manifest | 1 + dev-python/translate-toolkit/metadata.xml | 1 + .../translate-toolkit-2.0.0_beta7.ebuild | 82 ++++++++++++++++++++++ 3 files changed, 84 insertions(+) diff --git a/dev-python/translate-toolkit/Manifest b/dev-python/translate-toolkit/Manifest index ed3ca0a..1f7f1ec 100644 --- a/dev-python/translate-toolkit/Manifest +++ b/dev-python/translate-toolkit/Manifest @@ -1,2 +1,3 @@ DIST translate-toolkit-1.12.0.tar.bz2 5329772 SHA256 11e332f2a29d8644364b4ca79b4ac079df328626ec8c27ac0e8cc454696719ca SHA512 c84424790ad66492dec97a5ec5601f5ffa68d23b219836def998847449b902970ac32fcb7d06455365e00c7b06f49d7dedda5257275bf7e845b16100153922dd WHIRLPOOL 866eb62056a30c8042d96a1ec06a23e56c2a5121dd66234a8b0889193548fff962d4c56700bb50a01c793e2443d49e33a02d92d5b53513f6c7b0805af827decf DIST translate-toolkit-2.0.0_beta6.tar.gz 1096681 SHA256 1abe04be3c886a52bdb90e33dffb7e96d82e7f5ba1fed41f12165a4a4b8def29 SHA512 08b8091b17a96925db09ab42536248c458a895d8a221af8be66bc4737ba233a70341ba9fab7047733ec0ad284b23f3694a361c726a952eb42427b9c01916ad79 WHIRLPOOL 1d9be301036073a1a1c6afb07b2cb77433457e26caf31d0577148b8f076b160d971c08d864e9b2fa947e3e55fbe7ede08af75570cc572422e7dc4c63f55b7863 +DIST translate-toolkit-2.0.0_beta7.tar.gz 1099096 SHA256 87f53a10ce9d2d19b5ff8d83a7b2aa03f30c1c9b2fd742db3909fbbd2f4221c0 SHA512 dd8897532f66aca451a578537038c3adac2a3fbe1e7756febc97e2a2a024e4460806a2a28d2e9e66239eba938d02053616d3c683568a032b5c4c5c0629bd8abc WHIRLPOOL 5301becae7728f761ca142c9e417d04da2e558723cb9fa421ee6c558cfb05ea8bce7eb8e5d4360ecaa2f924776b675879c9f3afca4a958330374839deb2a2ee3 diff --git a/dev-python/translate-toolkit/metadata.xml b/dev-python/translate-toolkit/metadata.xml index 99c20d9..2ec8899 100644 --- a/dev-python/translate-toolkit/metadata.xml +++ b/dev-python/translate-toolkit/metadata.xml @@ -10,6 +10,7 @@ Support conversion between po and ical files Support conversion between po and ini files Support conversion between po and sub files + Support YAML format translate diff --git a/dev-python/translate-toolkit/translate-toolkit-2.0.0_beta7.ebuild b/dev-python/translate-toolkit/translate-toolkit-2.0.0_beta7.ebuild new file mode 100644 index 00000000..7d09383 --- /dev/null +++ b/dev-python/translate-toolkit/translate-toolkit-2.0.0_beta7.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +MY_PN="${PN/-toolkit}" +MY_PV="${PV/_beta/b}" +PYTHON_COMPAT=( python2_7 python3_{4,5} ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 + +DESCRIPTION="Toolkit to convert between many translation formats" +HOMEPAGE="https://github.com/translate/translate" +SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc +html +ical +ini +subtitles +yaml" + +COMMON_DEPEND=" + >=dev-python/six-1.10.0[${PYTHON_USEDEP}] +" +DEPEND="${COMMON_DEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) +" +RDEPEND="${COMMON_DEPEND} + app-text/iso-codes + >=dev-python/chardet-2.3.0[${PYTHON_USEDEP}] + dev-python/diff-match-patch[${PYTHON_USEDEP}] + >=dev-python/lxml-3.5[${PYTHON_USEDEP}] + >=dev-python/python-levenshtein-0.12.0[${PYTHON_USEDEP}] + sys-devel/gettext + html? ( dev-python/utidylib[${PYTHON_USEDEP}] ) + ical? ( dev-python/vobject[${PYTHON_USEDEP}] ) + ini? ( dev-python/iniparse[${PYTHON_USEDEP}] ) + subtitles? ( $(python_gen_cond_dep 'media-video/gaupol[${PYTHON_USEDEP}]' 'python3*') ) + yaml? ( dev-python/pyyaml[${PYTHON_USEDEP}] ) +" + +REQUIRED_USE=" + subtitles? ( || ( $(python_gen_useflags 'python3*') ) ) +" + +S="${WORKDIR}/${MY_PN}-${MY_PV}" + +python_prepare_all() { + # Prevent unwanted d'loading in doc build + sed -e "/^ 'sphinx.ext.intersphinx',/d" \ + -e "/html_theme/ s/sphinx-bootstrap/classic/" \ + -i docs/conf.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + emake -C docs html + HTML_DOCS=( "${S}"/docs/_build/html/. ) + fi +} + +python_install_all() { + distutils-r1_python_install_all + + rm -Rf docs || die + if ! use html; then + rm "${ED%/}"/usr/bin/{html2po,po2html} || die + fi + if ! use ical; then + rm "${ED%/}"/usr/bin/{ical2po,po2ical} || die + fi + if ! use ini; then + rm "${ED%/}"/usr/bin/{ini2po,po2ini} || die + fi + if ! use subtitles; then + rm "${ED%/}"/usr/bin/{sub2po,po2sub} || die + fi +}