media-plugins/gimp-resynthesizer: add 3.0_p20260320, 9999

* Tests disabled, doesn't compile and seemingly abandoned by upstream

Closes: https://bugs.gentoo.org/971449
Signed-off-by: dsaf <ghostyn678+git@gmail.com>
This commit is contained in:
dsaf
2026-03-31 05:36:18 -03:00
parent 2f3a2aa603
commit cd2611fa10
4 changed files with 141 additions and 4 deletions

View File

@@ -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

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -7,12 +7,10 @@
</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="animate">Enable animation of the synthesis process for debugging. You may see a 'brushfire front' of pixels being synthesized. May not work with threading enabled</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>
<flag name="translations">Install translation files</flag>
</use>
<upstream>
<remote-id type="github">bootchk/resynthesizer</remote-id>