diff --git a/media-plugins/gimp-resynthesizer/Manifest b/media-plugins/gimp-resynthesizer/Manifest index 73416e61b2..15db72f351 100644 --- a/media-plugins/gimp-resynthesizer/Manifest +++ b/media-plugins/gimp-resynthesizer/Manifest @@ -1 +1,2 @@ DIST gimp-resynthesizer-3.0.tar.gz 19968926 BLAKE2B ebe345a961bd32beda617faf48984238263902517342dc3dd003193a00ae45b296f132aa32147abc35d2b686addab7effec6ac62a6b09502684b43d0627e0e75 SHA512 053b365bb4c1d8228a3fe1e67fb9758c67a4dc040801ab3179b2c973508137aa8995a6f3c51a270c61b9cd8019e755cb4e8e1650857e288c112a2948daf4fb66 +DIST gimp-resynthesizer-3.0_p20260320.tar.gz 19974426 BLAKE2B 0446020b5367ebc57ec1ab34c8956da4b89cadcd514cecb84daaacbb42323b9c19b7917c177c43b9380c736cf38ff3f4658a1fa9fb178177d634a0a5ad0673ae SHA512 d579b3e8e56d159d0e7169625c5efcb2469e05985d039a91b8938ba1b80aef8bd338658238451eb886285adb345da6190877e7e46010462b7ffafe06ec6091d7 diff --git a/media-plugins/gimp-resynthesizer/gimp-resynthesizer-3.0_p20260320.ebuild b/media-plugins/gimp-resynthesizer/gimp-resynthesizer-3.0_p20260320.ebuild new file mode 100644 index 0000000000..9a2584c848 --- /dev/null +++ b/media-plugins/gimp-resynthesizer/gimp-resynthesizer-3.0_p20260320.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +MY_COMMIT="3e69680cc2dd607a27731aa7d550a66d2ecb1ddf" + +MY_PN="resynthesizer" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Suite of GIMP plugins for texture synthesis" +HOMEPAGE="https://github.com/bootchk/resynthesizer" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/bootchk/resynthesizer.git" + EGIT_BRANCH="resynthesizer3" +elif [[ ${PV} == *_p* ]] ; then + SRC_URI="https://github.com/bootchk/resynthesizer/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${MY_PN}-${MY_COMMIT}" +else + SRC_URI="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${MY_P}" +fi + +LICENSE="GPL-3" +SLOT="0" + +if [[ ${PV} != *9999* ]] ; then + KEYWORDS="~amd64" +fi + +IUSE="debug +glib threads +translations animate deep-progress" +REQUIRED_USE="debug? ( glib )" +RESTRICT="test" # broken upstream tests + +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 translations install-translations) + $(meson_use animate synth-animate) + $(meson_use deep-progress synth-deep-progress) + ) + + # 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() { + addwrite "/usr/$(get_libdir)/gimp/3.0/plug-ins" + + meson_src_install +} diff --git a/media-plugins/gimp-resynthesizer/gimp-resynthesizer-9999.ebuild b/media-plugins/gimp-resynthesizer/gimp-resynthesizer-9999.ebuild new file mode 100644 index 0000000000..9a2584c848 --- /dev/null +++ b/media-plugins/gimp-resynthesizer/gimp-resynthesizer-9999.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +MY_COMMIT="3e69680cc2dd607a27731aa7d550a66d2ecb1ddf" + +MY_PN="resynthesizer" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Suite of GIMP plugins for texture synthesis" +HOMEPAGE="https://github.com/bootchk/resynthesizer" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/bootchk/resynthesizer.git" + EGIT_BRANCH="resynthesizer3" +elif [[ ${PV} == *_p* ]] ; then + SRC_URI="https://github.com/bootchk/resynthesizer/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${MY_PN}-${MY_COMMIT}" +else + SRC_URI="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${MY_P}" +fi + +LICENSE="GPL-3" +SLOT="0" + +if [[ ${PV} != *9999* ]] ; then + KEYWORDS="~amd64" +fi + +IUSE="debug +glib threads +translations animate deep-progress" +REQUIRED_USE="debug? ( glib )" +RESTRICT="test" # broken upstream tests + +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 translations install-translations) + $(meson_use animate synth-animate) + $(meson_use deep-progress synth-deep-progress) + ) + + # 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() { + addwrite "/usr/$(get_libdir)/gimp/3.0/plug-ins" + + meson_src_install +} diff --git a/media-plugins/gimp-resynthesizer/metadata.xml b/media-plugins/gimp-resynthesizer/metadata.xml index 269169a326..c17de4c28d 100644 --- a/media-plugins/gimp-resynthesizer/metadata.xml +++ b/media-plugins/gimp-resynthesizer/metadata.xml @@ -7,12 +7,10 @@ Use GLib library for platform independence instead of direct system calls - 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 - Enable debug logging, call tree tracing, and algorithm statistics. Currently depends on GLib + Enable animation of the synthesis process for debugging. You may see a 'brushfire front' of pixels being synthesized. May not work with threading enabled Enable detailed progress reporting (percent processed) instead of shallow progress (per pass). Useful for slow motion animation - Build the simple API library that only provides healing functionality. Not needed for GIMP, only for external test harnesses Enable threading support for approximately 2x performance speedup. Thread limit is hardcoded to 12 - Install translation files. + Install translation files bootchk/resynthesizer