commit:     35991fc07ff73495f59788eba61adb9334f18cd8
Author:     dsaf <ghostyn678+git <AT> gmail <DOT> com>
AuthorDate: Sun Sep 28 20:19:17 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sun Sep 28 20:19:31 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=35991fc0

media-plugins/gimp-resynthesizer: new package, add 3.0

Signed-off-by: dsaf <ghostyn678+git <AT> gmail.com>

 media-plugins/gimp-resynthesizer/Manifest          |  1 +
 .../gimp-resynthesizer-3.0.ebuild                  | 57 ++++++++++++++++++++++
 media-plugins/gimp-resynthesizer/metadata.xml      | 20 ++++++++
 3 files changed, 78 insertions(+)

diff --git a/media-plugins/gimp-resynthesizer/Manifest 
b/media-plugins/gimp-resynthesizer/Manifest
new file mode 100644
index 0000000000..73416e61b2
--- /dev/null
+++ b/media-plugins/gimp-resynthesizer/Manifest
@@ -0,0 +1 @@
+DIST gimp-resynthesizer-3.0.tar.gz 19968926 BLAKE2B 
ebe345a961bd32beda617faf48984238263902517342dc3dd003193a00ae45b296f132aa32147abc35d2b686addab7effec6ac62a6b09502684b43d0627e0e75
 SHA512 
053b365bb4c1d8228a3fe1e67fb9758c67a4dc040801ab3179b2c973508137aa8995a6f3c51a270c61b9cd8019e755cb4e8e1650857e288c112a2948daf4fb66

diff --git a/media-plugins/gimp-resynthesizer/gimp-resynthesizer-3.0.ebuild 
b/media-plugins/gimp-resynthesizer/gimp-resynthesizer-3.0.ebuild
new file mode 100644
index 0000000000..242041da18
--- /dev/null
+++ b/media-plugins/gimp-resynthesizer/gimp-resynthesizer-3.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+DESCRIPTION="Suite of GIMP plugins for texture synthesis"
+HOMEPAGE="https://github.com/bootchk/resynthesizer";
+SRC_URI="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
+
+S="${WORKDIR}/resynthesizer-${PV}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="debug +glib threads test +translations animate deep-progress libheal"
+
+RESTRICT="!test? ( test )"
+
+DEPEND="
+       >=media-gfx/gimp-3.0.0
+       glib? ( dev-libs/glib:2 )
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+       local emesonargs=(
+               $(meson_use debug synth-debug)
+               $(meson_use glib synth-use-glib)
+               $(meson_use threads synth-threaded)
+               $(meson_use test install-test)
+               $(meson_use translations install-translations)
+               $(meson_use animate synth-animate)
+               $(meson_use deep-progress synth-deep-progress)
+               $(meson_use libheal build-libheal)
+       )
+
+       # If using glib, we can choose glib threads, otherwise force posix
+       if use glib && use threads; then
+               emesonargs+=( -Dsynth-use-glib-threads=true )
+       else
+               emesonargs+=( -Dsynth-use-glib-threads=false )
+       fi
+
+       meson_src_configure
+}
+
+src_install() {
+       # allow writing to GIMP plugin directory
+       addwrite /usr/lib64/gimp/3.0/plug-ins
+       addwrite /usr/lib32/gimp/3.0/plug-ins
+       addwrite /usr/lib/gimp/3.0/plug-ins
+
+       meson_src_install
+}

diff --git a/media-plugins/gimp-resynthesizer/metadata.xml 
b/media-plugins/gimp-resynthesizer/metadata.xml
new file mode 100644
index 0000000000..269169a326
--- /dev/null
+++ b/media-plugins/gimp-resynthesizer/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>dsaf</name>
+       </maintainer>
+       <use>
+               <flag name="glib">Use GLib library for platform independence 
instead of direct system calls</flag>
+               <flag name="animate">Enable animation of the synthesis process 
for debugging. You may see a 'brushfire front' of pixels being synthesized. 
Note: may not work with threading enabled</flag>
+               <flag name="debug">Enable debug logging, call tree tracing, and 
algorithm statistics. Currently depends on GLib</flag>
+               <flag name="deep-progress">Enable detailed progress reporting 
(percent processed) instead of shallow progress (per pass). Useful for slow 
motion animation</flag>
+               <flag name="libheal">Build the simple API library that only 
provides healing functionality. Not needed for GIMP, only for external test 
harnesses</flag>
+               <flag name="threads">Enable threading support for approximately 
2x performance speedup. Thread limit is hardcoded to 12</flag>
+               <flag name="translations">Install translation files.</flag>
+       </use>
+       <upstream>
+               <remote-id type="github">bootchk/resynthesizer</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to