diff options
Diffstat (limited to 'dev-python/pyx')
-rw-r--r-- | dev-python/pyx/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pyx/pyx-0.16-r1.ebuild | 68 |
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-python/pyx/Manifest b/dev-python/pyx/Manifest index 5fd1d5fe327e..53a254871104 100644 --- a/dev-python/pyx/Manifest +++ b/dev-python/pyx/Manifest @@ -1,4 +1,5 @@ AUX pyx-0.14.1-unicode-latex.patch 600 BLAKE2B d7e2b4804731372b8b149b8e50ed6163297e60548c479aad8d796df4630f87e3df7e28379c6e88158e135f1b2e1eddcc712828efdd3fdcae501681bdf5e602f0 SHA512 f2a6af35aeddcd10d936a9ced93f708606bccb9f249bb45c6cf86111744f7efad9c08e9ce9e41d63b04345069e973e2ae69df5a2b004535bb0fac09dbee3dc90 DIST pyx-0.16.gh.tar.gz 626703 BLAKE2B fa1f1a54e958fa4c1c3efd1df4cf744a1d591ac17671a6da4b2d2f15ae5f2a6cb6260bd1c5f189c60b0683e4f54545f5d3c0ed0c7698f14fa390396c18bf4ebd SHA512 613212a7a7d983432aab574bdccd402132da2b1ae563cb672e2766dbcda3ce91977780ab5e4097de77e6499d36537b54089327e448cf4e7855889087c3b9a9f8 +EBUILD pyx-0.16-r1.ebuild 1623 BLAKE2B 4f446143f6b718848fbe94ac6ecde20eba41f4642e3a4fb937c0482508ddd5efea3cb3775de8cc4f3019aeac30b35fcba8c0e04d138d89635849fb8b0eb256e1 SHA512 c16551972a2f0ca0f77d9578f4f1ebd8978fdab77d3aa8e96618e3b58ad381f46ae75711e0c5b47c8b1f01a3814498175564e9103eee27f05338faf6b8cfdf79 EBUILD pyx-0.16.ebuild 1623 BLAKE2B b247789b881c438cba10c37738133fc8cff573711ece2164eaac2e4f0398b82edd60cc739f41aede53ba43189000f44b991c68f1066513053416d7b5ba4a76b5 SHA512 69504a4fd0f16396336a4b50b3ad27f7d7534bb4a2c2a39c2671d0721055c43b0fbbb43682e7b627045e6c58067f81666437d50a03caab3caf01b1d5da3c64f6 MISC metadata.xml 805 BLAKE2B f8d20858aeafdb2ccaee5dfc3875e1ca206b2e38c566b71db723754ccde1c00b9db1e8b1da758214692e2c87f152ae1df94ecef99fb8b4ff97444b6ae9551e79 SHA512 44f7bf6e5ec2e9314fdd7171971c7debd79349732ce6c3aeff6e4b6d05e253a83c52c19fd4a41ac6ae59189cc95946abf90154bdfa9ddb92faa587cb897e943f diff --git a/dev-python/pyx/pyx-0.16-r1.ebuild b/dev-python/pyx/pyx-0.16-r1.ebuild new file mode 100644 index 000000000000..f5fdbc8ddfb9 --- /dev/null +++ b/dev-python/pyx/pyx-0.16-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +#DISTUTILS_USE_SETUPTOOLS=no +PYTHON_COMPAT=( python3_{9..12} ) + +inherit distutils-r1 + +DESCRIPTION="Python package for the generation of encapsulated PostScript figures" +MY_PN="PyX" +MY_P=${MY_PN}-${PV} +HOMEPAGE=" + https://github.com/pyx-project/pyx + https://pyx-project.org/ + https://pypi.org/project/PyX/" +SRC_URI="https://github.com/pyx-project/${PN}/releases/download/${PV}/${MY_P}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RDEPEND=" + dev-python/pillow[${PYTHON_USEDEP}] + virtual/tex-base + virtual/latex-base + dev-texlive/texlive-basic" + +BDEPEND="${RDEPEND} + doc? ( + $(python_gen_any_dep ' + dev-python/sphinx[latex,${PYTHON_USEDEP}] + dev-python/sphinx_selective_exclude[${PYTHON_USEDEP}] + ') + )" + +PATCHES=( "${FILESDIR}"/pyx-0.14.1-unicode-latex.patch ) +S="${WORKDIR}"/${MY_P} + +python_check_deps() { + use doc || return 0 + python_has_version "dev-python/sphinx[latex,${PYTHON_USEDEP}]" \ + "dev-python/sphinx_selective_exclude[${PYTHON_USEDEP}]" +} + +src_prepare() { + sed -i \ + -e 's/^build_t1code=.*/build_t1code=1/' \ + -e 's/^build_pykpathsea=.*/build_pykpathsea=1/' \ + setup.cfg || die "setup.cfg fix failed" + distutils-r1_src_prepare +} + +python_compile_all() { + if use doc; then + local -x VARTEXFONTS="${T}"/fonts + emake -C "${S}"/manual latexpdf + emake -C "${S}"/faq latexpdf + fi +} + +python_install_all() { + use doc && dodoc manual/_build/latex/manual.pdf faq/_build/latex/pyxfaq.pdf + distutils-r1_python_install_all +} |