commit:     290c3ab6ba472823e873c7aa4cdcf81044fa05c4
Author:     Chris Mayo <aklhfex <AT> gmail <DOT> com>
AuthorDate: Mon Aug  4 18:21:31 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep  6 15:14:40 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=290c3ab6

media-gfx/gnofract4d: add 4.4

Signed-off-by: Chris Mayo <aklhfex <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43325
Closes: https://github.com/gentoo/gentoo/pull/43325
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-gfx/gnofract4d/Manifest              |  1 +
 media-gfx/gnofract4d/gnofract4d-4.4.ebuild | 70 ++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)

diff --git a/media-gfx/gnofract4d/Manifest b/media-gfx/gnofract4d/Manifest
index 826cf7cc24fa..2df449968ea2 100644
--- a/media-gfx/gnofract4d/Manifest
+++ b/media-gfx/gnofract4d/Manifest
@@ -1 +1,2 @@
 DIST gnofract4d-4.3_p20240821.tar.gz 18274253 BLAKE2B 
edfbd9a21b81f0fb051bbe6aef5ff97c77271985b7ecd0d3900ec70b208b1f2e5b75935d6213a761f555b2d4fe973e71b7859a56f2c2547f09321c6e75cc6981
 SHA512 
50abc3b5e9168308cbcff963a5aee00cd1f9a5a7a679d23023e6b21e82a1e04fc5fe8b55a10df39b1f71a85450824a75b2661abce9988746b9643acb78fa02e5
+DIST gnofract4d-4.4.tar.xz 2699532 BLAKE2B 
1d21e0c0e2ea7ca07ec12031f0384f044ebd96a487470371cc5c67f3d1fafcd91f2bb5b8ba6469cc4caba6865dbd6f965b68a3d39869f1e48e377470dcafa4ed
 SHA512 
007bb0bfa41cdc1cedef64305919d3f981ff85460179bcbd2a328ab7c8f10fba732d09adcf199ed2cc29c12472419007eaf1b36d63973cd75f38ccc88190bb1e

diff --git a/media-gfx/gnofract4d/gnofract4d-4.4.ebuild 
b/media-gfx/gnofract4d/gnofract4d-4.4.ebuild
new file mode 100644
index 000000000000..89779484ed75
--- /dev/null
+++ b/media-gfx/gnofract4d/gnofract4d-4.4.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..14} )
+
+inherit meson optfeature python-single-r1 virtualx xdg
+
+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/releases/download/v${PV}/${P}.tar.xz";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+       media-libs/libjpeg-turbo:0=
+       media-libs/libpng:0="
+RDEPEND="${DEPEND}
+       $(python_gen_cond_dep '
+               dev-python/pygobject:3[${PYTHON_USEDEP}]
+       ')
+       gui-libs/gtk:4[introspection]"
+BDEPEND="
+       virtual/pkgconfig
+       test? (
+               media-video/ffmpeg[vpx,zlib]
+               $(python_gen_cond_dep '
+                       dev-python/pytest[${PYTHON_USEDEP}]
+               ')
+       )"
+
+src_configure() {
+       local emesonargs=(
+               -Ddocdir="${EPREFIX}/usr/share/doc/${PF}"
+               -Dstrip=false
+       )
+       meson_src_configure
+}
+
+src_install() {
+       meson_src_install
+       python_optimize
+       python_fix_shebang "${ED}"/usr/bin/gnofract4d
+}
+
+src_test() {
+       local EPYTEST_IGNORE=(
+               # test_regress.py does not provide pytest with any tests and 
inspecting it requires dev-python/pillow
+               test_regress.py
+       )
+       local EPYTEST_DESELECT=(
+               # terminate called after throwing an instance of 
'std::exception'
+               test_fract4d.py::Test::testFDSite
+       )
+       use x86 && EPYTEST_DESELECT+=(
+               # https://bugs.gentoo.org/890796
+               test_fractal.py::Test::testDiagonal
+               test_fractal.py::Test::testRecolor
+       )
+       TMPDIR="${T}" virtx epytest
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+       optfeature "creating videos" media-video/ffmpeg[vpx,zlib]
+}

Reply via email to