diff options
author | Chris Mayo <aklhfex@gmail.com> | 2021-11-08 19:35:18 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-11-12 01:34:47 +0000 |
commit | cba81ce81294f3a88bceca575b0dc20ad87d042e (patch) | |
tree | 6101ff67ee676a59ce729522b9a962e4ce840a04 /media-gfx/gnofract4d/gnofract4d-4.3_p20211108.ebuild | |
parent | dev-util/geany-plugins: install geanydoc (diff) | |
download | gentoo-cba81ce81294f3a88bceca575b0dc20ad87d042e.tar.gz gentoo-cba81ce81294f3a88bceca575b0dc20ad87d042e.tar.bz2 gentoo-cba81ce81294f3a88bceca575b0dc20ad87d042e.zip |
media-gfx/gnofract4d: version bump to 4.3_p20211108
Closes: https://bugs.gentoo.org/820857
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Chris Mayo <aklhfex@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/22868
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx/gnofract4d/gnofract4d-4.3_p20211108.ebuild')
-rw-r--r-- | media-gfx/gnofract4d/gnofract4d-4.3_p20211108.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/media-gfx/gnofract4d/gnofract4d-4.3_p20211108.ebuild b/media-gfx/gnofract4d/gnofract4d-4.3_p20211108.ebuild new file mode 100644 index 000000000000..630443d5d244 --- /dev/null +++ b/media-gfx/gnofract4d/gnofract4d-4.3_p20211108.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10} ) +DISTUTILS_SINGLE_IMPL=1 + +inherit distutils-r1 optfeature virtualx xdg + +COMMIT="52410fec6cd9182048aed85e333876ddeaa9486a" + +DESCRIPTION="A program for drawing beautiful mathematically-based images known as fractals" +HOMEPAGE="https://fract4d.github.io/gnofract4d/" +SRC_URI="https://github.com/fract4d/gnofract4d/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + media-libs/libpng:0= + virtual/jpeg" +RDEPEND="${DEPEND} + $(python_gen_cond_dep ' + dev-python/pycairo[${PYTHON_USEDEP}] + dev-python/pygobject:3[cairo,${PYTHON_USEDEP}] + ') + x11-libs/gtk+:3[introspection]" +BDEPEND=" + virtual/pkgconfig + test? ( + media-video/ffmpeg[vpx,zlib] + )" + +distutils_enable_tests pytest + +S="${WORKDIR}/${PN}-${COMMIT}" + +src_prepare() { + sed -i -e "s:share/doc/gnofract4d/:share/doc/${PF}/:" setup.py || die + # test_regress.py does not provide pytest with any tests and inspecting it requires dev-python/pillow + rm test_regress.py || die + # tests hanging with virtx + rm fract4dgui/tests/test_{director,gtkfractal}.py || die + + distutils-r1_src_prepare +} + +python_compile_all() { + if use test; then + ln -s "${BUILD_DIR}"/lib/fract4d/*.so fract4d/ || die + fi +} + +src_test() { + virtx distutils-r1_src_test +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature "creating videos" media-video/ffmpeg[vpx,zlib] +} |