diff --git a/dev-python/pygal/Manifest b/dev-python/pygal/Manifest new file mode 100644 index 0000000..2b4893b --- /dev/null +++ b/dev-python/pygal/Manifest @@ -0,0 +1 @@ +DIST pygal-3.0.0.dev1.tar.gz 3586092 BLAKE2B 4b266df0b3cbc21aae5270578383d58c2e63928f151ea81e760a036044027d64a6f2f2ccbc964d5918e1134ee07b9e4d175bdcbf59d84c09f8f8e9b35f707a7f SHA512 d4ddeb7533513ff605d331b6b7c3ebc10c02ccacbab509c77e3c594b0417a82e7744e12f8cb416d9232066933f432a616c84f0cd9e246543fea447345cd364a7 diff --git a/dev-python/pygal/metadata.xml b/dev-python/pygal/metadata.xml new file mode 100644 index 0000000..c23acc4 --- /dev/null +++ b/dev-python/pygal/metadata.xml @@ -0,0 +1,11 @@ + + + + + parona@protonmail.com + Alfred Wingate + + + Kozea/pygal + + diff --git a/dev-python/pygal/pygal-3.0.0_pre1.ebuild b/dev-python/pygal/pygal-3.0.0_pre1.ebuild new file mode 100644 index 0000000..a847859 --- /dev/null +++ b/dev-python/pygal/pygal-3.0.0_pre1.ebuild @@ -0,0 +1,69 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..9} ) +inherit distutils-r1 multiprocessing + +MY_P="${PN}-${PV/_pre/.dev}" + +DESCRIPTION="PYthon svg GrAph plotting Library " +# http://pygal.org/ is dead as of 20210519, therefore use the next best thing +HOMEPAGE="https://github.com/Kozea/pygal" +SRC_URI="mirror://pypi/${MY_P:0:1}/${PN}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="man test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/lxml[${PYTHON_USEDEP}] + media-gfx/cairosvg[${PYTHON_USEDEP}] +" +DEPEND=" + man? ( + dev-python/pygal_sphinx_directives + dev-python/sphinx_rtd_theme + ) + test? ( + ${RDEPEND} + dev-python/flask[${PYTHON_USEDEP}] + dev-python/pygal_maps_ch[${PYTHON_USEDEP}] + dev-python/pygal_maps_fr[${PYTHON_USEDEP}] + dev-python/pygal_maps_world[${PYTHON_USEDEP}] + dev-python/pytest-cov[${PYTHON_USEDEP}] + dev-python/pytest-flake8[${PYTHON_USEDEP}] + dev-python/pytest-isort[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/pyquery[${PYTHON_USEDEP}] + ) +" +BDEPEND=" + man? ( dev-python/sphinx ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs dev-python/pygal_sphinx_directives dev-python/sphinx_rtd_theme + +python_prepare_all() { + sed -i -e '/pytest-runner/d' setup.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + use man && emake -C docs -j1 man + sphinx_compile_all +} + +python_test() { + epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" +} + +python_install_all() { + use man && doman docs/_build/man/* + distutils-r1_python_install_all +}