Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/matplotlib2tikz/files/, dev-python/matplotlib2tikz/
Date: Thu, 09 Mar 2017 20:44:13
Message-Id: 1489092229.9bfccc1116405fcfc0e5538c85e6aa03ce9beafc.soap@gentoo
1 commit: 9bfccc1116405fcfc0e5538c85e6aa03ce9beafc
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Wed Mar 8 13:02:45 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 9 20:43:49 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bfccc11
7
8 dev-python/matplotlib2tikz: New package
9
10 matplotlib2tikz is a Python tool for converting matplotlib figures
11 into PGFPlots (TikZ) figures like for native inclusion into LaTeX
12 documents. The output of matplotlib2tikz is in PGFPlots, a LaTeX
13 library that sits on top of TikZ and describes graphs in terms of
14 axes, data etc. Consequently, the output of matplotlib2tikz retains
15 more information, can be more easily understood, and is more easily
16 editable than raw TikZ output.
17
18 Bug: https://bugs.gentoo.org/612052
19
20 Package-Manager: Portage-2.3.3, Repoman-2.3.1
21 Closes: https://github.com/gentoo/gentoo/pull/4161
22
23 dev-python/matplotlib2tikz/Manifest | 1 +
24 .../files/matplotlib2tikz-0.6-init_pipdated.patch | 15 +++++++++++++
25 .../matplotlib2tikz/matplotlib2tikz-0.6.2.ebuild | 25 ++++++++++++++++++++++
26 dev-python/matplotlib2tikz/metadata.xml | 17 +++++++++++++++
27 4 files changed, 58 insertions(+)
28
29 diff --git a/dev-python/matplotlib2tikz/Manifest b/dev-python/matplotlib2tikz/Manifest
30 new file mode 100644
31 index 00000000000..1efb6a8c999
32 --- /dev/null
33 +++ b/dev-python/matplotlib2tikz/Manifest
34 @@ -0,0 +1 @@
35 +DIST matplotlib2tikz-0.6.2.tar.gz 26358 SHA256 a81b1a09e8c0efc9944d673023d3a8c14ca38aec04af487c427f20872555ff09 SHA512 b60f378f947ec51be82fc45dafad14ef2700babb2ec72886480aff9bd84d591bc15e0626f38018f2d351ab8293109b2fc12cc4912eb933528b5334b2ef8ecfb7 WHIRLPOOL befa7a990cc4246c2a3357c72b4c34ec76e44af905c0d19312eccbf5ce8e5c8742f906484214ab50466992ae3fed40c5ffbb84e8b80bb06cea830f892a9c947e
36
37 diff --git a/dev-python/matplotlib2tikz/files/matplotlib2tikz-0.6-init_pipdated.patch b/dev-python/matplotlib2tikz/files/matplotlib2tikz-0.6-init_pipdated.patch
38 new file mode 100644
39 index 00000000000..2acf79738c0
40 --- /dev/null
41 +++ b/dev-python/matplotlib2tikz/files/matplotlib2tikz-0.6-init_pipdated.patch
42 @@ -0,0 +1,15 @@
43 +Remove version checks using pipdated.
44 +
45 +Patch by Marius Brehler <marbre@××××××××××××××.de>
46 +--- a/matplotlib2tikz/__init__.py
47 ++++ b/matplotlib2tikz/__init__.py
48 +@@ -15,9 +15,3 @@ from matplotlib2tikz.__about__ import (
49 + )
50 +
51 + from matplotlib2tikz.save import save
52 +-
53 +-import pipdated
54 +-if pipdated.needs_checking('matplotlib2tikz'):
55 +- msg = pipdated.check('matplotlib2tikz', __version__)
56 +- if msg:
57 +- print(msg)
58
59 diff --git a/dev-python/matplotlib2tikz/matplotlib2tikz-0.6.2.ebuild b/dev-python/matplotlib2tikz/matplotlib2tikz-0.6.2.ebuild
60 new file mode 100644
61 index 00000000000..e40f2b47df9
62 --- /dev/null
63 +++ b/dev-python/matplotlib2tikz/matplotlib2tikz-0.6.2.ebuild
64 @@ -0,0 +1,25 @@
65 +# Copyright 1999-2017 Gentoo Foundation
66 +# Distributed under the terms of the GNU General Public License v2
67 +
68 +EAPI=6
69 +
70 +PYTHON_COMPAT=( python2_7 python3_{4,5} )
71 +
72 +inherit distutils-r1
73 +
74 +DESCRIPTION="Convert matplotlib figures into TikZ/PGFPlots"
75 +HOMEPAGE="https://github.com/nschloe/matplotlib2tikz"
76 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
77 +KEYWORDS="~amd64"
78 +
79 +LICENSE="MIT"
80 +SLOT="0"
81 +IUSE=""
82 +
83 +PATCHES=( "${FILESDIR}/${PN}-0.6-init_pipdated.patch" )
84 +
85 +RDEPEND="
86 + dev-python/matplotlib[${PYTHON_USEDEP}]
87 + dev-python/numpy[${PYTHON_USEDEP}]
88 + dev-python/pillow[${PYTHON_USEDEP}]"
89 +DEPEND="${RDEPEND}"
90
91 diff --git a/dev-python/matplotlib2tikz/metadata.xml b/dev-python/matplotlib2tikz/metadata.xml
92 new file mode 100644
93 index 00000000000..9c08eac0171
94 --- /dev/null
95 +++ b/dev-python/matplotlib2tikz/metadata.xml
96 @@ -0,0 +1,17 @@
97 +<?xml version="1.0" encoding="UTF-8"?>
98 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
99 +<pkgmetadata>
100 + <maintainer type="person">
101 + <email>marbre@××××××××××××××.de</email>
102 + <name>Marius Brehler</name>
103 + </maintainer>
104 + <maintainer type="project">
105 + <email>sci@g.o</email>
106 + <name>Gentoo Science Project</name>
107 + </maintainer>
108 + <longdescription>matplotlib2tikz is a Python tool for converting matplotlib figures into PGFPlots (TikZ) figures like for native inclusion into LaTeX documents. The output of matplotlib2tikz is in PGFPlots, a LaTeX library that sits on top of TikZ and describes graphs in terms of axes, data etc. Consequently, the output of matplotlib2tikz retains more information, can be more easily understood, and is more easily editable than raw TikZ output.</longdescription>
109 + <upstream>
110 + <remote-id type="github">nschloe/matplotlib2tikz</remote-id>
111 + <remote-id type="pypi">matplotlib2tikz</remote-id>
112 + </upstream>
113 +</pkgmetadata>