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 4541713835A for ; Mon, 11 May 2020 08:57:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 47AF4E087D; Mon, 11 May 2020 08:57:37 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 238F7E087D for ; Mon, 11 May 2020 08:57:37 +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 E2C9934F82E for ; Mon, 11 May 2020 08:57:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ABC6A239 for ; Mon, 11 May 2020 08:57:32 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1589159131.6eaf7b77c271bac5d00d52647e7f679e38b21f0d.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/pylatex/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/pylatex/Manifest dev-python/pylatex/metadata.xml dev-python/pylatex/pylatex-1.3.1.ebuild X-VCS-Directories: dev-python/pylatex/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 6eaf7b77c271bac5d00d52647e7f679e38b21f0d X-VCS-Branch: master Date: Mon, 11 May 2020 08:57:32 +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: 2635ace2-59ed-4b62-ac67-0ce7da87d2df X-Archives-Hash: 125a99d6c2c94ea00ac9436ab44df772 commit: 6eaf7b77c271bac5d00d52647e7f679e38b21f0d Author: David Denoncin gmail com> AuthorDate: Mon May 11 01:05:31 2020 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Mon May 11 01:05:31 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6eaf7b77 dev-python/pylatex: new package Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: David Denoncin gmail.com> dev-python/pylatex/Manifest | 1 + dev-python/pylatex/metadata.xml | 13 ++++++++ dev-python/pylatex/pylatex-1.3.1.ebuild | 53 +++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) diff --git a/dev-python/pylatex/Manifest b/dev-python/pylatex/Manifest new file mode 100644 index 0000000..7774725 --- /dev/null +++ b/dev-python/pylatex/Manifest @@ -0,0 +1 @@ +DIST PyLaTeX.tar.gz 300388 BLAKE2B fd3744afa43240e093de683ea14181da879b80e366357cc0d46bc49d6e3d23e47e2a0dd81e840a6df5a049055fac7049d3977e7c731e74f85749eff795345733 SHA512 b44ccecb81984613efe5c96f8f0e722fa7b1f4473b8f283196001cd38e062e2b78a4adb8e80c5fdd69558406bec482738520bb998f838d92c0af2b328eb74d07 diff --git a/dev-python/pylatex/metadata.xml b/dev-python/pylatex/metadata.xml new file mode 100644 index 0000000..ab99695 --- /dev/null +++ b/dev-python/pylatex/metadata.xml @@ -0,0 +1,13 @@ + + + + + + ddenoncin@gmail.com + David Denoncin + + + Optionally add dev-python/numpy + Optionally add dev-python/matplotlib + + diff --git a/dev-python/pylatex/pylatex-1.3.1.ebuild b/dev-python/pylatex/pylatex-1.3.1.ebuild new file mode 100644 index 0000000..97967ff --- /dev/null +++ b/dev-python/pylatex/pylatex-1.3.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="PyLaTeX" +MY_P="${MY_PN}-${PV}" +S="${WORKDIR}/${MY_P}" + +PYTHON_COMPAT=( python3_{6,7,8} ) #python2_7 -> error: package directory 'python2_source/pylatex' does not exist +inherit distutils-r1 + +DESCRIPTION="A Python library for creating LaTeX files and snippets" +HOMEPAGE="https://github.com/JelteF/PyLaTeX" +SRC_URI="https://github.com/JelteF/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_PN}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples matplotlib numpy" # quantities can be used also, but is not a gentoo package. + +DEPEND=" + dev-python/ordered-set[${PYTHON_USEDEP}] + matplotlib? ( dev-python/matplotlib[$PYTHON_USEDEP] ) + numpy? ( dev-python/numpy[$PYTHON_USEDEP] ) +" + +RDEPEND="${DEPEND}" + +distutils_enable_tests nose +distutils_enable_sphinx docs + +src_prepare(){ + if use doc; then + sphinx-apidoc -F -o docs "${S}"/pylatex # conf.py is not included in source + fi + + distutils-r1_src_prepare +} + +python_install_all() { + if use examples ; then + docinto examples + dodoc -r examples/. + fi + + distutils-r1_python_install_all +} + +src_test() { + rm "${S}"/tests/test_quantities.py # quantities is not a gentoo package + distutils-r1_src_test +}