Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev-python/matplotlib/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DIST matplotlib-3.10.9.tar.gz 34811233 BLAKE2B 93a2b76390f68f366ad9e761e32a8fd2e85c95ac53ed1359bbfa3aef29c368a1c74284b65113b6f503109d4e1c72f899728afd1c327d62ce80cfb3e7583bbfce SHA512 432b234e78e416d779cb1c5c7924f2e68997d9da8a204e7bd5b199aeaafdc900a93e492a464d21daccb11124c01567437c440c4d3ddbf3f772834e4217460a1f
DIST matplotlib-3.5.3.tar.gz 35236343 BLAKE2B 0d3f4e15295afe2c737e441325206e77c520a514bc87ab1eebef624f89896a2cf609e8d57b8fa8ef28ecf8c836e20cb296adaa95f81dbfcf3f2a45631e3dd02c SHA512 f431d3046e9c5fbe5d44a16a762e9a178ba34380974964660eaf3681671178866a63b3bad9aad8d3ad423926f7db2965d514e9b1489e3a824a4532a01f0e0670
DIST matplotlib-3.6.3.tar.gz 35868590 BLAKE2B aa511e7d82c41ff2b5622b23847c2e94ed5d400be74eddcdab12ddba8d25bcc1b778c5fb2a29935bca71b76cbf4213088286c9a6a3d085e06036069909ccc1e7 SHA512 844ca90bcc9953d3d1289a6d471180a3dadb49c75eb59858bbbfb67d4b1292b83b86b366f22ab12d9e97c980376d48b86e745607ec4e812a3010c6fec01398dc
103 changes: 103 additions & 0 deletions dev-python/matplotlib/matplotlib-3.10.9.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# Distributed under the terms of the GNU General Public License v2
# Autogen by MARK Devkit

EAPI=7

PYTHON_COMPAT=( python3+ )
DISTUTILS_USE_PEP517="meson-python"
inherit distutils-r1

DESCRIPTION="Python plotting package"
HOMEPAGE="https://matplotlib.org/ https://github.com/matplotlib/matplotlib https://pypi.org/project/matplotlib/"
SRC_URI="https://files.pythonhosted.org/packages/63/1b/4be5be87d43d327a0cf4de1a56e86f7f84c89312452406cf122efe2839e6/matplotlib-3.10.9.tar.gz -> matplotlib-3.10.9.tar.gz
"
DEPEND="

media-libs/freetype:2
>=media-libs/qhull-2013

"
RDEPEND="
${DEPEND}
>=dev-python/pillow-8[jpeg,webp,${PYTHON_USEDEP}]
media-fonts/dejavu
media-fonts/stix-fonts
media-libs/libpng:0
gtk3? (
>=dev-python/pygobject-3.40.1:3[cairo?,${PYTHON_USEDEP}]
x11-libs/gtk+:3[introspection]
)
latex? (
virtual/latex-base
app-text/dvipng
app-text/ghostscript-gpl
app-text/poppler[cairo,png,utils]
dev-texlive/texlive-fontsrecommended
dev-texlive/texlive-latexextra
dev-texlive/texlive-luatex
dev-texlive/texlive-xetex
)
webagg? (
>=www-servers/tornado-6.0.4[${PYTHON_USEDEP}]
)

>=dev-python/contourpy-1.0.1[${PYTHON_USEDEP}]
>=dev-python/cycler-0.10[${PYTHON_USEDEP}]
>=dev-python/fonttools-4.22.0[${PYTHON_USEDEP}]
>=dev-python/kiwisolver-1.3.1[${PYTHON_USEDEP}]
>=dev-python/numpy-1.23[${PYTHON_USEDEP}]
>=dev-python/packaging-20.0[${PYTHON_USEDEP}]
>=dev-python/pyparsing-3[${PYTHON_USEDEP}]
>=dev-python/python-dateutil-2.7[${PYTHON_USEDEP}]
cairo? ( dev-python/cairocffi[${PYTHON_USEDEP}] )
"
BDEPEND="
${RDEPEND}
>=dev-util/meson-1.1.0
dev-util/cmake
virtual/pkgconfig
>=dev-python/numpy-1.23[${PYTHON_USEDEP}]
>=dev-python/pybind11-2.13.4[${PYTHON_USEDEP}]
>=dev-python/setuptools_scm-7[${PYTHON_USEDEP}]
"
IUSE="cairo gtk3 latex webagg"
SLOT="0"
LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1"
KEYWORDS="*"
S="${WORKDIR}/matplotlib-3.10.9"

src_unpack() {
default
}
src_configure() {
sed -i -e 's|3\.10|3\.9|g' meson.build pyproject.toml
# Forcing linker setup to avoid issues on
# linking external libagg library inside the package.
if tc-is-clang; then
export AR="llvm-ar"
export NM="llvm-nm"
export RANLIB="llvm-ranlib"
else
export AR="gcc-ar"
export NM="gcc-nm"
export RANLIB="gcc-ranlib"
fi

DISTUTILS_ARGS=(
-Dsystem-freetype=true
-Dsystem-qhull=true
-Dmacosx=false
)

unset DISPLAY

export XDG_RUNTIME_DIR="${T}/runtime-dir"
mkdir "${XDG_RUNTIME_DIR}" || die
chmod 0700 "${XDG_RUNTIME_DIR}" || die
}

python_prepare_all() {
export SETUPTOOLS_SCM_PRETEND_VERSION="${PV}"
distutils-r1_python_prepare_all
}