public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Denoncin" <ddenoncin@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pylatex/
Date: Mon, 11 May 2020 01:11:05 +0000 (UTC)	[thread overview]
Message-ID: <1589159131.6eaf7b77c271bac5d00d52647e7f679e38b21f0d.ddenoncin@gentoo> (raw)

commit:     6eaf7b77c271bac5d00d52647e7f679e38b21f0d
Author:     David Denoncin <ddenoncin <AT> gmail <DOT> com>
AuthorDate: Mon May 11 01:05:31 2020 +0000
Commit:     David Denoncin <ddenoncin <AT> gmail <DOT> com>
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 <ddenoncin <AT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+	<maintainer type="person">
+		<email>ddenoncin@gmail.com</email>
+		<name>David Denoncin</name>
+	</maintainer>
+	<use>
+		<flag name="numpy">Optionally add dev-python/numpy</flag>
+		<flag name="matplotlib">Optionally add dev-python/matplotlib</flag>
+	</use>
+</pkgmetadata>

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
+}


             reply	other threads:[~2020-05-11  1:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-11  1:11 David Denoncin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-05-13 10:49 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pylatex/ David Denoncin
2020-05-18  1:25 David Denoncin
2020-05-23 12:29 David Denoncin
2020-06-09 15:15 Andrew Ammerlaan
2020-06-14 19:23 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-06-14 19:22 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-07-01 22:02 David Denoncin
2020-07-19 11:20 David Denoncin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1589159131.6eaf7b77c271bac5d00d52647e7f679e38b21f0d.ddenoncin@gentoo \
    --to=ddenoncin@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox