* [PR PATCH] GIMP 3
@ 2024-04-18 7:24 classabbyamp
2024-04-18 7:26 ` [PR REVIEW] " classabbyamp
` (16 more replies)
0 siblings, 17 replies; 18+ messages in thread
From: classabbyamp @ 2024-04-18 7:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 459 bytes --]
There is a new pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages gimp3
https://github.com/void-linux/void-packages/pull/49890
GIMP 3
WIP until at minimum the full GIMP 3 release, expected in about a month
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
A patch file from https://github.com/void-linux/void-packages/pull/49890.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gimp3-49890.patch --]
[-- Type: text/x-diff, Size: 24574 bytes --]
From d330997c6868cb21468ebbb847f9e7438781e3a8 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:08 -0400
Subject: [PATCH 1/8] libjxl: disable gimp plugin
gimp 3 supports jxl now, and this would cause a dependency loop
---
srcpkgs/libjxl/template | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template
index 88403273d483bf..2e70998346238c 100644
--- a/srcpkgs/libjxl/template
+++ b/srcpkgs/libjxl/template
@@ -1,7 +1,7 @@
# Template file for 'libjxl'
pkgname=libjxl
version=0.10.2
-revision=1
+revision=2
_testdata_hash=ff8d743aaba05b3014f17e5475e576242fa979fc
build_style=cmake
configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
@@ -9,7 +9,7 @@ configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
-DJPEGXL_ENABLE_SKCMS=OFF"
hostmakedepends="tar pkg-config asciidoc"
makedepends="brotli-devel highway libpng-devel giflib-devel libjpeg-turbo-devel
- libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp-devel lcms2-devel"
+ libopenexr-devel libwebp-devel gdk-pixbuf-devel lcms2-devel"
checkdepends="gtest-devel xdg-utils"
short_desc="JPEG XL image format reference implementation"
maintainer="Joshua Krämer <joshua@kraemer.link>"
@@ -64,7 +64,6 @@ libjxl-plugins_package() {
depends="desktop-file-utils"
pkg_install() {
vmove usr/lib/gdk-pixbuf-2.0
- vmove usr/lib/gimp
vmove usr/share/mime
vmove usr/share/thumbnailers
}
From 15df0645d9ad118a332e220ca50694a3ea25b943 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:35 -0400
Subject: [PATCH 2/8] gegl: update to 0.4.48.
---
srcpkgs/gegl/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gegl/template b/srcpkgs/gegl/template
index 5d4b070cd703ee..f395fe359f2dd1 100644
--- a/srcpkgs/gegl/template
+++ b/srcpkgs/gegl/template
@@ -1,7 +1,7 @@
# Template file for 'gegl'
pkgname=gegl
-version=0.4.46
-revision=2
+version=0.4.48
+revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dintrospection=true -Dvapigen=enabled
@@ -18,7 +18,7 @@ license="GPL-3.0-only, LGPL-3.0-only"
homepage="https://gegl.org/"
changelog="https://gitlab.gnome.org/GNOME/gegl/-/raw/master/docs/NEWS.adoc"
distfiles="https://download.gimp.org/pub/gegl/${version%.*}/gegl-${version}.tar.xz"
-checksum=d0b3b2481bc8774c5f3d0a487611910166d18eef823a859fb91e781ab7b1e892
+checksum=418c26d94be8805d7d98f6de0c6825ca26bd74fcacb6c188da47533d9ee28247
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From 6cbb4964a25907519e26ce10ec4378ad14b29275 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:29 -0400
Subject: [PATCH 3/8] gimp: update to 2.99.18.
---
common/shlibs | 18 +-
srcpkgs/gimp-python | 1 -
srcpkgs/gimp/INSTALL | 2 +-
srcpkgs/gimp/patches/fix-cross.patch | 18 --
srcpkgs/gimp/patches/fix-segfault.patch | 169 ------------------
srcpkgs/gimp/patches/gcc14.patch | 63 -------
.../gimp/patches/install-gimpchoice-h.patch | 25 +++
srcpkgs/gimp/template | 59 +++---
8 files changed, 69 insertions(+), 286 deletions(-)
delete mode 120000 srcpkgs/gimp-python
delete mode 100644 srcpkgs/gimp/patches/fix-cross.patch
delete mode 100644 srcpkgs/gimp/patches/fix-segfault.patch
delete mode 100644 srcpkgs/gimp/patches/gcc14.patch
create mode 100644 srcpkgs/gimp/patches/install-gimpchoice-h.patch
diff --git a/common/shlibs b/common/shlibs
index 4b88c10b0d390f..7e8a0dd2ec8563 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -549,15 +549,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
-libgimp-2.0.so.0 libgimp-2.10.0_1
-libgimpwidgets-2.0.so.0 libgimp-2.10.0_1
-libgimpui-2.0.so.0 libgimp-2.10.0_1
-libgimpbase-2.0.so.0 libgimp-2.10.0_1
-libgimpthumb-2.0.so.0 libgimp-2.10.0_1
-libgimpconfig-2.0.so.0 libgimp-2.10.0_1
-libgimpmath-2.0.so.0 libgimp-2.10.0_1
-libgimpcolor-2.0.so.0 libgimp-2.10.0_1
-libgimpmodule-2.0.so.0 libgimp-2.10.0_1
+libgimp-3.0.so.0 libgimp-2.99.18_1
+libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
+libgimpui-3.0.so.0 libgimp-2.99.18_1
+libgimpbase-3.0.so.0 libgimp-2.99.18_1
+libgimpthumb-3.0.so.0 libgimp-2.99.18_1
+libgimpconfig-3.0.so.0 libgimp-2.99.18_1
+libgimpmath-3.0.so.0 libgimp-2.99.18_1
+libgimpcolor-3.0.so.0 libgimp-2.99.18_1
+libgimpmodule-3.0.so.0 libgimp-2.99.18_1
libgmic.so.3 gmic-3.1.6_1
libcgmic.so.3 gmic-3.1.6_1
libexiv2.so.28 exiv2-0.28.1_1
diff --git a/srcpkgs/gimp-python b/srcpkgs/gimp-python
deleted file mode 120000
index 92344a4bb4a963..00000000000000
--- a/srcpkgs/gimp-python
+++ /dev/null
@@ -1 +0,0 @@
-gimp
\ No newline at end of file
diff --git a/srcpkgs/gimp/INSTALL b/srcpkgs/gimp/INSTALL
index 87064d64438f00..daeff6b33cec0f 100644
--- a/srcpkgs/gimp/INSTALL
+++ b/srcpkgs/gimp/INSTALL
@@ -2,7 +2,7 @@
case "${ACTION}" in
pre)
if [ "$UPDATE" = "yes" ]; then
- xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm -f
fi
;;
esac
diff --git a/srcpkgs/gimp/patches/fix-cross.patch b/srcpkgs/gimp/patches/fix-cross.patch
deleted file mode 100644
index 0ffcf9b650b987..00000000000000
--- a/srcpkgs/gimp/patches/fix-cross.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
-+++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
-@@ -14,6 +14,7 @@ else
- libm = -lm
- endif
-
-+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
- libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
- libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
- libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
-@@ -85,6 +86,7 @@ script_fu_SOURCES = \
- scheme-wrapper.h
-
- LDADD = \
-+ $(libgimpmodule) \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpconfig) \
diff --git a/srcpkgs/gimp/patches/fix-segfault.patch b/srcpkgs/gimp/patches/fix-segfault.patch
deleted file mode 100644
index 5f1a6a6d3fe977..00000000000000
--- a/srcpkgs/gimp/patches/fix-segfault.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
-index 064f2c4..b17d82f 100644
---- a/app/dialogs/dialogs.c
-+++ b/app/dialogs/dialogs.c
-@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
- menu_factory);
- gimp_dialog_factory_set_singleton (factory);
-
-- for (i = 0; i < G_N_ELEMENTS (entries); i++)
-+ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
-+ char *name, *blurb;
-+ name = entries[i].name ? gettext(entries[i].name) : NULL;
-+ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
-+
- gimp_dialog_factory_register_entry (factory,
- entries[i].identifier,
-- gettext (entries[i].name),
-- gettext (entries[i].blurb),
-+ name,
-+ blurb,
- entries[i].icon_name,
- entries[i].help_id,
- entries[i].new_func,
-@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
- entries[i].hideable,
- entries[i].image_window,
- entries[i].dockable);
-+ }
-
- global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
- }
-diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
-index 04bd1b6..12eff51 100644
---- a/app/widgets/gimpactiongroup.c
-+++ b/app/widgets/gimpactiongroup.c
-@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_action_impl_new (entries[i].name, label, tooltip,
-@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_toggle_action_new (entries[i].name, label, tooltip,
-@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_radio_action_new (entries[i].name, label, tooltip,
-@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpEnumAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_enum_action_new (entries[i].name, label, tooltip,
-@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp/patches/gcc14.patch b/srcpkgs/gimp/patches/gcc14.patch
deleted file mode 100644
index ceae92fa154c82..00000000000000
--- a/srcpkgs/gimp/patches/gcc14.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Fri, 13 Jan 2023 13:29:07 +0100
-Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
-
-Do not call the undeclared exit function. Implicit function
-declarations are likely not going to be supported by future compilers
-by default, changing the outcome of this configure probe with
-such compilers.
----
- configure.ac | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 03047899841..b8718955471 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
- ]])],
- [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
-diff --git a/configure b/configure
-index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
---- a/configure
-+++ b/configure
-@@ -28898,17 +28898,17 @@ else $as_nop
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
-
- _ACEOF
diff --git a/srcpkgs/gimp/patches/install-gimpchoice-h.patch b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
new file mode 100644
index 00000000000000..533b14d397f814
--- /dev/null
+++ b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
@@ -0,0 +1,25 @@
+From 11892f1d83ffc465346dab7e2e8c6e790f555a64 Mon Sep 17 00:00:00 2001
+From: Jehan <jehan@girinstud.io>
+Date: Wed, 21 Feb 2024 11:08:23 +0100
+Subject: [PATCH] Issue #10900: install missing gimpchoice.h.
+
+Argh how this could pass without anyone noticing?!
+---
+ libgimpbase/meson.build | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libgimpbase/meson.build b/libgimpbase/meson.build
+index a77d125f39d..a2c27016b10 100644
+--- a/libgimpbase/meson.build
++++ b/libgimpbase/meson.build
+@@ -84,6 +84,7 @@ libgimpbase_headers_introspectable = files(
+ 'gimpbaseenums.h',
+ 'gimpbasetypes.h',
+ 'gimpchecks.h',
++ 'gimpchoice.h',
+ 'gimpcpuaccel.h',
+ 'gimpenv.h',
+ 'gimplimits.h',
+--
+GitLab
+
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index 39532a8d8c99df..45b0e47cdad3be 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -1,34 +1,40 @@
# Template file for 'gimp'
pkgname=gimp
-version=2.10.36
+version=2.99.18
revision=1
-build_style=gnu-configure
-configure_args="--disable-check-update --datadir=/usr/share --disable-python"
-hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
- libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
-makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
- ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
- libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
- libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
- poppler-glib-devel glib-networking libwebp-devel
- libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
-depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+build_style=meson
+build_helper="gir"
+configure_args="-Dcheck-update=no -Drevision=$revision -Denable-default-bin=enabled
+ $(vopt_bool gir g-ir-doc) $(vopt_bool gir can-crosscompile-gir)
+ -Dbug-report-url=https://github.com/void-linux/void-packages/issues/new/choose"
+hostmakedepends="pkg-config xdg-utils perl libxslt gjs LuaJIT desktop-file-utils
+ AppStream gi-docgen gettext gobject-introspection yelp-tools"
+makedepends="babl-devel gtk+3-devel gegl-devel libgexiv2-devel libgirepository-devel
+ libmypaint-devel mypaint-brushes1 librsvg-devel glib-networking appstream-glib-devel
+ libXmu-devel ghostscript-devel libmng-devel aalib-devel libXpm-devel libopenexr-devel
+ libwebp-devel libheif-devel poppler-glib-devel libwmf-devel libopenjpeg2-devel
+ libjxl-devel alsa-lib-devel cfitsio-devel python3-gobject-devel libgomp-devel
+ libunwind-devel lua51-lgi"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1 python3-gobject"
+checkdepends="xvfb-run dbus"
short_desc="GNU image manipulation program"
-conf_files="/etc/gimp/${version%%.*}.0/*"
+#conf_files="/etc/gimp/${version%%.*}.0/*"
+conf_files="/etc/gimp/${version%.*}/*"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-only"
homepage="https://www.gimp.org"
-changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
-distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
-checksum=3d3bc3c69a4bdb3aea9ba2d5385ed98ea03953f3857aafd1d6976011ed7cdbb2
+distfiles="https://download.gimp.org/gimp/v${version%.*}/gimp-${version}.tar.xz"
+checksum=8c1bb7a94ac0d4d0cde4d701d8b356387c2ecd87abbd35bbf7d222d40f6ddb6e
lib32disabled=yes
-no_generic_pkgconfig_link=yes
-pre_configure() {
- NOCONFIGURE=1 autoreconf -fi
- # don't allow configure to set DATADIRNAME=lib
- vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
+build_options="gir"
+build_options_default="gir"
+
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -Dheadless-tests=enabled"
+else
+ configure_args+=" -Dheadless-tests=disabled"
+fi
libgimp_package() {
short_desc+=" - runtime libraries"
@@ -38,13 +44,16 @@ libgimp_package() {
}
gimp-devel_package() {
- depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}"
+ depends="libgimp>=${version}_${revision} gegl-devel gtk+3-devel libgexiv2-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
- vmove usr/share/gtk-doc
- vmove usr/share/aclocal
+ vmove usr/share/doc
vmove "usr/lib/*.so"
+ if [ "$build_option_gir" ]; then
+ vmove usr/share/gir-1.0
+ vmove usr/share/vala
+ fi
}
}
From 4e3ea0896cbd54ece1740153d125159240041aae Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:09 -0400
Subject: [PATCH 4/8] gmic: rebuild for gimp 3
---
srcpkgs/gmic/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/gmic/template b/srcpkgs/gmic/template
index fa37651bb6deea..24d10147e3abad 100644
--- a/srcpkgs/gmic/template
+++ b/srcpkgs/gmic/template
@@ -1,7 +1,7 @@
# Template file for 'gmic'
pkgname=gmic
version=3.1.6
-revision=5
+revision=6
_zart_hash=34ebf6cce0bafb98abe57cec83c4a02cd1abeca0
create_wrksrc=yes
build_wrksrc="src"
From aca92a2abae05416f3e836bfc12f731ed6fa0891 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:10 -0400
Subject: [PATCH 5/8] nufraw: rebuild for gimp 3
---
srcpkgs/nufraw/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/nufraw/template b/srcpkgs/nufraw/template
index 551f263df96d38..86a4d73adb797f 100644
--- a/srcpkgs/nufraw/template
+++ b/srcpkgs/nufraw/template
@@ -1,7 +1,7 @@
# Template file for 'nufraw'
pkgname=nufraw
version=0.43.3
-revision=1
+revision=2
_ver="${version%.*}-${version##*.}"
build_style=gnu-configure
configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
From aa93a4ff75b2aec7e77b8b84f7acc52cb6ad5092 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 6/8] xsane: rebuild for gimp 3
---
srcpkgs/xsane/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 7dde32af2b674c..0f69c0f65fe6b8 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -1,7 +1,7 @@
# Template file for 'xsane'
pkgname=xsane
version=0.999
-revision=5
+revision=6
hostmakedepends="pkg-config sane-devel gettext"
makedepends="gtk+-devel lcms-devel sane-devel gimp-devel"
depends="sane"
From ff4fdb33fbc88c6fcb29b7f3e8f75ea34a28a7ac Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 7/8] gimp-lqr-plugin: rebuild for gimp 3
---
srcpkgs/gimp-lqr-plugin/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/gimp-lqr-plugin/template b/srcpkgs/gimp-lqr-plugin/template
index 7878f6cb795d24..9a516b3798b0e0 100644
--- a/srcpkgs/gimp-lqr-plugin/template
+++ b/srcpkgs/gimp-lqr-plugin/template
@@ -1,7 +1,7 @@
# Template file for 'gimp-lqr-plugin'
pkgname=gimp-lqr-plugin
version=0.7.2
-revision=2
+revision=3
build_style=gnu-configure
hostmakedepends="automake intltool pkg-config"
makedepends="gimp-devel glib-devel gettext-devel liblqr-devel"
From 400d9da2a4bb4411c81b0e3961d1b7dcc0c7bea3 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 03:22:14 -0400
Subject: [PATCH 8/8] resynthesizer: update to 2.0.3+2.
WIP gimp 3 port
---
srcpkgs/resynthesizer/template | 26 +++++++-------------------
1 file changed, 7 insertions(+), 19 deletions(-)
diff --git a/srcpkgs/resynthesizer/template b/srcpkgs/resynthesizer/template
index a58b0eec995854..68be9e18dd0ffe 100644
--- a/srcpkgs/resynthesizer/template
+++ b/srcpkgs/resynthesizer/template
@@ -1,26 +1,14 @@
# Template file for 'resynthesizer'
pkgname=resynthesizer
-version=2.0.3+1
+version=2.0.3+2
revision=1
-_commit=701e890d1d456e215e05daa7b4a88f5d9c6c03b3
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
+_commit=dee67110c51cbc69c28435ac7485766c3eb30a94
+build_style=meson
+hostmakedepends="pkg-config"
makedepends="gimp-devel glib-devel gettext-devel"
short_desc="Suite of gimp plugins for texture healing and synthesis"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
-# FIXME: when gimp 3 is available, switch back to bootchk upstream
-#homepage="https://github.com/bootchk/resynthesizer"
-#distfiles="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${version}.tar.gz"
-homepage="https://github.com/itr-tert/gimp-resynthesizer-scm"
-distfiles="https://github.com/itr-tert/gimp-resynthesizer-scm/archive/${_commit}.tar.gz"
-checksum=298286386466fbd6d2da06f8a920c6e6e313db7ca0a094a36a355978a64cefc0
-
-if [ "$CROSS_BUILD" ];then
- hostmakedepends+=" glib-devel gettext-devel"
- AUTOGEN_CONFIGURE_ARGS+=" --host=${XBPS_MACHINE%-musl} --build=${XBPS_CROSS_TRIPLET}"
-fi
-
-pre_configure() {
- ./autogen.sh ${AUTOGEN_CONFIGURE_ARGS}
-}
+homepage="https://github.com/bootchk/resynthesizer"
+distfiles="https://github.com/bootchk/resynthesizer/archive/${_commit}.tar.gz"
+checksum=a9ae689f5c10e284b0b8cab03baa05caab029fae2250bcdcc7e1d3ec6f8c367d
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PR REVIEW] GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
2024-04-18 7:26 ` [PR REVIEW] " classabbyamp
@ 2024-04-18 7:26 ` classabbyamp
2024-04-21 20:02 ` [PR PATCH] [Updated] " classabbyamp
` (14 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2024-04-18 7:26 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 157 bytes --]
New review comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/49890#discussion_r1570150739
Comment:
TODO
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PR REVIEW] GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
@ 2024-04-18 7:26 ` classabbyamp
2024-04-18 7:26 ` classabbyamp
` (15 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2024-04-18 7:26 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 189 bytes --]
New review comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/49890#discussion_r1570149887
Comment:
TODO: update minver for main release
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PR PATCH] [Updated] GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
2024-04-18 7:26 ` [PR REVIEW] " classabbyamp
2024-04-18 7:26 ` classabbyamp
@ 2024-04-21 20:02 ` classabbyamp
2024-06-12 2:23 ` classabbyamp
` (13 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2024-04-21 20:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
There is an updated pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages gimp3
https://github.com/void-linux/void-packages/pull/49890
GIMP 3
WIP until at minimum the full GIMP 3 release, expected in about a month: https://gitlab.gnome.org/GNOME/gimp/-/issues/10373
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
#### Plugins
- [ ] nufraw - not (yet) compatible
- [ ] resynthesizer - compatible on in-dev branch
- [ ] gmic - not (yet) compatible
- [ ] xsane
- [ ] gimp-lqr-plugin - not (yet) compatible)
- [x] libjxl - disable because gimp supports it directly now
A patch file from https://github.com/void-linux/void-packages/pull/49890.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gimp3-49890.patch --]
[-- Type: text/x-diff, Size: 24587 bytes --]
From e9cd8a2130b2d32b04a44c85a64327b31f169357 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:08 -0400
Subject: [PATCH 1/8] libjxl: disable gimp plugin
gimp 3 supports jxl now, and this would cause a dependency loop
---
srcpkgs/libjxl/template | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template
index 88403273d483bf..2e70998346238c 100644
--- a/srcpkgs/libjxl/template
+++ b/srcpkgs/libjxl/template
@@ -1,7 +1,7 @@
# Template file for 'libjxl'
pkgname=libjxl
version=0.10.2
-revision=1
+revision=2
_testdata_hash=ff8d743aaba05b3014f17e5475e576242fa979fc
build_style=cmake
configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
@@ -9,7 +9,7 @@ configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
-DJPEGXL_ENABLE_SKCMS=OFF"
hostmakedepends="tar pkg-config asciidoc"
makedepends="brotli-devel highway libpng-devel giflib-devel libjpeg-turbo-devel
- libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp-devel lcms2-devel"
+ libopenexr-devel libwebp-devel gdk-pixbuf-devel lcms2-devel"
checkdepends="gtest-devel xdg-utils"
short_desc="JPEG XL image format reference implementation"
maintainer="Joshua Krämer <joshua@kraemer.link>"
@@ -64,7 +64,6 @@ libjxl-plugins_package() {
depends="desktop-file-utils"
pkg_install() {
vmove usr/lib/gdk-pixbuf-2.0
- vmove usr/lib/gimp
vmove usr/share/mime
vmove usr/share/thumbnailers
}
From 0197641a0f153b66af34c713c966612a8f200991 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:35 -0400
Subject: [PATCH 2/8] gegl: update to 0.4.48.
---
srcpkgs/gegl/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gegl/template b/srcpkgs/gegl/template
index 5d4b070cd703ee..f395fe359f2dd1 100644
--- a/srcpkgs/gegl/template
+++ b/srcpkgs/gegl/template
@@ -1,7 +1,7 @@
# Template file for 'gegl'
pkgname=gegl
-version=0.4.46
-revision=2
+version=0.4.48
+revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dintrospection=true -Dvapigen=enabled
@@ -18,7 +18,7 @@ license="GPL-3.0-only, LGPL-3.0-only"
homepage="https://gegl.org/"
changelog="https://gitlab.gnome.org/GNOME/gegl/-/raw/master/docs/NEWS.adoc"
distfiles="https://download.gimp.org/pub/gegl/${version%.*}/gegl-${version}.tar.xz"
-checksum=d0b3b2481bc8774c5f3d0a487611910166d18eef823a859fb91e781ab7b1e892
+checksum=418c26d94be8805d7d98f6de0c6825ca26bd74fcacb6c188da47533d9ee28247
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From 24dd3eafb29db334fd95f40a888e47efc464f7fe Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:29 -0400
Subject: [PATCH 3/8] gimp: update to 2.99.18.
---
common/shlibs | 18 +-
srcpkgs/gimp-python | 1 -
srcpkgs/gimp/INSTALL | 2 +-
srcpkgs/gimp/patches/fix-cross.patch | 18 --
srcpkgs/gimp/patches/fix-segfault.patch | 169 ------------------
srcpkgs/gimp/patches/gcc14.patch | 63 -------
.../gimp/patches/install-gimpchoice-h.patch | 25 +++
srcpkgs/gimp/template | 61 ++++---
8 files changed, 70 insertions(+), 287 deletions(-)
delete mode 120000 srcpkgs/gimp-python
delete mode 100644 srcpkgs/gimp/patches/fix-cross.patch
delete mode 100644 srcpkgs/gimp/patches/fix-segfault.patch
delete mode 100644 srcpkgs/gimp/patches/gcc14.patch
create mode 100644 srcpkgs/gimp/patches/install-gimpchoice-h.patch
diff --git a/common/shlibs b/common/shlibs
index c4a876216d6397..7ce16b68e02d42 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -549,15 +549,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
-libgimp-2.0.so.0 libgimp-2.10.0_1
-libgimpwidgets-2.0.so.0 libgimp-2.10.0_1
-libgimpui-2.0.so.0 libgimp-2.10.0_1
-libgimpbase-2.0.so.0 libgimp-2.10.0_1
-libgimpthumb-2.0.so.0 libgimp-2.10.0_1
-libgimpconfig-2.0.so.0 libgimp-2.10.0_1
-libgimpmath-2.0.so.0 libgimp-2.10.0_1
-libgimpcolor-2.0.so.0 libgimp-2.10.0_1
-libgimpmodule-2.0.so.0 libgimp-2.10.0_1
+libgimp-3.0.so.0 libgimp-2.99.18_1
+libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
+libgimpui-3.0.so.0 libgimp-2.99.18_1
+libgimpbase-3.0.so.0 libgimp-2.99.18_1
+libgimpthumb-3.0.so.0 libgimp-2.99.18_1
+libgimpconfig-3.0.so.0 libgimp-2.99.18_1
+libgimpmath-3.0.so.0 libgimp-2.99.18_1
+libgimpcolor-3.0.so.0 libgimp-2.99.18_1
+libgimpmodule-3.0.so.0 libgimp-2.99.18_1
libgmic.so.3 gmic-3.1.6_1
libcgmic.so.3 gmic-3.1.6_1
libexiv2.so.28 exiv2-0.28.1_1
diff --git a/srcpkgs/gimp-python b/srcpkgs/gimp-python
deleted file mode 120000
index 92344a4bb4a963..00000000000000
--- a/srcpkgs/gimp-python
+++ /dev/null
@@ -1 +0,0 @@
-gimp
\ No newline at end of file
diff --git a/srcpkgs/gimp/INSTALL b/srcpkgs/gimp/INSTALL
index 87064d64438f00..daeff6b33cec0f 100644
--- a/srcpkgs/gimp/INSTALL
+++ b/srcpkgs/gimp/INSTALL
@@ -2,7 +2,7 @@
case "${ACTION}" in
pre)
if [ "$UPDATE" = "yes" ]; then
- xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm -f
fi
;;
esac
diff --git a/srcpkgs/gimp/patches/fix-cross.patch b/srcpkgs/gimp/patches/fix-cross.patch
deleted file mode 100644
index 0ffcf9b650b987..00000000000000
--- a/srcpkgs/gimp/patches/fix-cross.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
-+++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
-@@ -14,6 +14,7 @@ else
- libm = -lm
- endif
-
-+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
- libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
- libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
- libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
-@@ -85,6 +86,7 @@ script_fu_SOURCES = \
- scheme-wrapper.h
-
- LDADD = \
-+ $(libgimpmodule) \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpconfig) \
diff --git a/srcpkgs/gimp/patches/fix-segfault.patch b/srcpkgs/gimp/patches/fix-segfault.patch
deleted file mode 100644
index 5f1a6a6d3fe977..00000000000000
--- a/srcpkgs/gimp/patches/fix-segfault.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
-index 064f2c4..b17d82f 100644
---- a/app/dialogs/dialogs.c
-+++ b/app/dialogs/dialogs.c
-@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
- menu_factory);
- gimp_dialog_factory_set_singleton (factory);
-
-- for (i = 0; i < G_N_ELEMENTS (entries); i++)
-+ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
-+ char *name, *blurb;
-+ name = entries[i].name ? gettext(entries[i].name) : NULL;
-+ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
-+
- gimp_dialog_factory_register_entry (factory,
- entries[i].identifier,
-- gettext (entries[i].name),
-- gettext (entries[i].blurb),
-+ name,
-+ blurb,
- entries[i].icon_name,
- entries[i].help_id,
- entries[i].new_func,
-@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
- entries[i].hideable,
- entries[i].image_window,
- entries[i].dockable);
-+ }
-
- global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
- }
-diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
-index 04bd1b6..12eff51 100644
---- a/app/widgets/gimpactiongroup.c
-+++ b/app/widgets/gimpactiongroup.c
-@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_action_impl_new (entries[i].name, label, tooltip,
-@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_toggle_action_new (entries[i].name, label, tooltip,
-@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_radio_action_new (entries[i].name, label, tooltip,
-@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpEnumAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_enum_action_new (entries[i].name, label, tooltip,
-@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp/patches/gcc14.patch b/srcpkgs/gimp/patches/gcc14.patch
deleted file mode 100644
index ceae92fa154c82..00000000000000
--- a/srcpkgs/gimp/patches/gcc14.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Fri, 13 Jan 2023 13:29:07 +0100
-Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
-
-Do not call the undeclared exit function. Implicit function
-declarations are likely not going to be supported by future compilers
-by default, changing the outcome of this configure probe with
-such compilers.
----
- configure.ac | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 03047899841..b8718955471 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
- ]])],
- [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
-diff --git a/configure b/configure
-index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
---- a/configure
-+++ b/configure
-@@ -28898,17 +28898,17 @@ else $as_nop
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
-
- _ACEOF
diff --git a/srcpkgs/gimp/patches/install-gimpchoice-h.patch b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
new file mode 100644
index 00000000000000..533b14d397f814
--- /dev/null
+++ b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
@@ -0,0 +1,25 @@
+From 11892f1d83ffc465346dab7e2e8c6e790f555a64 Mon Sep 17 00:00:00 2001
+From: Jehan <jehan@girinstud.io>
+Date: Wed, 21 Feb 2024 11:08:23 +0100
+Subject: [PATCH] Issue #10900: install missing gimpchoice.h.
+
+Argh how this could pass without anyone noticing?!
+---
+ libgimpbase/meson.build | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libgimpbase/meson.build b/libgimpbase/meson.build
+index a77d125f39d..a2c27016b10 100644
+--- a/libgimpbase/meson.build
++++ b/libgimpbase/meson.build
+@@ -84,6 +84,7 @@ libgimpbase_headers_introspectable = files(
+ 'gimpbaseenums.h',
+ 'gimpbasetypes.h',
+ 'gimpchecks.h',
++ 'gimpchoice.h',
+ 'gimpcpuaccel.h',
+ 'gimpenv.h',
+ 'gimplimits.h',
+--
+GitLab
+
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index 265f1c8e76a3ec..45b0e47cdad3be 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -1,34 +1,40 @@
# Template file for 'gimp'
pkgname=gimp
-version=2.10.36
-revision=2
-build_style=gnu-configure
-configure_args="--disable-check-update --datadir=/usr/share --disable-python"
-hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
- libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
-makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
- ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
- libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
- libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
- poppler-glib-devel glib-networking libwebp-devel
- libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
-depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+version=2.99.18
+revision=1
+build_style=meson
+build_helper="gir"
+configure_args="-Dcheck-update=no -Drevision=$revision -Denable-default-bin=enabled
+ $(vopt_bool gir g-ir-doc) $(vopt_bool gir can-crosscompile-gir)
+ -Dbug-report-url=https://github.com/void-linux/void-packages/issues/new/choose"
+hostmakedepends="pkg-config xdg-utils perl libxslt gjs LuaJIT desktop-file-utils
+ AppStream gi-docgen gettext gobject-introspection yelp-tools"
+makedepends="babl-devel gtk+3-devel gegl-devel libgexiv2-devel libgirepository-devel
+ libmypaint-devel mypaint-brushes1 librsvg-devel glib-networking appstream-glib-devel
+ libXmu-devel ghostscript-devel libmng-devel aalib-devel libXpm-devel libopenexr-devel
+ libwebp-devel libheif-devel poppler-glib-devel libwmf-devel libopenjpeg2-devel
+ libjxl-devel alsa-lib-devel cfitsio-devel python3-gobject-devel libgomp-devel
+ libunwind-devel lua51-lgi"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1 python3-gobject"
+checkdepends="xvfb-run dbus"
short_desc="GNU image manipulation program"
-conf_files="/etc/gimp/${version%%.*}.0/*"
+#conf_files="/etc/gimp/${version%%.*}.0/*"
+conf_files="/etc/gimp/${version%.*}/*"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-only"
homepage="https://www.gimp.org"
-changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
-distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
-checksum=3d3bc3c69a4bdb3aea9ba2d5385ed98ea03953f3857aafd1d6976011ed7cdbb2
+distfiles="https://download.gimp.org/gimp/v${version%.*}/gimp-${version}.tar.xz"
+checksum=8c1bb7a94ac0d4d0cde4d701d8b356387c2ecd87abbd35bbf7d222d40f6ddb6e
lib32disabled=yes
-no_generic_pkgconfig_link=yes
-pre_configure() {
- NOCONFIGURE=1 autoreconf -fi
- # don't allow configure to set DATADIRNAME=lib
- vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
+build_options="gir"
+build_options_default="gir"
+
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -Dheadless-tests=enabled"
+else
+ configure_args+=" -Dheadless-tests=disabled"
+fi
libgimp_package() {
short_desc+=" - runtime libraries"
@@ -38,13 +44,16 @@ libgimp_package() {
}
gimp-devel_package() {
- depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}"
+ depends="libgimp>=${version}_${revision} gegl-devel gtk+3-devel libgexiv2-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
- vmove usr/share/gtk-doc
- vmove usr/share/aclocal
+ vmove usr/share/doc
vmove "usr/lib/*.so"
+ if [ "$build_option_gir" ]; then
+ vmove usr/share/gir-1.0
+ vmove usr/share/vala
+ fi
}
}
From b9dc2c9bd54954376b4d0906753bb11a3c6a0a32 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:09 -0400
Subject: [PATCH 4/8] gmic: rebuild for gimp 3
---
srcpkgs/gmic/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/gmic/template b/srcpkgs/gmic/template
index fa37651bb6deea..24d10147e3abad 100644
--- a/srcpkgs/gmic/template
+++ b/srcpkgs/gmic/template
@@ -1,7 +1,7 @@
# Template file for 'gmic'
pkgname=gmic
version=3.1.6
-revision=5
+revision=6
_zart_hash=34ebf6cce0bafb98abe57cec83c4a02cd1abeca0
create_wrksrc=yes
build_wrksrc="src"
From cd08e805ad039870203e61d5531b6b0a4d0d281e Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:10 -0400
Subject: [PATCH 5/8] nufraw: rebuild for gimp 3
---
srcpkgs/nufraw/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/nufraw/template b/srcpkgs/nufraw/template
index 551f263df96d38..86a4d73adb797f 100644
--- a/srcpkgs/nufraw/template
+++ b/srcpkgs/nufraw/template
@@ -1,7 +1,7 @@
# Template file for 'nufraw'
pkgname=nufraw
version=0.43.3
-revision=1
+revision=2
_ver="${version%.*}-${version##*.}"
build_style=gnu-configure
configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
From 11727e39fa51d8ac2d6127c22f1275dfe9f85c31 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 6/8] xsane: rebuild for gimp 3
---
srcpkgs/xsane/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 7dde32af2b674c..0f69c0f65fe6b8 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -1,7 +1,7 @@
# Template file for 'xsane'
pkgname=xsane
version=0.999
-revision=5
+revision=6
hostmakedepends="pkg-config sane-devel gettext"
makedepends="gtk+-devel lcms-devel sane-devel gimp-devel"
depends="sane"
From 804edfc40e86a6539bef08e8b94c37091e2c4f99 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 7/8] gimp-lqr-plugin: rebuild for gimp 3
---
srcpkgs/gimp-lqr-plugin/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/gimp-lqr-plugin/template b/srcpkgs/gimp-lqr-plugin/template
index 7878f6cb795d24..9a516b3798b0e0 100644
--- a/srcpkgs/gimp-lqr-plugin/template
+++ b/srcpkgs/gimp-lqr-plugin/template
@@ -1,7 +1,7 @@
# Template file for 'gimp-lqr-plugin'
pkgname=gimp-lqr-plugin
version=0.7.2
-revision=2
+revision=3
build_style=gnu-configure
hostmakedepends="automake intltool pkg-config"
makedepends="gimp-devel glib-devel gettext-devel liblqr-devel"
From 1fda55ba20635d3bbb641c7dcdba6b3cae7a05fb Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 03:22:14 -0400
Subject: [PATCH 8/8] resynthesizer: update to 2.0.3+2.
WIP gimp 3 port
---
srcpkgs/resynthesizer/template | 26 +++++++-------------------
1 file changed, 7 insertions(+), 19 deletions(-)
diff --git a/srcpkgs/resynthesizer/template b/srcpkgs/resynthesizer/template
index a58b0eec995854..68be9e18dd0ffe 100644
--- a/srcpkgs/resynthesizer/template
+++ b/srcpkgs/resynthesizer/template
@@ -1,26 +1,14 @@
# Template file for 'resynthesizer'
pkgname=resynthesizer
-version=2.0.3+1
+version=2.0.3+2
revision=1
-_commit=701e890d1d456e215e05daa7b4a88f5d9c6c03b3
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
+_commit=dee67110c51cbc69c28435ac7485766c3eb30a94
+build_style=meson
+hostmakedepends="pkg-config"
makedepends="gimp-devel glib-devel gettext-devel"
short_desc="Suite of gimp plugins for texture healing and synthesis"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
-# FIXME: when gimp 3 is available, switch back to bootchk upstream
-#homepage="https://github.com/bootchk/resynthesizer"
-#distfiles="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${version}.tar.gz"
-homepage="https://github.com/itr-tert/gimp-resynthesizer-scm"
-distfiles="https://github.com/itr-tert/gimp-resynthesizer-scm/archive/${_commit}.tar.gz"
-checksum=298286386466fbd6d2da06f8a920c6e6e313db7ca0a094a36a355978a64cefc0
-
-if [ "$CROSS_BUILD" ];then
- hostmakedepends+=" glib-devel gettext-devel"
- AUTOGEN_CONFIGURE_ARGS+=" --host=${XBPS_MACHINE%-musl} --build=${XBPS_CROSS_TRIPLET}"
-fi
-
-pre_configure() {
- ./autogen.sh ${AUTOGEN_CONFIGURE_ARGS}
-}
+homepage="https://github.com/bootchk/resynthesizer"
+distfiles="https://github.com/bootchk/resynthesizer/archive/${_commit}.tar.gz"
+checksum=a9ae689f5c10e284b0b8cab03baa05caab029fae2250bcdcc7e1d3ec6f8c367d
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PR PATCH] [Updated] GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
` (2 preceding siblings ...)
2024-04-21 20:02 ` [PR PATCH] [Updated] " classabbyamp
@ 2024-06-12 2:23 ` classabbyamp
2024-06-12 2:28 ` classabbyamp
` (12 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2024-06-12 2:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
There is an updated pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages gimp3
https://github.com/void-linux/void-packages/pull/49890
GIMP 3
WIP until at minimum the full GIMP 3 release, expected in about a month: https://gitlab.gnome.org/GNOME/gimp/-/issues/10373
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
#### Plugins
- [ ] nufraw - not (yet) compatible
- [x] resynthesizer - compatible on in-dev branch
- [ ] gmic - not (yet) compatible
- [ ] xsane
- [ ] gimp-lqr-plugin - not (yet) compatible)
- [x] libjxl - disable because gimp supports it directly now
A patch file from https://github.com/void-linux/void-packages/pull/49890.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gimp3-49890.patch --]
[-- Type: text/x-diff, Size: 42030 bytes --]
From 61ecd17eb244212706713ff2de6e6c321c255cd8 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:35 -0400
Subject: [PATCH 1/9] gegl: update to 0.4.48.
---
srcpkgs/gegl/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gegl/template b/srcpkgs/gegl/template
index 5d4b070cd703ee..f395fe359f2dd1 100644
--- a/srcpkgs/gegl/template
+++ b/srcpkgs/gegl/template
@@ -1,7 +1,7 @@
# Template file for 'gegl'
pkgname=gegl
-version=0.4.46
-revision=2
+version=0.4.48
+revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dintrospection=true -Dvapigen=enabled
@@ -18,7 +18,7 @@ license="GPL-3.0-only, LGPL-3.0-only"
homepage="https://gegl.org/"
changelog="https://gitlab.gnome.org/GNOME/gegl/-/raw/master/docs/NEWS.adoc"
distfiles="https://download.gimp.org/pub/gegl/${version%.*}/gegl-${version}.tar.xz"
-checksum=d0b3b2481bc8774c5f3d0a487611910166d18eef823a859fb91e781ab7b1e892
+checksum=418c26d94be8805d7d98f6de0c6825ca26bd74fcacb6c188da47533d9ee28247
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From 391a53dad07ec00ee7bf3054f711be322031260c Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:29 -0400
Subject: [PATCH 2/9] gimp: update to 2.99.18.
---
common/shlibs | 18 +-
srcpkgs/gimp-python | 1 -
srcpkgs/gimp/INSTALL | 2 +-
srcpkgs/gimp/INSTALL.msg | 2 +
srcpkgs/gimp/patches/fix-cross.patch | 18 --
srcpkgs/gimp/patches/fix-segfault.patch | 169 ------------------
srcpkgs/gimp/patches/gcc14.patch | 63 -------
.../gimp/patches/install-gimpchoice-h.patch | 25 +++
srcpkgs/gimp/template | 59 +++---
9 files changed, 71 insertions(+), 286 deletions(-)
delete mode 120000 srcpkgs/gimp-python
create mode 100644 srcpkgs/gimp/INSTALL.msg
delete mode 100644 srcpkgs/gimp/patches/fix-cross.patch
delete mode 100644 srcpkgs/gimp/patches/fix-segfault.patch
delete mode 100644 srcpkgs/gimp/patches/gcc14.patch
create mode 100644 srcpkgs/gimp/patches/install-gimpchoice-h.patch
diff --git a/common/shlibs b/common/shlibs
index b6017a715ced19..006a36cd77a45e 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -549,15 +549,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
-libgimp-2.0.so.0 libgimp-2.10.0_1
-libgimpwidgets-2.0.so.0 libgimp-2.10.0_1
-libgimpui-2.0.so.0 libgimp-2.10.0_1
-libgimpbase-2.0.so.0 libgimp-2.10.0_1
-libgimpthumb-2.0.so.0 libgimp-2.10.0_1
-libgimpconfig-2.0.so.0 libgimp-2.10.0_1
-libgimpmath-2.0.so.0 libgimp-2.10.0_1
-libgimpcolor-2.0.so.0 libgimp-2.10.0_1
-libgimpmodule-2.0.so.0 libgimp-2.10.0_1
+libgimp-3.0.so.0 libgimp-2.99.18_1
+libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
+libgimpui-3.0.so.0 libgimp-2.99.18_1
+libgimpbase-3.0.so.0 libgimp-2.99.18_1
+libgimpthumb-3.0.so.0 libgimp-2.99.18_1
+libgimpconfig-3.0.so.0 libgimp-2.99.18_1
+libgimpmath-3.0.so.0 libgimp-2.99.18_1
+libgimpcolor-3.0.so.0 libgimp-2.99.18_1
+libgimpmodule-3.0.so.0 libgimp-2.99.18_1
libgmic.so.3 gmic-3.1.6_1
libcgmic.so.3 gmic-3.1.6_1
libexiv2.so.28 exiv2-0.28.1_1
diff --git a/srcpkgs/gimp-python b/srcpkgs/gimp-python
deleted file mode 120000
index 92344a4bb4a963..00000000000000
--- a/srcpkgs/gimp-python
+++ /dev/null
@@ -1 +0,0 @@
-gimp
\ No newline at end of file
diff --git a/srcpkgs/gimp/INSTALL b/srcpkgs/gimp/INSTALL
index 87064d64438f00..daeff6b33cec0f 100644
--- a/srcpkgs/gimp/INSTALL
+++ b/srcpkgs/gimp/INSTALL
@@ -2,7 +2,7 @@
case "${ACTION}" in
pre)
if [ "$UPDATE" = "yes" ]; then
- xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm -f
fi
;;
esac
diff --git a/srcpkgs/gimp/INSTALL.msg b/srcpkgs/gimp/INSTALL.msg
new file mode 100644
index 00000000000000..171c0ccb0890c9
--- /dev/null
+++ b/srcpkgs/gimp/INSTALL.msg
@@ -0,0 +1,2 @@
+GIMP 3 breaks compatibility with many plugins. If you wish to continue
+using GIMP 2.x, install gimp2.
diff --git a/srcpkgs/gimp/patches/fix-cross.patch b/srcpkgs/gimp/patches/fix-cross.patch
deleted file mode 100644
index 0ffcf9b650b987..00000000000000
--- a/srcpkgs/gimp/patches/fix-cross.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
-+++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
-@@ -14,6 +14,7 @@ else
- libm = -lm
- endif
-
-+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
- libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
- libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
- libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
-@@ -85,6 +86,7 @@ script_fu_SOURCES = \
- scheme-wrapper.h
-
- LDADD = \
-+ $(libgimpmodule) \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpconfig) \
diff --git a/srcpkgs/gimp/patches/fix-segfault.patch b/srcpkgs/gimp/patches/fix-segfault.patch
deleted file mode 100644
index 5f1a6a6d3fe977..00000000000000
--- a/srcpkgs/gimp/patches/fix-segfault.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
-index 064f2c4..b17d82f 100644
---- a/app/dialogs/dialogs.c
-+++ b/app/dialogs/dialogs.c
-@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
- menu_factory);
- gimp_dialog_factory_set_singleton (factory);
-
-- for (i = 0; i < G_N_ELEMENTS (entries); i++)
-+ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
-+ char *name, *blurb;
-+ name = entries[i].name ? gettext(entries[i].name) : NULL;
-+ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
-+
- gimp_dialog_factory_register_entry (factory,
- entries[i].identifier,
-- gettext (entries[i].name),
-- gettext (entries[i].blurb),
-+ name,
-+ blurb,
- entries[i].icon_name,
- entries[i].help_id,
- entries[i].new_func,
-@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
- entries[i].hideable,
- entries[i].image_window,
- entries[i].dockable);
-+ }
-
- global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
- }
-diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
-index 04bd1b6..12eff51 100644
---- a/app/widgets/gimpactiongroup.c
-+++ b/app/widgets/gimpactiongroup.c
-@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_action_impl_new (entries[i].name, label, tooltip,
-@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_toggle_action_new (entries[i].name, label, tooltip,
-@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_radio_action_new (entries[i].name, label, tooltip,
-@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpEnumAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_enum_action_new (entries[i].name, label, tooltip,
-@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp/patches/gcc14.patch b/srcpkgs/gimp/patches/gcc14.patch
deleted file mode 100644
index ceae92fa154c82..00000000000000
--- a/srcpkgs/gimp/patches/gcc14.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Fri, 13 Jan 2023 13:29:07 +0100
-Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
-
-Do not call the undeclared exit function. Implicit function
-declarations are likely not going to be supported by future compilers
-by default, changing the outcome of this configure probe with
-such compilers.
----
- configure.ac | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 03047899841..b8718955471 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
- ]])],
- [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
-diff --git a/configure b/configure
-index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
---- a/configure
-+++ b/configure
-@@ -28898,17 +28898,17 @@ else $as_nop
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
-
- _ACEOF
diff --git a/srcpkgs/gimp/patches/install-gimpchoice-h.patch b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
new file mode 100644
index 00000000000000..533b14d397f814
--- /dev/null
+++ b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
@@ -0,0 +1,25 @@
+From 11892f1d83ffc465346dab7e2e8c6e790f555a64 Mon Sep 17 00:00:00 2001
+From: Jehan <jehan@girinstud.io>
+Date: Wed, 21 Feb 2024 11:08:23 +0100
+Subject: [PATCH] Issue #10900: install missing gimpchoice.h.
+
+Argh how this could pass without anyone noticing?!
+---
+ libgimpbase/meson.build | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libgimpbase/meson.build b/libgimpbase/meson.build
+index a77d125f39d..a2c27016b10 100644
+--- a/libgimpbase/meson.build
++++ b/libgimpbase/meson.build
+@@ -84,6 +84,7 @@ libgimpbase_headers_introspectable = files(
+ 'gimpbaseenums.h',
+ 'gimpbasetypes.h',
+ 'gimpchecks.h',
++ 'gimpchoice.h',
+ 'gimpcpuaccel.h',
+ 'gimpenv.h',
+ 'gimplimits.h',
+--
+GitLab
+
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index 3ed1fc7cc9c740..45b0e47cdad3be 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -1,34 +1,40 @@
# Template file for 'gimp'
pkgname=gimp
-version=2.10.38
+version=2.99.18
revision=1
-build_style=gnu-configure
-configure_args="--disable-check-update --datadir=/usr/share --disable-python"
-hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
- libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
-makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
- ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
- libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
- libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
- poppler-glib-devel glib-networking libwebp-devel
- libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
-depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+build_style=meson
+build_helper="gir"
+configure_args="-Dcheck-update=no -Drevision=$revision -Denable-default-bin=enabled
+ $(vopt_bool gir g-ir-doc) $(vopt_bool gir can-crosscompile-gir)
+ -Dbug-report-url=https://github.com/void-linux/void-packages/issues/new/choose"
+hostmakedepends="pkg-config xdg-utils perl libxslt gjs LuaJIT desktop-file-utils
+ AppStream gi-docgen gettext gobject-introspection yelp-tools"
+makedepends="babl-devel gtk+3-devel gegl-devel libgexiv2-devel libgirepository-devel
+ libmypaint-devel mypaint-brushes1 librsvg-devel glib-networking appstream-glib-devel
+ libXmu-devel ghostscript-devel libmng-devel aalib-devel libXpm-devel libopenexr-devel
+ libwebp-devel libheif-devel poppler-glib-devel libwmf-devel libopenjpeg2-devel
+ libjxl-devel alsa-lib-devel cfitsio-devel python3-gobject-devel libgomp-devel
+ libunwind-devel lua51-lgi"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1 python3-gobject"
+checkdepends="xvfb-run dbus"
short_desc="GNU image manipulation program"
-conf_files="/etc/gimp/${version%%.*}.0/*"
+#conf_files="/etc/gimp/${version%%.*}.0/*"
+conf_files="/etc/gimp/${version%.*}/*"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-only"
homepage="https://www.gimp.org"
-changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
-distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
-checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+distfiles="https://download.gimp.org/gimp/v${version%.*}/gimp-${version}.tar.xz"
+checksum=8c1bb7a94ac0d4d0cde4d701d8b356387c2ecd87abbd35bbf7d222d40f6ddb6e
lib32disabled=yes
-no_generic_pkgconfig_link=yes
-pre_configure() {
- NOCONFIGURE=1 autoreconf -fi
- # don't allow configure to set DATADIRNAME=lib
- vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
+build_options="gir"
+build_options_default="gir"
+
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -Dheadless-tests=enabled"
+else
+ configure_args+=" -Dheadless-tests=disabled"
+fi
libgimp_package() {
short_desc+=" - runtime libraries"
@@ -38,13 +44,16 @@ libgimp_package() {
}
gimp-devel_package() {
- depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}"
+ depends="libgimp>=${version}_${revision} gegl-devel gtk+3-devel libgexiv2-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
- vmove usr/share/gtk-doc
- vmove usr/share/aclocal
+ vmove usr/share/doc
vmove "usr/lib/*.so"
+ if [ "$build_option_gir" ]; then
+ vmove usr/share/gir-1.0
+ vmove usr/share/vala
+ fi
}
}
From 931c746eb3a78bb38a77bb50090efdb98a90d316 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Tue, 11 Jun 2024 21:46:37 -0400
Subject: [PATCH 3/9] New package: gimp2-2.10.38
---
common/shlibs | 9 ++
srcpkgs/gimp2/INSTALL | 8 ++
srcpkgs/gimp2/patches/fix-cross.patch | 18 +++
srcpkgs/gimp2/patches/fix-segfault.patch | 169 +++++++++++++++++++++++
srcpkgs/gimp2/patches/gcc14.patch | 63 +++++++++
srcpkgs/gimp2/template | 57 ++++++++
srcpkgs/gimp2/update | 2 +
7 files changed, 326 insertions(+)
create mode 100644 srcpkgs/gimp2/INSTALL
create mode 100644 srcpkgs/gimp2/patches/fix-cross.patch
create mode 100644 srcpkgs/gimp2/patches/fix-segfault.patch
create mode 100644 srcpkgs/gimp2/patches/gcc14.patch
create mode 100644 srcpkgs/gimp2/template
create mode 100644 srcpkgs/gimp2/update
diff --git a/common/shlibs b/common/shlibs
index 006a36cd77a45e..88e2952d599943 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -549,6 +549,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
+libgimp-2.0.so.0 libgimp2-2.10.38_1
+libgimpwidgets-2.0.so.0 libgimp2-2.10.38_1
+libgimpui-2.0.so.0 libgimp2-2.10.38_1
+libgimpbase-2.0.so.0 libgimp2-2.10.38_1
+libgimpthumb-2.0.so.0 libgimp2-2.10.38_1
+libgimpconfig-2.0.so.0 libgimp2-2.10.38_1
+libgimpmath-2.0.so.0 libgimp2-2.10.38_1
+libgimpcolor-2.0.so.0 libgimp2-2.10.38_1
+libgimpmodule-2.0.so.0 libgimp2-2.10.38_1
libgimp-3.0.so.0 libgimp-2.99.18_1
libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
libgimpui-3.0.so.0 libgimp-2.99.18_1
diff --git a/srcpkgs/gimp2/INSTALL b/srcpkgs/gimp2/INSTALL
new file mode 100644
index 00000000000000..87064d64438f00
--- /dev/null
+++ b/srcpkgs/gimp2/INSTALL
@@ -0,0 +1,8 @@
+# workaround for https://github.com/void-linux/xbps/issues/14
+case "${ACTION}" in
+pre)
+ if [ "$UPDATE" = "yes" ]; then
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ fi
+ ;;
+esac
diff --git a/srcpkgs/gimp2/patches/fix-cross.patch b/srcpkgs/gimp2/patches/fix-cross.patch
new file mode 100644
index 00000000000000..0ffcf9b650b987
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-cross.patch
@@ -0,0 +1,18 @@
+--- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
++++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
+@@ -14,6 +14,7 @@ else
+ libm = -lm
+ endif
+
++libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
+ libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
+ libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
+ libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
+@@ -85,6 +86,7 @@ script_fu_SOURCES = \
+ scheme-wrapper.h
+
+ LDADD = \
++ $(libgimpmodule) \
+ $(libgimpui) \
+ $(libgimpwidgets) \
+ $(libgimpconfig) \
diff --git a/srcpkgs/gimp2/patches/fix-segfault.patch b/srcpkgs/gimp2/patches/fix-segfault.patch
new file mode 100644
index 00000000000000..5f1a6a6d3fe977
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-segfault.patch
@@ -0,0 +1,169 @@
+diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
+index 064f2c4..b17d82f 100644
+--- a/app/dialogs/dialogs.c
++++ b/app/dialogs/dialogs.c
+@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
+ menu_factory);
+ gimp_dialog_factory_set_singleton (factory);
+
+- for (i = 0; i < G_N_ELEMENTS (entries); i++)
++ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
++ char *name, *blurb;
++ name = entries[i].name ? gettext(entries[i].name) : NULL;
++ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
++
+ gimp_dialog_factory_register_entry (factory,
+ entries[i].identifier,
+- gettext (entries[i].name),
+- gettext (entries[i].blurb),
++ name,
++ blurb,
+ entries[i].icon_name,
+ entries[i].help_id,
+ entries[i].new_func,
+@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
+ entries[i].hideable,
+ entries[i].image_window,
+ entries[i].dockable);
++ }
+
+ global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
+ }
+diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
+index 04bd1b6..12eff51 100644
+--- a/app/widgets/gimpactiongroup.c
++++ b/app/widgets/gimpactiongroup.c
+@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_action_impl_new (entries[i].name, label, tooltip,
+@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_toggle_action_new (entries[i].name, label, tooltip,
+@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_radio_action_new (entries[i].name, label, tooltip,
+@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpEnumAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_enum_action_new (entries[i].name, label, tooltip,
+@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp2/patches/gcc14.patch b/srcpkgs/gimp2/patches/gcc14.patch
new file mode 100644
index 00000000000000..ceae92fa154c82
--- /dev/null
+++ b/srcpkgs/gimp2/patches/gcc14.patch
@@ -0,0 +1,63 @@
+From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Fri, 13 Jan 2023 13:29:07 +0100
+Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
+
+Do not call the undeclared exit function. Implicit function
+declarations are likely not going to be supported by future compilers
+by default, changing the outcome of this configure probe with
+such compilers.
+---
+ configure.ac | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 03047899841..b8718955471 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+ ]])],
+ [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
+diff --git a/configure b/configure
+index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
+--- a/configure
++++ b/configure
+@@ -28898,17 +28898,17 @@ else $as_nop
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+
+ _ACEOF
diff --git a/srcpkgs/gimp2/template b/srcpkgs/gimp2/template
new file mode 100644
index 00000000000000..f3cf73ddf75ff3
--- /dev/null
+++ b/srcpkgs/gimp2/template
@@ -0,0 +1,57 @@
+# Template file for 'gimp2'
+pkgname=gimp2
+version=2.10.38
+revision=1
+build_style=gnu-configure
+configure_args="--disable-check-update --datadir=/usr/share --disable-python
+ --disable-default-binary"
+hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
+ libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
+makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
+ ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
+ libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
+ libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
+ poppler-glib-devel glib-networking libwebp-devel
+ libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+short_desc="GNU image manipulation program (version 2.x)"
+conf_files="/etc/gimp/${version%%.*}.0/*"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="GPL-3.0-only"
+homepage="https://www.gimp.org"
+changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
+distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
+checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+lib32disabled=yes
+no_generic_pkgconfig_link=yes
+
+pre_configure() {
+ NOCONFIGURE=1 autoreconf -fi
+ # don't allow configure to set DATADIRNAME=lib
+ vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
+}
+
+post_install() {
+ vsed -i -e "s/^Name.*$/& ${version%.*}/" -e "s/^Icon.*$/&-${version%.*}/" "${DESTDIR}/usr/share/applications/gimp.desktop"
+ mv "${DESTDIR}/usr/share/applications/gimp.desktop" "${DESTDIR}/usr/share/applications/gimp-${version%.*}.desktop"
+ find "${DESTDIR}/usr/share/icons/hicolor" -name gimp.png -execdir mv {} "gimp-${version%.*}.png" \;
+}
+
+libgimp2_package() {
+ short_desc+=" - runtime libraries"
+ pkg_install() {
+ vmove "usr/lib/*.so.*"
+ }
+}
+
+gimp2-devel_package() {
+ depends="gegl-devel gtk+-devel lcms2-devel libgimp2>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/pkgconfig
+ vmove usr/share/gtk-doc
+ vmove usr/share/aclocal
+ vmove "usr/lib/*.so"
+ }
+}
diff --git a/srcpkgs/gimp2/update b/srcpkgs/gimp2/update
new file mode 100644
index 00000000000000..0e2a52581a8290
--- /dev/null
+++ b/srcpkgs/gimp2/update
@@ -0,0 +1,2 @@
+pkgname=gimp
+ignore="*.99.*"
From 266adcd21c792540963fde559dfa648fd00d3795 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:08 -0400
Subject: [PATCH 4/9] libjxl: rebuild against libgimp2
gimp 3 supports jxl now, and this would cause a dependency loop
---
srcpkgs/libjxl/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template
index 88403273d483bf..bbe8c1053a8ec0 100644
--- a/srcpkgs/libjxl/template
+++ b/srcpkgs/libjxl/template
@@ -1,7 +1,7 @@
# Template file for 'libjxl'
pkgname=libjxl
version=0.10.2
-revision=1
+revision=2
_testdata_hash=ff8d743aaba05b3014f17e5475e576242fa979fc
build_style=cmake
configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
@@ -9,7 +9,7 @@ configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
-DJPEGXL_ENABLE_SKCMS=OFF"
hostmakedepends="tar pkg-config asciidoc"
makedepends="brotli-devel highway libpng-devel giflib-devel libjpeg-turbo-devel
- libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp-devel lcms2-devel"
+ libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp2-devel lcms2-devel"
checkdepends="gtest-devel xdg-utils"
short_desc="JPEG XL image format reference implementation"
maintainer="Joshua Krämer <joshua@kraemer.link>"
From 953e5342d5a926a5d13a47dd3cadb8e4c47f003b Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:09 -0400
Subject: [PATCH 5/9] gmic: rebuild against libgimp2
---
srcpkgs/gmic/template | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/srcpkgs/gmic/template b/srcpkgs/gmic/template
index fa37651bb6deea..a691c6231bb70e 100644
--- a/srcpkgs/gmic/template
+++ b/srcpkgs/gmic/template
@@ -1,7 +1,7 @@
# Template file for 'gmic'
pkgname=gmic
version=3.1.6
-revision=5
+revision=6
_zart_hash=34ebf6cce0bafb98abe57cec83c4a02cd1abeca0
create_wrksrc=yes
build_wrksrc="src"
@@ -9,10 +9,10 @@ build_style=gnu-makefile
build_helper=qmake
make_build_args="NOSTRIP=yes"
make_use_env=yes
-hostmakedepends="pkg-config gimp qt5-host-tools qt5-qmake"
+hostmakedepends="pkg-config gimp2 qt5-host-tools qt5-qmake"
makedepends="fftw-devel imath-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel lcms2-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
- gtk+-devel gimp-devel qt5-devel"
+ gtk+-devel gimp2-devel qt5-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="CECILL-2.1, CECILL-C"
@@ -33,8 +33,8 @@ post_install() {
}
gmic-gimp_package() {
- short_desc+=" - GIMP plugin"
- depends="gimp ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/gimp
}
From d228714f13238b64cbf164f53174d118a43b9376 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:10 -0400
Subject: [PATCH 6/9] nufraw: rebuild against libgimp2
---
srcpkgs/nufraw/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/nufraw/template b/srcpkgs/nufraw/template
index 551f263df96d38..9e7f8496cf722f 100644
--- a/srcpkgs/nufraw/template
+++ b/srcpkgs/nufraw/template
@@ -1,7 +1,7 @@
# Template file for 'nufraw'
pkgname=nufraw
version=0.43.3
-revision=1
+revision=2
_ver="${version%.*}-${version##*.}"
build_style=gnu-configure
configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
@@ -9,7 +9,7 @@ configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
hostmakedepends="pkg-config automake libtool glib-devel"
# libgexiv2-devel is only here to fix build order, remove on next template
# change
-makedepends="exiv2-devel gimp-devel glib-devel gtkimageview-devel lcms2-devel
+makedepends="exiv2-devel gimp2-devel glib-devel gtkimageview-devel lcms2-devel
lensfun-devel jasper-devel libgexiv2-devel"
depends="desktop-file-utils"
short_desc="Utility to read and manipulate raw images from digital cameras"
@@ -36,8 +36,8 @@ pre_build() {
}
nufraw-gimp_package() {
- depends="${sourcepkg}>=${version}_${revision}"
- short_desc+=" - gimp plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
pkg_install() {
vmove usr/lib/gimp
}
From a8ff6d7e9c99a2f803ded577d2d9391493c8022f Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 7/9] xsane: rebuild against libgimp2
---
srcpkgs/xsane/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 7dde32af2b674c..67c53e94489fab 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -1,9 +1,9 @@
# Template file for 'xsane'
pkgname=xsane
version=0.999
-revision=5
+revision=6
hostmakedepends="pkg-config sane-devel gettext"
-makedepends="gtk+-devel lcms-devel sane-devel gimp-devel"
+makedepends="gtk+-devel lcms-devel sane-devel gimp2-devel"
depends="sane"
short_desc="GTK-based X11 frontend for SANE"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -36,8 +36,8 @@ do_install() {
}
xsane-gimp_package() {
- short_desc+=" - plugin for GIMP"
- depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - plugin for GIMP 2"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vbin src/xsane-gimp
vmkdir usr/lib/gimp/2.0/plug-ins
From fbc51163fba0298c5c3b52a417b540af7cec5e57 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 8/9] gimp-lqr-plugin: rebuild against libgimp2
---
srcpkgs/gimp-lqr-plugin/template | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gimp-lqr-plugin/template b/srcpkgs/gimp-lqr-plugin/template
index 7878f6cb795d24..33a395c67a8583 100644
--- a/srcpkgs/gimp-lqr-plugin/template
+++ b/srcpkgs/gimp-lqr-plugin/template
@@ -1,11 +1,12 @@
# Template file for 'gimp-lqr-plugin'
pkgname=gimp-lqr-plugin
version=0.7.2
-revision=2
+revision=3
build_style=gnu-configure
hostmakedepends="automake intltool pkg-config"
-makedepends="gimp-devel glib-devel gettext-devel liblqr-devel"
-short_desc="Gimp plugins for image resizing through seam carving"
+makedepends="gimp2-devel glib-devel gettext-devel liblqr-devel"
+depends="gimp2"
+short_desc="GIMP 2 plugins for image resizing through seam carving"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://liquidrescale.wikidot.com/"
From d4332774d91fc63e5907e8eadad4ba74615843eb Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 03:22:14 -0400
Subject: [PATCH 9/9] resynthesizer: update to 2.0.3+2.
WIP gimp 3 port
---
srcpkgs/resynthesizer/template | 29 +++++++++--------------------
1 file changed, 9 insertions(+), 20 deletions(-)
diff --git a/srcpkgs/resynthesizer/template b/srcpkgs/resynthesizer/template
index a58b0eec995854..2b56f8f406b456 100644
--- a/srcpkgs/resynthesizer/template
+++ b/srcpkgs/resynthesizer/template
@@ -1,26 +1,15 @@
# Template file for 'resynthesizer'
pkgname=resynthesizer
-version=2.0.3+1
+version=2.0.3+2
revision=1
-_commit=701e890d1d456e215e05daa7b4a88f5d9c6c03b3
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
+_commit=dee67110c51cbc69c28435ac7485766c3eb30a94
+build_style=meson
+hostmakedepends="pkg-config"
makedepends="gimp-devel glib-devel gettext-devel"
-short_desc="Suite of gimp plugins for texture healing and synthesis"
+depends="gimp"
+short_desc="Suite of GIMP plugins for texture healing and synthesis"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
-# FIXME: when gimp 3 is available, switch back to bootchk upstream
-#homepage="https://github.com/bootchk/resynthesizer"
-#distfiles="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${version}.tar.gz"
-homepage="https://github.com/itr-tert/gimp-resynthesizer-scm"
-distfiles="https://github.com/itr-tert/gimp-resynthesizer-scm/archive/${_commit}.tar.gz"
-checksum=298286386466fbd6d2da06f8a920c6e6e313db7ca0a094a36a355978a64cefc0
-
-if [ "$CROSS_BUILD" ];then
- hostmakedepends+=" glib-devel gettext-devel"
- AUTOGEN_CONFIGURE_ARGS+=" --host=${XBPS_MACHINE%-musl} --build=${XBPS_CROSS_TRIPLET}"
-fi
-
-pre_configure() {
- ./autogen.sh ${AUTOGEN_CONFIGURE_ARGS}
-}
+homepage="https://github.com/bootchk/resynthesizer"
+distfiles="https://github.com/bootchk/resynthesizer/archive/${_commit}.tar.gz"
+checksum=a9ae689f5c10e284b0b8cab03baa05caab029fae2250bcdcc7e1d3ec6f8c367d
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PR PATCH] [Updated] GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
` (3 preceding siblings ...)
2024-06-12 2:23 ` classabbyamp
@ 2024-06-12 2:28 ` classabbyamp
2024-06-12 5:21 ` classabbyamp
` (11 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2024-06-12 2:28 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
There is an updated pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages gimp3
https://github.com/void-linux/void-packages/pull/49890
GIMP 3
WIP until at minimum the full GIMP 3 release, expected in about a month: https://gitlab.gnome.org/GNOME/gimp/-/issues/10373
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
#### Plugins
- [ ] nufraw - not (yet) compatible
- [x] resynthesizer - compatible on in-dev branch
- [ ] gmic - not (yet) compatible
- [ ] xsane
- [ ] gimp-lqr-plugin - not (yet) compatible)
- [x] libjxl - disable because gimp supports it directly now
A patch file from https://github.com/void-linux/void-packages/pull/49890.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gimp3-49890.patch --]
[-- Type: text/x-diff, Size: 42602 bytes --]
From 61ecd17eb244212706713ff2de6e6c321c255cd8 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:35 -0400
Subject: [PATCH 1/9] gegl: update to 0.4.48.
---
srcpkgs/gegl/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gegl/template b/srcpkgs/gegl/template
index 5d4b070cd703ee..f395fe359f2dd1 100644
--- a/srcpkgs/gegl/template
+++ b/srcpkgs/gegl/template
@@ -1,7 +1,7 @@
# Template file for 'gegl'
pkgname=gegl
-version=0.4.46
-revision=2
+version=0.4.48
+revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dintrospection=true -Dvapigen=enabled
@@ -18,7 +18,7 @@ license="GPL-3.0-only, LGPL-3.0-only"
homepage="https://gegl.org/"
changelog="https://gitlab.gnome.org/GNOME/gegl/-/raw/master/docs/NEWS.adoc"
distfiles="https://download.gimp.org/pub/gegl/${version%.*}/gegl-${version}.tar.xz"
-checksum=d0b3b2481bc8774c5f3d0a487611910166d18eef823a859fb91e781ab7b1e892
+checksum=418c26d94be8805d7d98f6de0c6825ca26bd74fcacb6c188da47533d9ee28247
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From 391a53dad07ec00ee7bf3054f711be322031260c Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:29 -0400
Subject: [PATCH 2/9] gimp: update to 2.99.18.
---
common/shlibs | 18 +-
srcpkgs/gimp-python | 1 -
srcpkgs/gimp/INSTALL | 2 +-
srcpkgs/gimp/INSTALL.msg | 2 +
srcpkgs/gimp/patches/fix-cross.patch | 18 --
srcpkgs/gimp/patches/fix-segfault.patch | 169 ------------------
srcpkgs/gimp/patches/gcc14.patch | 63 -------
.../gimp/patches/install-gimpchoice-h.patch | 25 +++
srcpkgs/gimp/template | 59 +++---
9 files changed, 71 insertions(+), 286 deletions(-)
delete mode 120000 srcpkgs/gimp-python
create mode 100644 srcpkgs/gimp/INSTALL.msg
delete mode 100644 srcpkgs/gimp/patches/fix-cross.patch
delete mode 100644 srcpkgs/gimp/patches/fix-segfault.patch
delete mode 100644 srcpkgs/gimp/patches/gcc14.patch
create mode 100644 srcpkgs/gimp/patches/install-gimpchoice-h.patch
diff --git a/common/shlibs b/common/shlibs
index b6017a715ced19..006a36cd77a45e 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -549,15 +549,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
-libgimp-2.0.so.0 libgimp-2.10.0_1
-libgimpwidgets-2.0.so.0 libgimp-2.10.0_1
-libgimpui-2.0.so.0 libgimp-2.10.0_1
-libgimpbase-2.0.so.0 libgimp-2.10.0_1
-libgimpthumb-2.0.so.0 libgimp-2.10.0_1
-libgimpconfig-2.0.so.0 libgimp-2.10.0_1
-libgimpmath-2.0.so.0 libgimp-2.10.0_1
-libgimpcolor-2.0.so.0 libgimp-2.10.0_1
-libgimpmodule-2.0.so.0 libgimp-2.10.0_1
+libgimp-3.0.so.0 libgimp-2.99.18_1
+libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
+libgimpui-3.0.so.0 libgimp-2.99.18_1
+libgimpbase-3.0.so.0 libgimp-2.99.18_1
+libgimpthumb-3.0.so.0 libgimp-2.99.18_1
+libgimpconfig-3.0.so.0 libgimp-2.99.18_1
+libgimpmath-3.0.so.0 libgimp-2.99.18_1
+libgimpcolor-3.0.so.0 libgimp-2.99.18_1
+libgimpmodule-3.0.so.0 libgimp-2.99.18_1
libgmic.so.3 gmic-3.1.6_1
libcgmic.so.3 gmic-3.1.6_1
libexiv2.so.28 exiv2-0.28.1_1
diff --git a/srcpkgs/gimp-python b/srcpkgs/gimp-python
deleted file mode 120000
index 92344a4bb4a963..00000000000000
--- a/srcpkgs/gimp-python
+++ /dev/null
@@ -1 +0,0 @@
-gimp
\ No newline at end of file
diff --git a/srcpkgs/gimp/INSTALL b/srcpkgs/gimp/INSTALL
index 87064d64438f00..daeff6b33cec0f 100644
--- a/srcpkgs/gimp/INSTALL
+++ b/srcpkgs/gimp/INSTALL
@@ -2,7 +2,7 @@
case "${ACTION}" in
pre)
if [ "$UPDATE" = "yes" ]; then
- xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm -f
fi
;;
esac
diff --git a/srcpkgs/gimp/INSTALL.msg b/srcpkgs/gimp/INSTALL.msg
new file mode 100644
index 00000000000000..171c0ccb0890c9
--- /dev/null
+++ b/srcpkgs/gimp/INSTALL.msg
@@ -0,0 +1,2 @@
+GIMP 3 breaks compatibility with many plugins. If you wish to continue
+using GIMP 2.x, install gimp2.
diff --git a/srcpkgs/gimp/patches/fix-cross.patch b/srcpkgs/gimp/patches/fix-cross.patch
deleted file mode 100644
index 0ffcf9b650b987..00000000000000
--- a/srcpkgs/gimp/patches/fix-cross.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
-+++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
-@@ -14,6 +14,7 @@ else
- libm = -lm
- endif
-
-+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
- libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
- libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
- libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
-@@ -85,6 +86,7 @@ script_fu_SOURCES = \
- scheme-wrapper.h
-
- LDADD = \
-+ $(libgimpmodule) \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpconfig) \
diff --git a/srcpkgs/gimp/patches/fix-segfault.patch b/srcpkgs/gimp/patches/fix-segfault.patch
deleted file mode 100644
index 5f1a6a6d3fe977..00000000000000
--- a/srcpkgs/gimp/patches/fix-segfault.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
-index 064f2c4..b17d82f 100644
---- a/app/dialogs/dialogs.c
-+++ b/app/dialogs/dialogs.c
-@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
- menu_factory);
- gimp_dialog_factory_set_singleton (factory);
-
-- for (i = 0; i < G_N_ELEMENTS (entries); i++)
-+ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
-+ char *name, *blurb;
-+ name = entries[i].name ? gettext(entries[i].name) : NULL;
-+ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
-+
- gimp_dialog_factory_register_entry (factory,
- entries[i].identifier,
-- gettext (entries[i].name),
-- gettext (entries[i].blurb),
-+ name,
-+ blurb,
- entries[i].icon_name,
- entries[i].help_id,
- entries[i].new_func,
-@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
- entries[i].hideable,
- entries[i].image_window,
- entries[i].dockable);
-+ }
-
- global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
- }
-diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
-index 04bd1b6..12eff51 100644
---- a/app/widgets/gimpactiongroup.c
-+++ b/app/widgets/gimpactiongroup.c
-@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_action_impl_new (entries[i].name, label, tooltip,
-@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_toggle_action_new (entries[i].name, label, tooltip,
-@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_radio_action_new (entries[i].name, label, tooltip,
-@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpEnumAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_enum_action_new (entries[i].name, label, tooltip,
-@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp/patches/gcc14.patch b/srcpkgs/gimp/patches/gcc14.patch
deleted file mode 100644
index ceae92fa154c82..00000000000000
--- a/srcpkgs/gimp/patches/gcc14.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Fri, 13 Jan 2023 13:29:07 +0100
-Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
-
-Do not call the undeclared exit function. Implicit function
-declarations are likely not going to be supported by future compilers
-by default, changing the outcome of this configure probe with
-such compilers.
----
- configure.ac | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 03047899841..b8718955471 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
- ]])],
- [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
-diff --git a/configure b/configure
-index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
---- a/configure
-+++ b/configure
-@@ -28898,17 +28898,17 @@ else $as_nop
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
-
- _ACEOF
diff --git a/srcpkgs/gimp/patches/install-gimpchoice-h.patch b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
new file mode 100644
index 00000000000000..533b14d397f814
--- /dev/null
+++ b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
@@ -0,0 +1,25 @@
+From 11892f1d83ffc465346dab7e2e8c6e790f555a64 Mon Sep 17 00:00:00 2001
+From: Jehan <jehan@girinstud.io>
+Date: Wed, 21 Feb 2024 11:08:23 +0100
+Subject: [PATCH] Issue #10900: install missing gimpchoice.h.
+
+Argh how this could pass without anyone noticing?!
+---
+ libgimpbase/meson.build | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libgimpbase/meson.build b/libgimpbase/meson.build
+index a77d125f39d..a2c27016b10 100644
+--- a/libgimpbase/meson.build
++++ b/libgimpbase/meson.build
+@@ -84,6 +84,7 @@ libgimpbase_headers_introspectable = files(
+ 'gimpbaseenums.h',
+ 'gimpbasetypes.h',
+ 'gimpchecks.h',
++ 'gimpchoice.h',
+ 'gimpcpuaccel.h',
+ 'gimpenv.h',
+ 'gimplimits.h',
+--
+GitLab
+
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index 3ed1fc7cc9c740..45b0e47cdad3be 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -1,34 +1,40 @@
# Template file for 'gimp'
pkgname=gimp
-version=2.10.38
+version=2.99.18
revision=1
-build_style=gnu-configure
-configure_args="--disable-check-update --datadir=/usr/share --disable-python"
-hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
- libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
-makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
- ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
- libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
- libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
- poppler-glib-devel glib-networking libwebp-devel
- libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
-depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+build_style=meson
+build_helper="gir"
+configure_args="-Dcheck-update=no -Drevision=$revision -Denable-default-bin=enabled
+ $(vopt_bool gir g-ir-doc) $(vopt_bool gir can-crosscompile-gir)
+ -Dbug-report-url=https://github.com/void-linux/void-packages/issues/new/choose"
+hostmakedepends="pkg-config xdg-utils perl libxslt gjs LuaJIT desktop-file-utils
+ AppStream gi-docgen gettext gobject-introspection yelp-tools"
+makedepends="babl-devel gtk+3-devel gegl-devel libgexiv2-devel libgirepository-devel
+ libmypaint-devel mypaint-brushes1 librsvg-devel glib-networking appstream-glib-devel
+ libXmu-devel ghostscript-devel libmng-devel aalib-devel libXpm-devel libopenexr-devel
+ libwebp-devel libheif-devel poppler-glib-devel libwmf-devel libopenjpeg2-devel
+ libjxl-devel alsa-lib-devel cfitsio-devel python3-gobject-devel libgomp-devel
+ libunwind-devel lua51-lgi"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1 python3-gobject"
+checkdepends="xvfb-run dbus"
short_desc="GNU image manipulation program"
-conf_files="/etc/gimp/${version%%.*}.0/*"
+#conf_files="/etc/gimp/${version%%.*}.0/*"
+conf_files="/etc/gimp/${version%.*}/*"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-only"
homepage="https://www.gimp.org"
-changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
-distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
-checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+distfiles="https://download.gimp.org/gimp/v${version%.*}/gimp-${version}.tar.xz"
+checksum=8c1bb7a94ac0d4d0cde4d701d8b356387c2ecd87abbd35bbf7d222d40f6ddb6e
lib32disabled=yes
-no_generic_pkgconfig_link=yes
-pre_configure() {
- NOCONFIGURE=1 autoreconf -fi
- # don't allow configure to set DATADIRNAME=lib
- vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
+build_options="gir"
+build_options_default="gir"
+
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -Dheadless-tests=enabled"
+else
+ configure_args+=" -Dheadless-tests=disabled"
+fi
libgimp_package() {
short_desc+=" - runtime libraries"
@@ -38,13 +44,16 @@ libgimp_package() {
}
gimp-devel_package() {
- depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}"
+ depends="libgimp>=${version}_${revision} gegl-devel gtk+3-devel libgexiv2-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
- vmove usr/share/gtk-doc
- vmove usr/share/aclocal
+ vmove usr/share/doc
vmove "usr/lib/*.so"
+ if [ "$build_option_gir" ]; then
+ vmove usr/share/gir-1.0
+ vmove usr/share/vala
+ fi
}
}
From f72f648a7424c89ece05fbd3de64326fa07819dd Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Tue, 11 Jun 2024 21:46:37 -0400
Subject: [PATCH 3/9] New package: gimp2-2.10.38
---
common/shlibs | 9 ++
srcpkgs/gimp2-devel | 1 +
srcpkgs/gimp2/INSTALL | 8 ++
srcpkgs/gimp2/patches/fix-cross.patch | 18 +++
srcpkgs/gimp2/patches/fix-segfault.patch | 169 +++++++++++++++++++++++
srcpkgs/gimp2/patches/gcc14.patch | 63 +++++++++
srcpkgs/gimp2/template | 57 ++++++++
srcpkgs/gimp2/update | 2 +
srcpkgs/libgimp2 | 1 +
9 files changed, 328 insertions(+)
create mode 120000 srcpkgs/gimp2-devel
create mode 100644 srcpkgs/gimp2/INSTALL
create mode 100644 srcpkgs/gimp2/patches/fix-cross.patch
create mode 100644 srcpkgs/gimp2/patches/fix-segfault.patch
create mode 100644 srcpkgs/gimp2/patches/gcc14.patch
create mode 100644 srcpkgs/gimp2/template
create mode 100644 srcpkgs/gimp2/update
create mode 120000 srcpkgs/libgimp2
diff --git a/common/shlibs b/common/shlibs
index 006a36cd77a45e..88e2952d599943 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -549,6 +549,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
+libgimp-2.0.so.0 libgimp2-2.10.38_1
+libgimpwidgets-2.0.so.0 libgimp2-2.10.38_1
+libgimpui-2.0.so.0 libgimp2-2.10.38_1
+libgimpbase-2.0.so.0 libgimp2-2.10.38_1
+libgimpthumb-2.0.so.0 libgimp2-2.10.38_1
+libgimpconfig-2.0.so.0 libgimp2-2.10.38_1
+libgimpmath-2.0.so.0 libgimp2-2.10.38_1
+libgimpcolor-2.0.so.0 libgimp2-2.10.38_1
+libgimpmodule-2.0.so.0 libgimp2-2.10.38_1
libgimp-3.0.so.0 libgimp-2.99.18_1
libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
libgimpui-3.0.so.0 libgimp-2.99.18_1
diff --git a/srcpkgs/gimp2-devel b/srcpkgs/gimp2-devel
new file mode 120000
index 00000000000000..cae4fa79d617de
--- /dev/null
+++ b/srcpkgs/gimp2-devel
@@ -0,0 +1 @@
+gimp2
\ No newline at end of file
diff --git a/srcpkgs/gimp2/INSTALL b/srcpkgs/gimp2/INSTALL
new file mode 100644
index 00000000000000..87064d64438f00
--- /dev/null
+++ b/srcpkgs/gimp2/INSTALL
@@ -0,0 +1,8 @@
+# workaround for https://github.com/void-linux/xbps/issues/14
+case "${ACTION}" in
+pre)
+ if [ "$UPDATE" = "yes" ]; then
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ fi
+ ;;
+esac
diff --git a/srcpkgs/gimp2/patches/fix-cross.patch b/srcpkgs/gimp2/patches/fix-cross.patch
new file mode 100644
index 00000000000000..0ffcf9b650b987
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-cross.patch
@@ -0,0 +1,18 @@
+--- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
++++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
+@@ -14,6 +14,7 @@ else
+ libm = -lm
+ endif
+
++libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
+ libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
+ libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
+ libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
+@@ -85,6 +86,7 @@ script_fu_SOURCES = \
+ scheme-wrapper.h
+
+ LDADD = \
++ $(libgimpmodule) \
+ $(libgimpui) \
+ $(libgimpwidgets) \
+ $(libgimpconfig) \
diff --git a/srcpkgs/gimp2/patches/fix-segfault.patch b/srcpkgs/gimp2/patches/fix-segfault.patch
new file mode 100644
index 00000000000000..5f1a6a6d3fe977
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-segfault.patch
@@ -0,0 +1,169 @@
+diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
+index 064f2c4..b17d82f 100644
+--- a/app/dialogs/dialogs.c
++++ b/app/dialogs/dialogs.c
+@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
+ menu_factory);
+ gimp_dialog_factory_set_singleton (factory);
+
+- for (i = 0; i < G_N_ELEMENTS (entries); i++)
++ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
++ char *name, *blurb;
++ name = entries[i].name ? gettext(entries[i].name) : NULL;
++ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
++
+ gimp_dialog_factory_register_entry (factory,
+ entries[i].identifier,
+- gettext (entries[i].name),
+- gettext (entries[i].blurb),
++ name,
++ blurb,
+ entries[i].icon_name,
+ entries[i].help_id,
+ entries[i].new_func,
+@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
+ entries[i].hideable,
+ entries[i].image_window,
+ entries[i].dockable);
++ }
+
+ global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
+ }
+diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
+index 04bd1b6..12eff51 100644
+--- a/app/widgets/gimpactiongroup.c
++++ b/app/widgets/gimpactiongroup.c
+@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_action_impl_new (entries[i].name, label, tooltip,
+@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_toggle_action_new (entries[i].name, label, tooltip,
+@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_radio_action_new (entries[i].name, label, tooltip,
+@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpEnumAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_enum_action_new (entries[i].name, label, tooltip,
+@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp2/patches/gcc14.patch b/srcpkgs/gimp2/patches/gcc14.patch
new file mode 100644
index 00000000000000..ceae92fa154c82
--- /dev/null
+++ b/srcpkgs/gimp2/patches/gcc14.patch
@@ -0,0 +1,63 @@
+From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Fri, 13 Jan 2023 13:29:07 +0100
+Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
+
+Do not call the undeclared exit function. Implicit function
+declarations are likely not going to be supported by future compilers
+by default, changing the outcome of this configure probe with
+such compilers.
+---
+ configure.ac | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 03047899841..b8718955471 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+ ]])],
+ [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
+diff --git a/configure b/configure
+index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
+--- a/configure
++++ b/configure
+@@ -28898,17 +28898,17 @@ else $as_nop
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+
+ _ACEOF
diff --git a/srcpkgs/gimp2/template b/srcpkgs/gimp2/template
new file mode 100644
index 00000000000000..f3cf73ddf75ff3
--- /dev/null
+++ b/srcpkgs/gimp2/template
@@ -0,0 +1,57 @@
+# Template file for 'gimp2'
+pkgname=gimp2
+version=2.10.38
+revision=1
+build_style=gnu-configure
+configure_args="--disable-check-update --datadir=/usr/share --disable-python
+ --disable-default-binary"
+hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
+ libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
+makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
+ ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
+ libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
+ libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
+ poppler-glib-devel glib-networking libwebp-devel
+ libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+short_desc="GNU image manipulation program (version 2.x)"
+conf_files="/etc/gimp/${version%%.*}.0/*"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="GPL-3.0-only"
+homepage="https://www.gimp.org"
+changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
+distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
+checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+lib32disabled=yes
+no_generic_pkgconfig_link=yes
+
+pre_configure() {
+ NOCONFIGURE=1 autoreconf -fi
+ # don't allow configure to set DATADIRNAME=lib
+ vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
+}
+
+post_install() {
+ vsed -i -e "s/^Name.*$/& ${version%.*}/" -e "s/^Icon.*$/&-${version%.*}/" "${DESTDIR}/usr/share/applications/gimp.desktop"
+ mv "${DESTDIR}/usr/share/applications/gimp.desktop" "${DESTDIR}/usr/share/applications/gimp-${version%.*}.desktop"
+ find "${DESTDIR}/usr/share/icons/hicolor" -name gimp.png -execdir mv {} "gimp-${version%.*}.png" \;
+}
+
+libgimp2_package() {
+ short_desc+=" - runtime libraries"
+ pkg_install() {
+ vmove "usr/lib/*.so.*"
+ }
+}
+
+gimp2-devel_package() {
+ depends="gegl-devel gtk+-devel lcms2-devel libgimp2>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/pkgconfig
+ vmove usr/share/gtk-doc
+ vmove usr/share/aclocal
+ vmove "usr/lib/*.so"
+ }
+}
diff --git a/srcpkgs/gimp2/update b/srcpkgs/gimp2/update
new file mode 100644
index 00000000000000..0e2a52581a8290
--- /dev/null
+++ b/srcpkgs/gimp2/update
@@ -0,0 +1,2 @@
+pkgname=gimp
+ignore="*.99.*"
diff --git a/srcpkgs/libgimp2 b/srcpkgs/libgimp2
new file mode 120000
index 00000000000000..cae4fa79d617de
--- /dev/null
+++ b/srcpkgs/libgimp2
@@ -0,0 +1 @@
+gimp2
\ No newline at end of file
From ac9de44b85237e31863062d3c1b36dcec83869a4 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:08 -0400
Subject: [PATCH 4/9] libjxl: rebuild against libgimp2
gimp 3 supports jxl now, and this would cause a dependency loop
---
srcpkgs/libjxl/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template
index 88403273d483bf..bbe8c1053a8ec0 100644
--- a/srcpkgs/libjxl/template
+++ b/srcpkgs/libjxl/template
@@ -1,7 +1,7 @@
# Template file for 'libjxl'
pkgname=libjxl
version=0.10.2
-revision=1
+revision=2
_testdata_hash=ff8d743aaba05b3014f17e5475e576242fa979fc
build_style=cmake
configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
@@ -9,7 +9,7 @@ configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
-DJPEGXL_ENABLE_SKCMS=OFF"
hostmakedepends="tar pkg-config asciidoc"
makedepends="brotli-devel highway libpng-devel giflib-devel libjpeg-turbo-devel
- libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp-devel lcms2-devel"
+ libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp2-devel lcms2-devel"
checkdepends="gtest-devel xdg-utils"
short_desc="JPEG XL image format reference implementation"
maintainer="Joshua Krämer <joshua@kraemer.link>"
From fc922b49e4c1f8d92d50782bbf641dae58948856 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:09 -0400
Subject: [PATCH 5/9] gmic: rebuild against libgimp2
---
srcpkgs/gmic/template | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/srcpkgs/gmic/template b/srcpkgs/gmic/template
index fa37651bb6deea..a691c6231bb70e 100644
--- a/srcpkgs/gmic/template
+++ b/srcpkgs/gmic/template
@@ -1,7 +1,7 @@
# Template file for 'gmic'
pkgname=gmic
version=3.1.6
-revision=5
+revision=6
_zart_hash=34ebf6cce0bafb98abe57cec83c4a02cd1abeca0
create_wrksrc=yes
build_wrksrc="src"
@@ -9,10 +9,10 @@ build_style=gnu-makefile
build_helper=qmake
make_build_args="NOSTRIP=yes"
make_use_env=yes
-hostmakedepends="pkg-config gimp qt5-host-tools qt5-qmake"
+hostmakedepends="pkg-config gimp2 qt5-host-tools qt5-qmake"
makedepends="fftw-devel imath-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel lcms2-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
- gtk+-devel gimp-devel qt5-devel"
+ gtk+-devel gimp2-devel qt5-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="CECILL-2.1, CECILL-C"
@@ -33,8 +33,8 @@ post_install() {
}
gmic-gimp_package() {
- short_desc+=" - GIMP plugin"
- depends="gimp ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/gimp
}
From 242ab4f57120f5eae938fb0fc5ea40cedcaab97b Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:10 -0400
Subject: [PATCH 6/9] nufraw: rebuild against libgimp2
---
srcpkgs/nufraw/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/nufraw/template b/srcpkgs/nufraw/template
index 551f263df96d38..9e7f8496cf722f 100644
--- a/srcpkgs/nufraw/template
+++ b/srcpkgs/nufraw/template
@@ -1,7 +1,7 @@
# Template file for 'nufraw'
pkgname=nufraw
version=0.43.3
-revision=1
+revision=2
_ver="${version%.*}-${version##*.}"
build_style=gnu-configure
configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
@@ -9,7 +9,7 @@ configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
hostmakedepends="pkg-config automake libtool glib-devel"
# libgexiv2-devel is only here to fix build order, remove on next template
# change
-makedepends="exiv2-devel gimp-devel glib-devel gtkimageview-devel lcms2-devel
+makedepends="exiv2-devel gimp2-devel glib-devel gtkimageview-devel lcms2-devel
lensfun-devel jasper-devel libgexiv2-devel"
depends="desktop-file-utils"
short_desc="Utility to read and manipulate raw images from digital cameras"
@@ -36,8 +36,8 @@ pre_build() {
}
nufraw-gimp_package() {
- depends="${sourcepkg}>=${version}_${revision}"
- short_desc+=" - gimp plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
pkg_install() {
vmove usr/lib/gimp
}
From 67a9bfe187f01791e63af27184fbfaedc4f2b3c0 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 7/9] xsane: rebuild against libgimp2
---
srcpkgs/xsane/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 7dde32af2b674c..67c53e94489fab 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -1,9 +1,9 @@
# Template file for 'xsane'
pkgname=xsane
version=0.999
-revision=5
+revision=6
hostmakedepends="pkg-config sane-devel gettext"
-makedepends="gtk+-devel lcms-devel sane-devel gimp-devel"
+makedepends="gtk+-devel lcms-devel sane-devel gimp2-devel"
depends="sane"
short_desc="GTK-based X11 frontend for SANE"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -36,8 +36,8 @@ do_install() {
}
xsane-gimp_package() {
- short_desc+=" - plugin for GIMP"
- depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - plugin for GIMP 2"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vbin src/xsane-gimp
vmkdir usr/lib/gimp/2.0/plug-ins
From bdd274802a20a4fdcf2fe8ad32dbd1e5292050ba Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 8/9] gimp-lqr-plugin: rebuild against libgimp2
---
srcpkgs/gimp-lqr-plugin/template | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gimp-lqr-plugin/template b/srcpkgs/gimp-lqr-plugin/template
index 7878f6cb795d24..33a395c67a8583 100644
--- a/srcpkgs/gimp-lqr-plugin/template
+++ b/srcpkgs/gimp-lqr-plugin/template
@@ -1,11 +1,12 @@
# Template file for 'gimp-lqr-plugin'
pkgname=gimp-lqr-plugin
version=0.7.2
-revision=2
+revision=3
build_style=gnu-configure
hostmakedepends="automake intltool pkg-config"
-makedepends="gimp-devel glib-devel gettext-devel liblqr-devel"
-short_desc="Gimp plugins for image resizing through seam carving"
+makedepends="gimp2-devel glib-devel gettext-devel liblqr-devel"
+depends="gimp2"
+short_desc="GIMP 2 plugins for image resizing through seam carving"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://liquidrescale.wikidot.com/"
From 04fb01781cd83eaac309b14a2ae79c41a328a3ef Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 03:22:14 -0400
Subject: [PATCH 9/9] resynthesizer: update to 2.0.3+2.
WIP gimp 3 port
---
srcpkgs/resynthesizer/template | 29 +++++++++--------------------
1 file changed, 9 insertions(+), 20 deletions(-)
diff --git a/srcpkgs/resynthesizer/template b/srcpkgs/resynthesizer/template
index a58b0eec995854..2b56f8f406b456 100644
--- a/srcpkgs/resynthesizer/template
+++ b/srcpkgs/resynthesizer/template
@@ -1,26 +1,15 @@
# Template file for 'resynthesizer'
pkgname=resynthesizer
-version=2.0.3+1
+version=2.0.3+2
revision=1
-_commit=701e890d1d456e215e05daa7b4a88f5d9c6c03b3
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
+_commit=dee67110c51cbc69c28435ac7485766c3eb30a94
+build_style=meson
+hostmakedepends="pkg-config"
makedepends="gimp-devel glib-devel gettext-devel"
-short_desc="Suite of gimp plugins for texture healing and synthesis"
+depends="gimp"
+short_desc="Suite of GIMP plugins for texture healing and synthesis"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
-# FIXME: when gimp 3 is available, switch back to bootchk upstream
-#homepage="https://github.com/bootchk/resynthesizer"
-#distfiles="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${version}.tar.gz"
-homepage="https://github.com/itr-tert/gimp-resynthesizer-scm"
-distfiles="https://github.com/itr-tert/gimp-resynthesizer-scm/archive/${_commit}.tar.gz"
-checksum=298286386466fbd6d2da06f8a920c6e6e313db7ca0a094a36a355978a64cefc0
-
-if [ "$CROSS_BUILD" ];then
- hostmakedepends+=" glib-devel gettext-devel"
- AUTOGEN_CONFIGURE_ARGS+=" --host=${XBPS_MACHINE%-musl} --build=${XBPS_CROSS_TRIPLET}"
-fi
-
-pre_configure() {
- ./autogen.sh ${AUTOGEN_CONFIGURE_ARGS}
-}
+homepage="https://github.com/bootchk/resynthesizer"
+distfiles="https://github.com/bootchk/resynthesizer/archive/${_commit}.tar.gz"
+checksum=a9ae689f5c10e284b0b8cab03baa05caab029fae2250bcdcc7e1d3ec6f8c367d
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PR PATCH] [Updated] GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
` (4 preceding siblings ...)
2024-06-12 2:28 ` classabbyamp
@ 2024-06-12 5:21 ` classabbyamp
2024-06-12 6:50 ` classabbyamp
` (10 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2024-06-12 5:21 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
There is an updated pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages gimp3
https://github.com/void-linux/void-packages/pull/49890
GIMP 3
WIP until at minimum the full GIMP 3 release, expected in about a month: https://gitlab.gnome.org/GNOME/gimp/-/issues/10373
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
#### Plugins
- [ ] nufraw - not (yet) compatible
- [x] resynthesizer - compatible on in-dev branch
- [ ] gmic - not (yet) compatible
- [ ] xsane
- [ ] gimp-lqr-plugin - not (yet) compatible)
- [x] libjxl - disable because gimp supports it directly now
A patch file from https://github.com/void-linux/void-packages/pull/49890.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gimp3-49890.patch --]
[-- Type: text/x-diff, Size: 43209 bytes --]
From 61ecd17eb244212706713ff2de6e6c321c255cd8 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:35 -0400
Subject: [PATCH 1/9] gegl: update to 0.4.48.
---
srcpkgs/gegl/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gegl/template b/srcpkgs/gegl/template
index 5d4b070cd703ee..f395fe359f2dd1 100644
--- a/srcpkgs/gegl/template
+++ b/srcpkgs/gegl/template
@@ -1,7 +1,7 @@
# Template file for 'gegl'
pkgname=gegl
-version=0.4.46
-revision=2
+version=0.4.48
+revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dintrospection=true -Dvapigen=enabled
@@ -18,7 +18,7 @@ license="GPL-3.0-only, LGPL-3.0-only"
homepage="https://gegl.org/"
changelog="https://gitlab.gnome.org/GNOME/gegl/-/raw/master/docs/NEWS.adoc"
distfiles="https://download.gimp.org/pub/gegl/${version%.*}/gegl-${version}.tar.xz"
-checksum=d0b3b2481bc8774c5f3d0a487611910166d18eef823a859fb91e781ab7b1e892
+checksum=418c26d94be8805d7d98f6de0c6825ca26bd74fcacb6c188da47533d9ee28247
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From f1f42f8f3b3f03276af6b078f8312b0452ca61dd Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:29 -0400
Subject: [PATCH 2/9] gimp: update to 2.99.18.
---
common/shlibs | 18 +-
srcpkgs/gimp-python | 1 -
srcpkgs/gimp/INSTALL | 2 +-
srcpkgs/gimp/INSTALL.msg | 2 +
srcpkgs/gimp/patches/fix-cross.patch | 18 --
srcpkgs/gimp/patches/fix-segfault.patch | 169 ------------------
srcpkgs/gimp/patches/gcc14.patch | 63 -------
.../gimp/patches/install-gimpchoice-h.patch | 25 +++
srcpkgs/gimp/template | 59 +++---
9 files changed, 71 insertions(+), 286 deletions(-)
delete mode 120000 srcpkgs/gimp-python
create mode 100644 srcpkgs/gimp/INSTALL.msg
delete mode 100644 srcpkgs/gimp/patches/fix-cross.patch
delete mode 100644 srcpkgs/gimp/patches/fix-segfault.patch
delete mode 100644 srcpkgs/gimp/patches/gcc14.patch
create mode 100644 srcpkgs/gimp/patches/install-gimpchoice-h.patch
diff --git a/common/shlibs b/common/shlibs
index b6017a715ced19..006a36cd77a45e 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -549,15 +549,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
-libgimp-2.0.so.0 libgimp-2.10.0_1
-libgimpwidgets-2.0.so.0 libgimp-2.10.0_1
-libgimpui-2.0.so.0 libgimp-2.10.0_1
-libgimpbase-2.0.so.0 libgimp-2.10.0_1
-libgimpthumb-2.0.so.0 libgimp-2.10.0_1
-libgimpconfig-2.0.so.0 libgimp-2.10.0_1
-libgimpmath-2.0.so.0 libgimp-2.10.0_1
-libgimpcolor-2.0.so.0 libgimp-2.10.0_1
-libgimpmodule-2.0.so.0 libgimp-2.10.0_1
+libgimp-3.0.so.0 libgimp-2.99.18_1
+libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
+libgimpui-3.0.so.0 libgimp-2.99.18_1
+libgimpbase-3.0.so.0 libgimp-2.99.18_1
+libgimpthumb-3.0.so.0 libgimp-2.99.18_1
+libgimpconfig-3.0.so.0 libgimp-2.99.18_1
+libgimpmath-3.0.so.0 libgimp-2.99.18_1
+libgimpcolor-3.0.so.0 libgimp-2.99.18_1
+libgimpmodule-3.0.so.0 libgimp-2.99.18_1
libgmic.so.3 gmic-3.1.6_1
libcgmic.so.3 gmic-3.1.6_1
libexiv2.so.28 exiv2-0.28.1_1
diff --git a/srcpkgs/gimp-python b/srcpkgs/gimp-python
deleted file mode 120000
index 92344a4bb4a963..00000000000000
--- a/srcpkgs/gimp-python
+++ /dev/null
@@ -1 +0,0 @@
-gimp
\ No newline at end of file
diff --git a/srcpkgs/gimp/INSTALL b/srcpkgs/gimp/INSTALL
index 87064d64438f00..daeff6b33cec0f 100644
--- a/srcpkgs/gimp/INSTALL
+++ b/srcpkgs/gimp/INSTALL
@@ -2,7 +2,7 @@
case "${ACTION}" in
pre)
if [ "$UPDATE" = "yes" ]; then
- xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm -f
fi
;;
esac
diff --git a/srcpkgs/gimp/INSTALL.msg b/srcpkgs/gimp/INSTALL.msg
new file mode 100644
index 00000000000000..24e3bddd8303ba
--- /dev/null
+++ b/srcpkgs/gimp/INSTALL.msg
@@ -0,0 +1,2 @@
+GIMP 3 breaks compatibility with many plugins. If you wish to continue
+using GIMP 2.x plugins, install gimp2.
diff --git a/srcpkgs/gimp/patches/fix-cross.patch b/srcpkgs/gimp/patches/fix-cross.patch
deleted file mode 100644
index 0ffcf9b650b987..00000000000000
--- a/srcpkgs/gimp/patches/fix-cross.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
-+++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
-@@ -14,6 +14,7 @@ else
- libm = -lm
- endif
-
-+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
- libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
- libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
- libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
-@@ -85,6 +86,7 @@ script_fu_SOURCES = \
- scheme-wrapper.h
-
- LDADD = \
-+ $(libgimpmodule) \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpconfig) \
diff --git a/srcpkgs/gimp/patches/fix-segfault.patch b/srcpkgs/gimp/patches/fix-segfault.patch
deleted file mode 100644
index 5f1a6a6d3fe977..00000000000000
--- a/srcpkgs/gimp/patches/fix-segfault.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
-index 064f2c4..b17d82f 100644
---- a/app/dialogs/dialogs.c
-+++ b/app/dialogs/dialogs.c
-@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
- menu_factory);
- gimp_dialog_factory_set_singleton (factory);
-
-- for (i = 0; i < G_N_ELEMENTS (entries); i++)
-+ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
-+ char *name, *blurb;
-+ name = entries[i].name ? gettext(entries[i].name) : NULL;
-+ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
-+
- gimp_dialog_factory_register_entry (factory,
- entries[i].identifier,
-- gettext (entries[i].name),
-- gettext (entries[i].blurb),
-+ name,
-+ blurb,
- entries[i].icon_name,
- entries[i].help_id,
- entries[i].new_func,
-@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
- entries[i].hideable,
- entries[i].image_window,
- entries[i].dockable);
-+ }
-
- global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
- }
-diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
-index 04bd1b6..12eff51 100644
---- a/app/widgets/gimpactiongroup.c
-+++ b/app/widgets/gimpactiongroup.c
-@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_action_impl_new (entries[i].name, label, tooltip,
-@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_toggle_action_new (entries[i].name, label, tooltip,
-@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_radio_action_new (entries[i].name, label, tooltip,
-@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpEnumAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_enum_action_new (entries[i].name, label, tooltip,
-@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp/patches/gcc14.patch b/srcpkgs/gimp/patches/gcc14.patch
deleted file mode 100644
index ceae92fa154c82..00000000000000
--- a/srcpkgs/gimp/patches/gcc14.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Fri, 13 Jan 2023 13:29:07 +0100
-Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
-
-Do not call the undeclared exit function. Implicit function
-declarations are likely not going to be supported by future compilers
-by default, changing the outcome of this configure probe with
-such compilers.
----
- configure.ac | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 03047899841..b8718955471 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
- ]])],
- [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
-diff --git a/configure b/configure
-index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
---- a/configure
-+++ b/configure
-@@ -28898,17 +28898,17 @@ else $as_nop
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
-
- _ACEOF
diff --git a/srcpkgs/gimp/patches/install-gimpchoice-h.patch b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
new file mode 100644
index 00000000000000..533b14d397f814
--- /dev/null
+++ b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
@@ -0,0 +1,25 @@
+From 11892f1d83ffc465346dab7e2e8c6e790f555a64 Mon Sep 17 00:00:00 2001
+From: Jehan <jehan@girinstud.io>
+Date: Wed, 21 Feb 2024 11:08:23 +0100
+Subject: [PATCH] Issue #10900: install missing gimpchoice.h.
+
+Argh how this could pass without anyone noticing?!
+---
+ libgimpbase/meson.build | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libgimpbase/meson.build b/libgimpbase/meson.build
+index a77d125f39d..a2c27016b10 100644
+--- a/libgimpbase/meson.build
++++ b/libgimpbase/meson.build
+@@ -84,6 +84,7 @@ libgimpbase_headers_introspectable = files(
+ 'gimpbaseenums.h',
+ 'gimpbasetypes.h',
+ 'gimpchecks.h',
++ 'gimpchoice.h',
+ 'gimpcpuaccel.h',
+ 'gimpenv.h',
+ 'gimplimits.h',
+--
+GitLab
+
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index 3ed1fc7cc9c740..59058b8598ae74 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -1,34 +1,40 @@
# Template file for 'gimp'
pkgname=gimp
-version=2.10.38
+version=2.99.18
revision=1
-build_style=gnu-configure
-configure_args="--disable-check-update --datadir=/usr/share --disable-python"
-hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
- libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
-makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
- ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
- libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
- libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
- poppler-glib-devel glib-networking libwebp-devel
- libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
-depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+build_style=meson
+build_helper="gir qemu"
+configure_args="-Dcheck-update=no -Drevision=$revision -Denable-default-bin=enabled
+ $(vopt_bool gir g-ir-doc) $(vopt_bool gir can-crosscompile-gir)
+ -Dbug-report-url=https://github.com/void-linux/void-packages/issues/new/choose"
+hostmakedepends="pkg-config xdg-utils perl libxslt gjs LuaJIT desktop-file-utils
+ AppStream gi-docgen gettext gobject-introspection yelp-tools librsvg-devel glib-devel"
+makedepends="babl-devel gtk+3-devel gegl-devel libgexiv2-devel libgirepository-devel
+ libmypaint-devel mypaint-brushes1 librsvg-devel glib-networking appstream-glib-devel
+ libXmu-devel ghostscript-devel libmng-devel aalib-devel libXpm-devel libopenexr-devel
+ libwebp-devel libheif-devel poppler-glib-devel libwmf-devel libopenjpeg2-devel
+ libjxl-devel alsa-lib-devel cfitsio-devel python3-gobject-devel libgomp-devel
+ libunwind-devel lua51-lgi"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1 python3-gobject"
+checkdepends="xvfb-run dbus"
short_desc="GNU image manipulation program"
-conf_files="/etc/gimp/${version%%.*}.0/*"
+#conf_files="/etc/gimp/${version%%.*}.0/*"
+conf_files="/etc/gimp/${version%.*}/*"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-only"
homepage="https://www.gimp.org"
-changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
-distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
-checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+distfiles="https://download.gimp.org/gimp/v${version%.*}/gimp-${version}.tar.xz"
+checksum=8c1bb7a94ac0d4d0cde4d701d8b356387c2ecd87abbd35bbf7d222d40f6ddb6e
lib32disabled=yes
-no_generic_pkgconfig_link=yes
-pre_configure() {
- NOCONFIGURE=1 autoreconf -fi
- # don't allow configure to set DATADIRNAME=lib
- vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
+build_options="gir"
+build_options_default="gir"
+
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -Dheadless-tests=enabled"
+else
+ configure_args+=" -Dheadless-tests=disabled"
+fi
libgimp_package() {
short_desc+=" - runtime libraries"
@@ -38,13 +44,16 @@ libgimp_package() {
}
gimp-devel_package() {
- depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}"
+ depends="libgimp>=${version}_${revision} gegl-devel gtk+3-devel libgexiv2-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
- vmove usr/share/gtk-doc
- vmove usr/share/aclocal
+ vmove usr/share/doc
vmove "usr/lib/*.so"
+ if [ "$build_option_gir" ]; then
+ vmove usr/share/gir-1.0
+ vmove usr/share/vala
+ fi
}
}
From bc5a195776d1e149823ec81c429617ca4283f3fb Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Tue, 11 Jun 2024 21:46:37 -0400
Subject: [PATCH 3/9] New package: gimp2-2.10.38
---
common/shlibs | 9 ++
srcpkgs/gimp2-devel | 1 +
srcpkgs/gimp2/INSTALL | 8 ++
srcpkgs/gimp2/patches/fix-cross.patch | 18 +++
srcpkgs/gimp2/patches/fix-segfault.patch | 169 +++++++++++++++++++++++
srcpkgs/gimp2/patches/gcc14.patch | 63 +++++++++
srcpkgs/gimp2/template | 59 ++++++++
srcpkgs/gimp2/update | 2 +
srcpkgs/libgimp2 | 1 +
9 files changed, 330 insertions(+)
create mode 120000 srcpkgs/gimp2-devel
create mode 100644 srcpkgs/gimp2/INSTALL
create mode 100644 srcpkgs/gimp2/patches/fix-cross.patch
create mode 100644 srcpkgs/gimp2/patches/fix-segfault.patch
create mode 100644 srcpkgs/gimp2/patches/gcc14.patch
create mode 100644 srcpkgs/gimp2/template
create mode 100644 srcpkgs/gimp2/update
create mode 120000 srcpkgs/libgimp2
diff --git a/common/shlibs b/common/shlibs
index 006a36cd77a45e..88e2952d599943 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -549,6 +549,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
+libgimp-2.0.so.0 libgimp2-2.10.38_1
+libgimpwidgets-2.0.so.0 libgimp2-2.10.38_1
+libgimpui-2.0.so.0 libgimp2-2.10.38_1
+libgimpbase-2.0.so.0 libgimp2-2.10.38_1
+libgimpthumb-2.0.so.0 libgimp2-2.10.38_1
+libgimpconfig-2.0.so.0 libgimp2-2.10.38_1
+libgimpmath-2.0.so.0 libgimp2-2.10.38_1
+libgimpcolor-2.0.so.0 libgimp2-2.10.38_1
+libgimpmodule-2.0.so.0 libgimp2-2.10.38_1
libgimp-3.0.so.0 libgimp-2.99.18_1
libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
libgimpui-3.0.so.0 libgimp-2.99.18_1
diff --git a/srcpkgs/gimp2-devel b/srcpkgs/gimp2-devel
new file mode 120000
index 00000000000000..cae4fa79d617de
--- /dev/null
+++ b/srcpkgs/gimp2-devel
@@ -0,0 +1 @@
+gimp2
\ No newline at end of file
diff --git a/srcpkgs/gimp2/INSTALL b/srcpkgs/gimp2/INSTALL
new file mode 100644
index 00000000000000..87064d64438f00
--- /dev/null
+++ b/srcpkgs/gimp2/INSTALL
@@ -0,0 +1,8 @@
+# workaround for https://github.com/void-linux/xbps/issues/14
+case "${ACTION}" in
+pre)
+ if [ "$UPDATE" = "yes" ]; then
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ fi
+ ;;
+esac
diff --git a/srcpkgs/gimp2/patches/fix-cross.patch b/srcpkgs/gimp2/patches/fix-cross.patch
new file mode 100644
index 00000000000000..0ffcf9b650b987
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-cross.patch
@@ -0,0 +1,18 @@
+--- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
++++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
+@@ -14,6 +14,7 @@ else
+ libm = -lm
+ endif
+
++libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
+ libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
+ libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
+ libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
+@@ -85,6 +86,7 @@ script_fu_SOURCES = \
+ scheme-wrapper.h
+
+ LDADD = \
++ $(libgimpmodule) \
+ $(libgimpui) \
+ $(libgimpwidgets) \
+ $(libgimpconfig) \
diff --git a/srcpkgs/gimp2/patches/fix-segfault.patch b/srcpkgs/gimp2/patches/fix-segfault.patch
new file mode 100644
index 00000000000000..5f1a6a6d3fe977
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-segfault.patch
@@ -0,0 +1,169 @@
+diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
+index 064f2c4..b17d82f 100644
+--- a/app/dialogs/dialogs.c
++++ b/app/dialogs/dialogs.c
+@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
+ menu_factory);
+ gimp_dialog_factory_set_singleton (factory);
+
+- for (i = 0; i < G_N_ELEMENTS (entries); i++)
++ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
++ char *name, *blurb;
++ name = entries[i].name ? gettext(entries[i].name) : NULL;
++ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
++
+ gimp_dialog_factory_register_entry (factory,
+ entries[i].identifier,
+- gettext (entries[i].name),
+- gettext (entries[i].blurb),
++ name,
++ blurb,
+ entries[i].icon_name,
+ entries[i].help_id,
+ entries[i].new_func,
+@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
+ entries[i].hideable,
+ entries[i].image_window,
+ entries[i].dockable);
++ }
+
+ global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
+ }
+diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
+index 04bd1b6..12eff51 100644
+--- a/app/widgets/gimpactiongroup.c
++++ b/app/widgets/gimpactiongroup.c
+@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_action_impl_new (entries[i].name, label, tooltip,
+@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_toggle_action_new (entries[i].name, label, tooltip,
+@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_radio_action_new (entries[i].name, label, tooltip,
+@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpEnumAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_enum_action_new (entries[i].name, label, tooltip,
+@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp2/patches/gcc14.patch b/srcpkgs/gimp2/patches/gcc14.patch
new file mode 100644
index 00000000000000..ceae92fa154c82
--- /dev/null
+++ b/srcpkgs/gimp2/patches/gcc14.patch
@@ -0,0 +1,63 @@
+From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Fri, 13 Jan 2023 13:29:07 +0100
+Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
+
+Do not call the undeclared exit function. Implicit function
+declarations are likely not going to be supported by future compilers
+by default, changing the outcome of this configure probe with
+such compilers.
+---
+ configure.ac | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 03047899841..b8718955471 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+ ]])],
+ [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
+diff --git a/configure b/configure
+index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
+--- a/configure
++++ b/configure
+@@ -28898,17 +28898,17 @@ else $as_nop
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+
+ _ACEOF
diff --git a/srcpkgs/gimp2/template b/srcpkgs/gimp2/template
new file mode 100644
index 00000000000000..6e4cd9a04cd410
--- /dev/null
+++ b/srcpkgs/gimp2/template
@@ -0,0 +1,59 @@
+# Template file for 'gimp2'
+pkgname=gimp2
+version=2.10.38
+revision=1
+build_style=gnu-configure
+configure_args="--disable-check-update --datadir=/usr/share --disable-python
+ --disable-default-binary"
+hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
+ libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
+makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
+ ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
+ libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
+ libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
+ poppler-glib-devel glib-networking libwebp-devel
+ libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+short_desc="GNU image manipulation program (version 2.x)"
+conf_files="/etc/gimp/${version%%.*}.0/*"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="GPL-3.0-only"
+homepage="https://www.gimp.org"
+changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
+distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
+checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+lib32disabled=yes
+no_generic_pkgconfig_link=yes
+
+pre_configure() {
+ NOCONFIGURE=1 autoreconf -fi
+ # don't allow configure to set DATADIRNAME=lib
+ vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
+}
+
+post_install() {
+ vsed -i -e "s/^Name.*$/& ${version%.*}/" -e "s/^Icon.*$/&-${version%.*}/" "${DESTDIR}/usr/share/applications/gimp.desktop"
+ mv "${DESTDIR}/usr/share/applications/gimp.desktop" "${DESTDIR}/usr/share/applications/gimp-${version%.*}.desktop"
+ find "${DESTDIR}/usr/share/icons/hicolor" -name gimp.png -execdir mv {} "gimp-${version%.*}.png" \;
+ vsed -i -e "s/org.gimp.GIMP/&${version%%.*}/" "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP.appdata.xml"
+ mv "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP.appdata.xml" "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP${version%%.*}.appdata.xml"
+}
+
+libgimp2_package() {
+ short_desc+=" - runtime libraries"
+ pkg_install() {
+ vmove "usr/lib/*.so.*"
+ }
+}
+
+gimp2-devel_package() {
+ depends="gegl-devel gtk+-devel lcms2-devel libgimp2>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/pkgconfig
+ vmove usr/share/gtk-doc
+ vmove usr/share/aclocal
+ vmove "usr/lib/*.so"
+ }
+}
diff --git a/srcpkgs/gimp2/update b/srcpkgs/gimp2/update
new file mode 100644
index 00000000000000..0e2a52581a8290
--- /dev/null
+++ b/srcpkgs/gimp2/update
@@ -0,0 +1,2 @@
+pkgname=gimp
+ignore="*.99.*"
diff --git a/srcpkgs/libgimp2 b/srcpkgs/libgimp2
new file mode 120000
index 00000000000000..cae4fa79d617de
--- /dev/null
+++ b/srcpkgs/libgimp2
@@ -0,0 +1 @@
+gimp2
\ No newline at end of file
From 3a2506b301f19c5a46ed49aa4895e9881386a23f Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:08 -0400
Subject: [PATCH 4/9] libjxl: rebuild against libgimp2
gimp 3 supports jxl now, and this would cause a dependency loop
---
srcpkgs/libjxl/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template
index 88403273d483bf..bbe8c1053a8ec0 100644
--- a/srcpkgs/libjxl/template
+++ b/srcpkgs/libjxl/template
@@ -1,7 +1,7 @@
# Template file for 'libjxl'
pkgname=libjxl
version=0.10.2
-revision=1
+revision=2
_testdata_hash=ff8d743aaba05b3014f17e5475e576242fa979fc
build_style=cmake
configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
@@ -9,7 +9,7 @@ configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
-DJPEGXL_ENABLE_SKCMS=OFF"
hostmakedepends="tar pkg-config asciidoc"
makedepends="brotli-devel highway libpng-devel giflib-devel libjpeg-turbo-devel
- libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp-devel lcms2-devel"
+ libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp2-devel lcms2-devel"
checkdepends="gtest-devel xdg-utils"
short_desc="JPEG XL image format reference implementation"
maintainer="Joshua Krämer <joshua@kraemer.link>"
From 147cf0a087d35a23e0eb2d83e3bf0a5d47a782eb Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:09 -0400
Subject: [PATCH 5/9] gmic: rebuild against libgimp2
---
srcpkgs/gmic/template | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/srcpkgs/gmic/template b/srcpkgs/gmic/template
index fa37651bb6deea..a691c6231bb70e 100644
--- a/srcpkgs/gmic/template
+++ b/srcpkgs/gmic/template
@@ -1,7 +1,7 @@
# Template file for 'gmic'
pkgname=gmic
version=3.1.6
-revision=5
+revision=6
_zart_hash=34ebf6cce0bafb98abe57cec83c4a02cd1abeca0
create_wrksrc=yes
build_wrksrc="src"
@@ -9,10 +9,10 @@ build_style=gnu-makefile
build_helper=qmake
make_build_args="NOSTRIP=yes"
make_use_env=yes
-hostmakedepends="pkg-config gimp qt5-host-tools qt5-qmake"
+hostmakedepends="pkg-config gimp2 qt5-host-tools qt5-qmake"
makedepends="fftw-devel imath-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel lcms2-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
- gtk+-devel gimp-devel qt5-devel"
+ gtk+-devel gimp2-devel qt5-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="CECILL-2.1, CECILL-C"
@@ -33,8 +33,8 @@ post_install() {
}
gmic-gimp_package() {
- short_desc+=" - GIMP plugin"
- depends="gimp ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/gimp
}
From bc2d8b89dd3067f89275e05479fe0bf920bae48d Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:10 -0400
Subject: [PATCH 6/9] nufraw: rebuild against libgimp2
---
srcpkgs/nufraw/template | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/nufraw/template b/srcpkgs/nufraw/template
index 551f263df96d38..8748aa91afc779 100644
--- a/srcpkgs/nufraw/template
+++ b/srcpkgs/nufraw/template
@@ -1,7 +1,7 @@
# Template file for 'nufraw'
pkgname=nufraw
version=0.43.3
-revision=1
+revision=2
_ver="${version%.*}-${version##*.}"
build_style=gnu-configure
configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
@@ -9,7 +9,7 @@ configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
hostmakedepends="pkg-config automake libtool glib-devel"
# libgexiv2-devel is only here to fix build order, remove on next template
# change
-makedepends="exiv2-devel gimp-devel glib-devel gtkimageview-devel lcms2-devel
+makedepends="exiv2-devel gimp2-devel glib-devel gtkimageview-devel lcms2-devel
lensfun-devel jasper-devel libgexiv2-devel"
depends="desktop-file-utils"
short_desc="Utility to read and manipulate raw images from digital cameras"
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later"
homepage="https://sourceforge.net/projects/nufraw/"
distfiles="${SOURCEFORGE_SITE}/nufraw/nufraw-${_ver}.tar.gz"
checksum=2c7dcc1590993ec267b3112562b2433010d6f94f6acc6506c76aa29cf8c6c32c
+conflicts="dcraw>=0"
case "$XBPS_TARGET_MACHINE" in
armv[67]l* | aarch64* | riscv64*)
@@ -36,8 +37,8 @@ pre_build() {
}
nufraw-gimp_package() {
- depends="${sourcepkg}>=${version}_${revision}"
- short_desc+=" - gimp plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
pkg_install() {
vmove usr/lib/gimp
}
From c6e73748a53b1693b306fa2b8d5eabdcf290f6e5 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 7/9] xsane: rebuild against libgimp2
---
srcpkgs/xsane/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 7dde32af2b674c..67c53e94489fab 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -1,9 +1,9 @@
# Template file for 'xsane'
pkgname=xsane
version=0.999
-revision=5
+revision=6
hostmakedepends="pkg-config sane-devel gettext"
-makedepends="gtk+-devel lcms-devel sane-devel gimp-devel"
+makedepends="gtk+-devel lcms-devel sane-devel gimp2-devel"
depends="sane"
short_desc="GTK-based X11 frontend for SANE"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -36,8 +36,8 @@ do_install() {
}
xsane-gimp_package() {
- short_desc+=" - plugin for GIMP"
- depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - plugin for GIMP 2"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vbin src/xsane-gimp
vmkdir usr/lib/gimp/2.0/plug-ins
From 79700579eed93c513f988c541da9abe976b16ff6 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 8/9] gimp-lqr-plugin: rebuild against libgimp2
---
srcpkgs/gimp-lqr-plugin/template | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gimp-lqr-plugin/template b/srcpkgs/gimp-lqr-plugin/template
index 7878f6cb795d24..33a395c67a8583 100644
--- a/srcpkgs/gimp-lqr-plugin/template
+++ b/srcpkgs/gimp-lqr-plugin/template
@@ -1,11 +1,12 @@
# Template file for 'gimp-lqr-plugin'
pkgname=gimp-lqr-plugin
version=0.7.2
-revision=2
+revision=3
build_style=gnu-configure
hostmakedepends="automake intltool pkg-config"
-makedepends="gimp-devel glib-devel gettext-devel liblqr-devel"
-short_desc="Gimp plugins for image resizing through seam carving"
+makedepends="gimp2-devel glib-devel gettext-devel liblqr-devel"
+depends="gimp2"
+short_desc="GIMP 2 plugins for image resizing through seam carving"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://liquidrescale.wikidot.com/"
From 1300b53a19ce9a714ed7ec789e197aa4ad3c071b Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 03:22:14 -0400
Subject: [PATCH 9/9] resynthesizer: update to 2.0.3+2.
WIP gimp 3 port
---
srcpkgs/resynthesizer/template | 29 +++++++++--------------------
1 file changed, 9 insertions(+), 20 deletions(-)
diff --git a/srcpkgs/resynthesizer/template b/srcpkgs/resynthesizer/template
index a58b0eec995854..2b56f8f406b456 100644
--- a/srcpkgs/resynthesizer/template
+++ b/srcpkgs/resynthesizer/template
@@ -1,26 +1,15 @@
# Template file for 'resynthesizer'
pkgname=resynthesizer
-version=2.0.3+1
+version=2.0.3+2
revision=1
-_commit=701e890d1d456e215e05daa7b4a88f5d9c6c03b3
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
+_commit=dee67110c51cbc69c28435ac7485766c3eb30a94
+build_style=meson
+hostmakedepends="pkg-config"
makedepends="gimp-devel glib-devel gettext-devel"
-short_desc="Suite of gimp plugins for texture healing and synthesis"
+depends="gimp"
+short_desc="Suite of GIMP plugins for texture healing and synthesis"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
-# FIXME: when gimp 3 is available, switch back to bootchk upstream
-#homepage="https://github.com/bootchk/resynthesizer"
-#distfiles="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${version}.tar.gz"
-homepage="https://github.com/itr-tert/gimp-resynthesizer-scm"
-distfiles="https://github.com/itr-tert/gimp-resynthesizer-scm/archive/${_commit}.tar.gz"
-checksum=298286386466fbd6d2da06f8a920c6e6e313db7ca0a094a36a355978a64cefc0
-
-if [ "$CROSS_BUILD" ];then
- hostmakedepends+=" glib-devel gettext-devel"
- AUTOGEN_CONFIGURE_ARGS+=" --host=${XBPS_MACHINE%-musl} --build=${XBPS_CROSS_TRIPLET}"
-fi
-
-pre_configure() {
- ./autogen.sh ${AUTOGEN_CONFIGURE_ARGS}
-}
+homepage="https://github.com/bootchk/resynthesizer"
+distfiles="https://github.com/bootchk/resynthesizer/archive/${_commit}.tar.gz"
+checksum=a9ae689f5c10e284b0b8cab03baa05caab029fae2250bcdcc7e1d3ec6f8c367d
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PR PATCH] [Updated] GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
` (5 preceding siblings ...)
2024-06-12 5:21 ` classabbyamp
@ 2024-06-12 6:50 ` classabbyamp
2024-09-11 1:56 ` github-actions
` (9 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2024-06-12 6:50 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
There is an updated pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages gimp3
https://github.com/void-linux/void-packages/pull/49890
GIMP 3
WIP until at minimum the full GIMP 3 release, expected in about a month: https://gitlab.gnome.org/GNOME/gimp/-/issues/10373
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
#### Plugins
- [ ] nufraw - not (yet) compatible
- [x] resynthesizer - compatible on in-dev branch
- [ ] gmic - not (yet) compatible
- [ ] xsane
- [ ] gimp-lqr-plugin - not (yet) compatible)
- [x] libjxl - disable because gimp supports it directly now
A patch file from https://github.com/void-linux/void-packages/pull/49890.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gimp3-49890.patch --]
[-- Type: text/x-diff, Size: 43092 bytes --]
From 61ecd17eb244212706713ff2de6e6c321c255cd8 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:35 -0400
Subject: [PATCH 1/9] gegl: update to 0.4.48.
---
srcpkgs/gegl/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gegl/template b/srcpkgs/gegl/template
index 5d4b070cd703ee..f395fe359f2dd1 100644
--- a/srcpkgs/gegl/template
+++ b/srcpkgs/gegl/template
@@ -1,7 +1,7 @@
# Template file for 'gegl'
pkgname=gegl
-version=0.4.46
-revision=2
+version=0.4.48
+revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dintrospection=true -Dvapigen=enabled
@@ -18,7 +18,7 @@ license="GPL-3.0-only, LGPL-3.0-only"
homepage="https://gegl.org/"
changelog="https://gitlab.gnome.org/GNOME/gegl/-/raw/master/docs/NEWS.adoc"
distfiles="https://download.gimp.org/pub/gegl/${version%.*}/gegl-${version}.tar.xz"
-checksum=d0b3b2481bc8774c5f3d0a487611910166d18eef823a859fb91e781ab7b1e892
+checksum=418c26d94be8805d7d98f6de0c6825ca26bd74fcacb6c188da47533d9ee28247
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From c64711f21fe33d88156edaad0856a2534b05ebc8 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:29 -0400
Subject: [PATCH 2/9] gimp: update to 2.99.18.
---
common/shlibs | 18 +-
srcpkgs/gimp-python | 1 -
srcpkgs/gimp/INSTALL | 2 +-
srcpkgs/gimp/INSTALL.msg | 2 +
srcpkgs/gimp/patches/fix-cross.patch | 18 --
srcpkgs/gimp/patches/fix-segfault.patch | 169 ------------------
srcpkgs/gimp/patches/gcc14.patch | 63 -------
.../gimp/patches/install-gimpchoice-h.patch | 25 +++
srcpkgs/gimp/template | 56 +++---
9 files changed, 68 insertions(+), 286 deletions(-)
delete mode 120000 srcpkgs/gimp-python
create mode 100644 srcpkgs/gimp/INSTALL.msg
delete mode 100644 srcpkgs/gimp/patches/fix-cross.patch
delete mode 100644 srcpkgs/gimp/patches/fix-segfault.patch
delete mode 100644 srcpkgs/gimp/patches/gcc14.patch
create mode 100644 srcpkgs/gimp/patches/install-gimpchoice-h.patch
diff --git a/common/shlibs b/common/shlibs
index b6017a715ced19..006a36cd77a45e 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -549,15 +549,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
-libgimp-2.0.so.0 libgimp-2.10.0_1
-libgimpwidgets-2.0.so.0 libgimp-2.10.0_1
-libgimpui-2.0.so.0 libgimp-2.10.0_1
-libgimpbase-2.0.so.0 libgimp-2.10.0_1
-libgimpthumb-2.0.so.0 libgimp-2.10.0_1
-libgimpconfig-2.0.so.0 libgimp-2.10.0_1
-libgimpmath-2.0.so.0 libgimp-2.10.0_1
-libgimpcolor-2.0.so.0 libgimp-2.10.0_1
-libgimpmodule-2.0.so.0 libgimp-2.10.0_1
+libgimp-3.0.so.0 libgimp-2.99.18_1
+libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
+libgimpui-3.0.so.0 libgimp-2.99.18_1
+libgimpbase-3.0.so.0 libgimp-2.99.18_1
+libgimpthumb-3.0.so.0 libgimp-2.99.18_1
+libgimpconfig-3.0.so.0 libgimp-2.99.18_1
+libgimpmath-3.0.so.0 libgimp-2.99.18_1
+libgimpcolor-3.0.so.0 libgimp-2.99.18_1
+libgimpmodule-3.0.so.0 libgimp-2.99.18_1
libgmic.so.3 gmic-3.1.6_1
libcgmic.so.3 gmic-3.1.6_1
libexiv2.so.28 exiv2-0.28.1_1
diff --git a/srcpkgs/gimp-python b/srcpkgs/gimp-python
deleted file mode 120000
index 92344a4bb4a963..00000000000000
--- a/srcpkgs/gimp-python
+++ /dev/null
@@ -1 +0,0 @@
-gimp
\ No newline at end of file
diff --git a/srcpkgs/gimp/INSTALL b/srcpkgs/gimp/INSTALL
index 87064d64438f00..daeff6b33cec0f 100644
--- a/srcpkgs/gimp/INSTALL
+++ b/srcpkgs/gimp/INSTALL
@@ -2,7 +2,7 @@
case "${ACTION}" in
pre)
if [ "$UPDATE" = "yes" ]; then
- xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm -f
fi
;;
esac
diff --git a/srcpkgs/gimp/INSTALL.msg b/srcpkgs/gimp/INSTALL.msg
new file mode 100644
index 00000000000000..24e3bddd8303ba
--- /dev/null
+++ b/srcpkgs/gimp/INSTALL.msg
@@ -0,0 +1,2 @@
+GIMP 3 breaks compatibility with many plugins. If you wish to continue
+using GIMP 2.x plugins, install gimp2.
diff --git a/srcpkgs/gimp/patches/fix-cross.patch b/srcpkgs/gimp/patches/fix-cross.patch
deleted file mode 100644
index 0ffcf9b650b987..00000000000000
--- a/srcpkgs/gimp/patches/fix-cross.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
-+++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
-@@ -14,6 +14,7 @@ else
- libm = -lm
- endif
-
-+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
- libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
- libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
- libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
-@@ -85,6 +86,7 @@ script_fu_SOURCES = \
- scheme-wrapper.h
-
- LDADD = \
-+ $(libgimpmodule) \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpconfig) \
diff --git a/srcpkgs/gimp/patches/fix-segfault.patch b/srcpkgs/gimp/patches/fix-segfault.patch
deleted file mode 100644
index 5f1a6a6d3fe977..00000000000000
--- a/srcpkgs/gimp/patches/fix-segfault.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
-index 064f2c4..b17d82f 100644
---- a/app/dialogs/dialogs.c
-+++ b/app/dialogs/dialogs.c
-@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
- menu_factory);
- gimp_dialog_factory_set_singleton (factory);
-
-- for (i = 0; i < G_N_ELEMENTS (entries); i++)
-+ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
-+ char *name, *blurb;
-+ name = entries[i].name ? gettext(entries[i].name) : NULL;
-+ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
-+
- gimp_dialog_factory_register_entry (factory,
- entries[i].identifier,
-- gettext (entries[i].name),
-- gettext (entries[i].blurb),
-+ name,
-+ blurb,
- entries[i].icon_name,
- entries[i].help_id,
- entries[i].new_func,
-@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
- entries[i].hideable,
- entries[i].image_window,
- entries[i].dockable);
-+ }
-
- global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
- }
-diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
-index 04bd1b6..12eff51 100644
---- a/app/widgets/gimpactiongroup.c
-+++ b/app/widgets/gimpactiongroup.c
-@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_action_impl_new (entries[i].name, label, tooltip,
-@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_toggle_action_new (entries[i].name, label, tooltip,
-@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_radio_action_new (entries[i].name, label, tooltip,
-@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpEnumAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_enum_action_new (entries[i].name, label, tooltip,
-@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp/patches/gcc14.patch b/srcpkgs/gimp/patches/gcc14.patch
deleted file mode 100644
index ceae92fa154c82..00000000000000
--- a/srcpkgs/gimp/patches/gcc14.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Fri, 13 Jan 2023 13:29:07 +0100
-Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
-
-Do not call the undeclared exit function. Implicit function
-declarations are likely not going to be supported by future compilers
-by default, changing the outcome of this configure probe with
-such compilers.
----
- configure.ac | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 03047899841..b8718955471 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
- ]])],
- [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
-diff --git a/configure b/configure
-index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
---- a/configure
-+++ b/configure
-@@ -28898,17 +28898,17 @@ else $as_nop
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
-
- _ACEOF
diff --git a/srcpkgs/gimp/patches/install-gimpchoice-h.patch b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
new file mode 100644
index 00000000000000..533b14d397f814
--- /dev/null
+++ b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
@@ -0,0 +1,25 @@
+From 11892f1d83ffc465346dab7e2e8c6e790f555a64 Mon Sep 17 00:00:00 2001
+From: Jehan <jehan@girinstud.io>
+Date: Wed, 21 Feb 2024 11:08:23 +0100
+Subject: [PATCH] Issue #10900: install missing gimpchoice.h.
+
+Argh how this could pass without anyone noticing?!
+---
+ libgimpbase/meson.build | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libgimpbase/meson.build b/libgimpbase/meson.build
+index a77d125f39d..a2c27016b10 100644
+--- a/libgimpbase/meson.build
++++ b/libgimpbase/meson.build
+@@ -84,6 +84,7 @@ libgimpbase_headers_introspectable = files(
+ 'gimpbaseenums.h',
+ 'gimpbasetypes.h',
+ 'gimpchecks.h',
++ 'gimpchoice.h',
+ 'gimpcpuaccel.h',
+ 'gimpenv.h',
+ 'gimplimits.h',
+--
+GitLab
+
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index 3ed1fc7cc9c740..1c892bc904c414 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -1,34 +1,37 @@
# Template file for 'gimp'
pkgname=gimp
-version=2.10.38
+version=2.99.18
revision=1
-build_style=gnu-configure
-configure_args="--disable-check-update --datadir=/usr/share --disable-python"
-hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
- libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
-makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
- ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
- libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
- libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
- poppler-glib-devel glib-networking libwebp-devel
- libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
-depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+build_style=meson
+build_helper="gir qemu"
+configure_args="-Dcheck-update=no -Drevision=$revision -Denable-default-bin=enabled
+ -Dbug-report-url=https://github.com/void-linux/void-packages/issues/new/choose"
+hostmakedepends="pkg-config xdg-utils perl libxslt gjs LuaJIT desktop-file-utils
+ AppStream gettext gi-docgen gobject-introspection
+ yelp-tools librsvg-devel glib-devel"
+makedepends="babl-devel gtk+3-devel gegl-devel libgexiv2-devel libgirepository-devel
+ libmypaint-devel mypaint-brushes1 librsvg-devel glib-networking appstream-glib-devel
+ libXmu-devel ghostscript-devel libmng-devel aalib-devel libXpm-devel libopenexr-devel
+ libwebp-devel libheif-devel poppler-glib-devel libwmf-devel libopenjpeg2-devel
+ libjxl-devel alsa-lib-devel cfitsio-devel python3-gobject-devel libgomp-devel
+ libunwind-devel lua51-lgi"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1 python3-gobject"
+checkdepends="xvfb-run dbus"
short_desc="GNU image manipulation program"
-conf_files="/etc/gimp/${version%%.*}.0/*"
+#conf_files="/etc/gimp/${version%%.*}.0/*"
+conf_files="/etc/gimp/${version%.*}/*"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-only"
homepage="https://www.gimp.org"
-changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
-distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
-checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+distfiles="https://download.gimp.org/gimp/v${version%.*}/gimp-${version}.tar.xz"
+checksum=8c1bb7a94ac0d4d0cde4d701d8b356387c2ecd87abbd35bbf7d222d40f6ddb6e
lib32disabled=yes
-no_generic_pkgconfig_link=yes
-pre_configure() {
- NOCONFIGURE=1 autoreconf -fi
- # don't allow configure to set DATADIRNAME=lib
- vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -Dheadless-tests=enabled"
+else
+ configure_args+=" -Dheadless-tests=disabled"
+fi
libgimp_package() {
short_desc+=" - runtime libraries"
@@ -38,13 +41,16 @@ libgimp_package() {
}
gimp-devel_package() {
- depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}"
+ depends="libgimp>=${version}_${revision} gegl-devel gtk+3-devel libgexiv2-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
- vmove usr/share/gtk-doc
- vmove usr/share/aclocal
vmove "usr/lib/*.so"
+ if [ -z "$CROSS_BUILD" ]; then
+ vmove usr/share/gir-1.0
+ vmove usr/share/vala
+ vmove usr/share/doc
+ fi
}
}
From b19bd18dbac2d907726d31617d870bbd8fae3e3e Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Tue, 11 Jun 2024 21:46:37 -0400
Subject: [PATCH 3/9] New package: gimp2-2.10.38
---
common/shlibs | 9 ++
srcpkgs/gimp2-devel | 1 +
srcpkgs/gimp2/INSTALL | 8 ++
srcpkgs/gimp2/patches/fix-cross.patch | 18 +++
srcpkgs/gimp2/patches/fix-segfault.patch | 169 +++++++++++++++++++++++
srcpkgs/gimp2/patches/gcc14.patch | 63 +++++++++
srcpkgs/gimp2/template | 59 ++++++++
srcpkgs/gimp2/update | 2 +
srcpkgs/libgimp2 | 1 +
9 files changed, 330 insertions(+)
create mode 120000 srcpkgs/gimp2-devel
create mode 100644 srcpkgs/gimp2/INSTALL
create mode 100644 srcpkgs/gimp2/patches/fix-cross.patch
create mode 100644 srcpkgs/gimp2/patches/fix-segfault.patch
create mode 100644 srcpkgs/gimp2/patches/gcc14.patch
create mode 100644 srcpkgs/gimp2/template
create mode 100644 srcpkgs/gimp2/update
create mode 120000 srcpkgs/libgimp2
diff --git a/common/shlibs b/common/shlibs
index 006a36cd77a45e..88e2952d599943 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -549,6 +549,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
+libgimp-2.0.so.0 libgimp2-2.10.38_1
+libgimpwidgets-2.0.so.0 libgimp2-2.10.38_1
+libgimpui-2.0.so.0 libgimp2-2.10.38_1
+libgimpbase-2.0.so.0 libgimp2-2.10.38_1
+libgimpthumb-2.0.so.0 libgimp2-2.10.38_1
+libgimpconfig-2.0.so.0 libgimp2-2.10.38_1
+libgimpmath-2.0.so.0 libgimp2-2.10.38_1
+libgimpcolor-2.0.so.0 libgimp2-2.10.38_1
+libgimpmodule-2.0.so.0 libgimp2-2.10.38_1
libgimp-3.0.so.0 libgimp-2.99.18_1
libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
libgimpui-3.0.so.0 libgimp-2.99.18_1
diff --git a/srcpkgs/gimp2-devel b/srcpkgs/gimp2-devel
new file mode 120000
index 00000000000000..cae4fa79d617de
--- /dev/null
+++ b/srcpkgs/gimp2-devel
@@ -0,0 +1 @@
+gimp2
\ No newline at end of file
diff --git a/srcpkgs/gimp2/INSTALL b/srcpkgs/gimp2/INSTALL
new file mode 100644
index 00000000000000..87064d64438f00
--- /dev/null
+++ b/srcpkgs/gimp2/INSTALL
@@ -0,0 +1,8 @@
+# workaround for https://github.com/void-linux/xbps/issues/14
+case "${ACTION}" in
+pre)
+ if [ "$UPDATE" = "yes" ]; then
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ fi
+ ;;
+esac
diff --git a/srcpkgs/gimp2/patches/fix-cross.patch b/srcpkgs/gimp2/patches/fix-cross.patch
new file mode 100644
index 00000000000000..0ffcf9b650b987
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-cross.patch
@@ -0,0 +1,18 @@
+--- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
++++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
+@@ -14,6 +14,7 @@ else
+ libm = -lm
+ endif
+
++libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
+ libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
+ libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
+ libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
+@@ -85,6 +86,7 @@ script_fu_SOURCES = \
+ scheme-wrapper.h
+
+ LDADD = \
++ $(libgimpmodule) \
+ $(libgimpui) \
+ $(libgimpwidgets) \
+ $(libgimpconfig) \
diff --git a/srcpkgs/gimp2/patches/fix-segfault.patch b/srcpkgs/gimp2/patches/fix-segfault.patch
new file mode 100644
index 00000000000000..5f1a6a6d3fe977
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-segfault.patch
@@ -0,0 +1,169 @@
+diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
+index 064f2c4..b17d82f 100644
+--- a/app/dialogs/dialogs.c
++++ b/app/dialogs/dialogs.c
+@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
+ menu_factory);
+ gimp_dialog_factory_set_singleton (factory);
+
+- for (i = 0; i < G_N_ELEMENTS (entries); i++)
++ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
++ char *name, *blurb;
++ name = entries[i].name ? gettext(entries[i].name) : NULL;
++ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
++
+ gimp_dialog_factory_register_entry (factory,
+ entries[i].identifier,
+- gettext (entries[i].name),
+- gettext (entries[i].blurb),
++ name,
++ blurb,
+ entries[i].icon_name,
+ entries[i].help_id,
+ entries[i].new_func,
+@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
+ entries[i].hideable,
+ entries[i].image_window,
+ entries[i].dockable);
++ }
+
+ global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
+ }
+diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
+index 04bd1b6..12eff51 100644
+--- a/app/widgets/gimpactiongroup.c
++++ b/app/widgets/gimpactiongroup.c
+@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_action_impl_new (entries[i].name, label, tooltip,
+@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_toggle_action_new (entries[i].name, label, tooltip,
+@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_radio_action_new (entries[i].name, label, tooltip,
+@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpEnumAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_enum_action_new (entries[i].name, label, tooltip,
+@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp2/patches/gcc14.patch b/srcpkgs/gimp2/patches/gcc14.patch
new file mode 100644
index 00000000000000..ceae92fa154c82
--- /dev/null
+++ b/srcpkgs/gimp2/patches/gcc14.patch
@@ -0,0 +1,63 @@
+From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Fri, 13 Jan 2023 13:29:07 +0100
+Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
+
+Do not call the undeclared exit function. Implicit function
+declarations are likely not going to be supported by future compilers
+by default, changing the outcome of this configure probe with
+such compilers.
+---
+ configure.ac | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 03047899841..b8718955471 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+ ]])],
+ [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
+diff --git a/configure b/configure
+index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
+--- a/configure
++++ b/configure
+@@ -28898,17 +28898,17 @@ else $as_nop
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+
+ _ACEOF
diff --git a/srcpkgs/gimp2/template b/srcpkgs/gimp2/template
new file mode 100644
index 00000000000000..6e4cd9a04cd410
--- /dev/null
+++ b/srcpkgs/gimp2/template
@@ -0,0 +1,59 @@
+# Template file for 'gimp2'
+pkgname=gimp2
+version=2.10.38
+revision=1
+build_style=gnu-configure
+configure_args="--disable-check-update --datadir=/usr/share --disable-python
+ --disable-default-binary"
+hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
+ libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
+makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
+ ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
+ libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
+ libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
+ poppler-glib-devel glib-networking libwebp-devel
+ libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+short_desc="GNU image manipulation program (version 2.x)"
+conf_files="/etc/gimp/${version%%.*}.0/*"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="GPL-3.0-only"
+homepage="https://www.gimp.org"
+changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
+distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
+checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+lib32disabled=yes
+no_generic_pkgconfig_link=yes
+
+pre_configure() {
+ NOCONFIGURE=1 autoreconf -fi
+ # don't allow configure to set DATADIRNAME=lib
+ vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
+}
+
+post_install() {
+ vsed -i -e "s/^Name.*$/& ${version%.*}/" -e "s/^Icon.*$/&-${version%.*}/" "${DESTDIR}/usr/share/applications/gimp.desktop"
+ mv "${DESTDIR}/usr/share/applications/gimp.desktop" "${DESTDIR}/usr/share/applications/gimp-${version%.*}.desktop"
+ find "${DESTDIR}/usr/share/icons/hicolor" -name gimp.png -execdir mv {} "gimp-${version%.*}.png" \;
+ vsed -i -e "s/org.gimp.GIMP/&${version%%.*}/" "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP.appdata.xml"
+ mv "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP.appdata.xml" "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP${version%%.*}.appdata.xml"
+}
+
+libgimp2_package() {
+ short_desc+=" - runtime libraries"
+ pkg_install() {
+ vmove "usr/lib/*.so.*"
+ }
+}
+
+gimp2-devel_package() {
+ depends="gegl-devel gtk+-devel lcms2-devel libgimp2>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/pkgconfig
+ vmove usr/share/gtk-doc
+ vmove usr/share/aclocal
+ vmove "usr/lib/*.so"
+ }
+}
diff --git a/srcpkgs/gimp2/update b/srcpkgs/gimp2/update
new file mode 100644
index 00000000000000..0e2a52581a8290
--- /dev/null
+++ b/srcpkgs/gimp2/update
@@ -0,0 +1,2 @@
+pkgname=gimp
+ignore="*.99.*"
diff --git a/srcpkgs/libgimp2 b/srcpkgs/libgimp2
new file mode 120000
index 00000000000000..cae4fa79d617de
--- /dev/null
+++ b/srcpkgs/libgimp2
@@ -0,0 +1 @@
+gimp2
\ No newline at end of file
From f2a69ebc29a6fb16b82601badcb01ddc371bea14 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:08 -0400
Subject: [PATCH 4/9] libjxl: rebuild against libgimp2
gimp 3 supports jxl now, and this would cause a dependency loop
---
srcpkgs/libjxl/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template
index 88403273d483bf..bbe8c1053a8ec0 100644
--- a/srcpkgs/libjxl/template
+++ b/srcpkgs/libjxl/template
@@ -1,7 +1,7 @@
# Template file for 'libjxl'
pkgname=libjxl
version=0.10.2
-revision=1
+revision=2
_testdata_hash=ff8d743aaba05b3014f17e5475e576242fa979fc
build_style=cmake
configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
@@ -9,7 +9,7 @@ configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
-DJPEGXL_ENABLE_SKCMS=OFF"
hostmakedepends="tar pkg-config asciidoc"
makedepends="brotli-devel highway libpng-devel giflib-devel libjpeg-turbo-devel
- libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp-devel lcms2-devel"
+ libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp2-devel lcms2-devel"
checkdepends="gtest-devel xdg-utils"
short_desc="JPEG XL image format reference implementation"
maintainer="Joshua Krämer <joshua@kraemer.link>"
From 00d32799a0bb1612100c5f036adb78b131c8aee6 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:09 -0400
Subject: [PATCH 5/9] gmic: rebuild against libgimp2
---
srcpkgs/gmic/template | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/srcpkgs/gmic/template b/srcpkgs/gmic/template
index fa37651bb6deea..a691c6231bb70e 100644
--- a/srcpkgs/gmic/template
+++ b/srcpkgs/gmic/template
@@ -1,7 +1,7 @@
# Template file for 'gmic'
pkgname=gmic
version=3.1.6
-revision=5
+revision=6
_zart_hash=34ebf6cce0bafb98abe57cec83c4a02cd1abeca0
create_wrksrc=yes
build_wrksrc="src"
@@ -9,10 +9,10 @@ build_style=gnu-makefile
build_helper=qmake
make_build_args="NOSTRIP=yes"
make_use_env=yes
-hostmakedepends="pkg-config gimp qt5-host-tools qt5-qmake"
+hostmakedepends="pkg-config gimp2 qt5-host-tools qt5-qmake"
makedepends="fftw-devel imath-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel lcms2-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
- gtk+-devel gimp-devel qt5-devel"
+ gtk+-devel gimp2-devel qt5-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="CECILL-2.1, CECILL-C"
@@ -33,8 +33,8 @@ post_install() {
}
gmic-gimp_package() {
- short_desc+=" - GIMP plugin"
- depends="gimp ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/gimp
}
From f784b4fbb6c0f4fe9fc001ffd9b0498270541160 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:10 -0400
Subject: [PATCH 6/9] nufraw: rebuild against libgimp2
---
srcpkgs/nufraw/template | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/nufraw/template b/srcpkgs/nufraw/template
index 551f263df96d38..8748aa91afc779 100644
--- a/srcpkgs/nufraw/template
+++ b/srcpkgs/nufraw/template
@@ -1,7 +1,7 @@
# Template file for 'nufraw'
pkgname=nufraw
version=0.43.3
-revision=1
+revision=2
_ver="${version%.*}-${version##*.}"
build_style=gnu-configure
configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
@@ -9,7 +9,7 @@ configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
hostmakedepends="pkg-config automake libtool glib-devel"
# libgexiv2-devel is only here to fix build order, remove on next template
# change
-makedepends="exiv2-devel gimp-devel glib-devel gtkimageview-devel lcms2-devel
+makedepends="exiv2-devel gimp2-devel glib-devel gtkimageview-devel lcms2-devel
lensfun-devel jasper-devel libgexiv2-devel"
depends="desktop-file-utils"
short_desc="Utility to read and manipulate raw images from digital cameras"
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later"
homepage="https://sourceforge.net/projects/nufraw/"
distfiles="${SOURCEFORGE_SITE}/nufraw/nufraw-${_ver}.tar.gz"
checksum=2c7dcc1590993ec267b3112562b2433010d6f94f6acc6506c76aa29cf8c6c32c
+conflicts="dcraw>=0"
case "$XBPS_TARGET_MACHINE" in
armv[67]l* | aarch64* | riscv64*)
@@ -36,8 +37,8 @@ pre_build() {
}
nufraw-gimp_package() {
- depends="${sourcepkg}>=${version}_${revision}"
- short_desc+=" - gimp plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
pkg_install() {
vmove usr/lib/gimp
}
From 7b4e6a13e5ebbe55389fbd523a986969ab17d260 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 7/9] xsane: rebuild against libgimp2
---
srcpkgs/xsane/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 7dde32af2b674c..67c53e94489fab 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -1,9 +1,9 @@
# Template file for 'xsane'
pkgname=xsane
version=0.999
-revision=5
+revision=6
hostmakedepends="pkg-config sane-devel gettext"
-makedepends="gtk+-devel lcms-devel sane-devel gimp-devel"
+makedepends="gtk+-devel lcms-devel sane-devel gimp2-devel"
depends="sane"
short_desc="GTK-based X11 frontend for SANE"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -36,8 +36,8 @@ do_install() {
}
xsane-gimp_package() {
- short_desc+=" - plugin for GIMP"
- depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - plugin for GIMP 2"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vbin src/xsane-gimp
vmkdir usr/lib/gimp/2.0/plug-ins
From bef3cce89ef57c0aedf9c5392a1f8b6e45c79e1b Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 8/9] gimp-lqr-plugin: rebuild against libgimp2
---
srcpkgs/gimp-lqr-plugin/template | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gimp-lqr-plugin/template b/srcpkgs/gimp-lqr-plugin/template
index 7878f6cb795d24..33a395c67a8583 100644
--- a/srcpkgs/gimp-lqr-plugin/template
+++ b/srcpkgs/gimp-lqr-plugin/template
@@ -1,11 +1,12 @@
# Template file for 'gimp-lqr-plugin'
pkgname=gimp-lqr-plugin
version=0.7.2
-revision=2
+revision=3
build_style=gnu-configure
hostmakedepends="automake intltool pkg-config"
-makedepends="gimp-devel glib-devel gettext-devel liblqr-devel"
-short_desc="Gimp plugins for image resizing through seam carving"
+makedepends="gimp2-devel glib-devel gettext-devel liblqr-devel"
+depends="gimp2"
+short_desc="GIMP 2 plugins for image resizing through seam carving"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://liquidrescale.wikidot.com/"
From 958502e8c4b28fd269a723b4631b6fbaa6c43fc5 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 03:22:14 -0400
Subject: [PATCH 9/9] resynthesizer: update to 2.0.3+2.
WIP gimp 3 port
---
srcpkgs/resynthesizer/template | 29 +++++++++--------------------
1 file changed, 9 insertions(+), 20 deletions(-)
diff --git a/srcpkgs/resynthesizer/template b/srcpkgs/resynthesizer/template
index a58b0eec995854..2b56f8f406b456 100644
--- a/srcpkgs/resynthesizer/template
+++ b/srcpkgs/resynthesizer/template
@@ -1,26 +1,15 @@
# Template file for 'resynthesizer'
pkgname=resynthesizer
-version=2.0.3+1
+version=2.0.3+2
revision=1
-_commit=701e890d1d456e215e05daa7b4a88f5d9c6c03b3
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
+_commit=dee67110c51cbc69c28435ac7485766c3eb30a94
+build_style=meson
+hostmakedepends="pkg-config"
makedepends="gimp-devel glib-devel gettext-devel"
-short_desc="Suite of gimp plugins for texture healing and synthesis"
+depends="gimp"
+short_desc="Suite of GIMP plugins for texture healing and synthesis"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
-# FIXME: when gimp 3 is available, switch back to bootchk upstream
-#homepage="https://github.com/bootchk/resynthesizer"
-#distfiles="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${version}.tar.gz"
-homepage="https://github.com/itr-tert/gimp-resynthesizer-scm"
-distfiles="https://github.com/itr-tert/gimp-resynthesizer-scm/archive/${_commit}.tar.gz"
-checksum=298286386466fbd6d2da06f8a920c6e6e313db7ca0a094a36a355978a64cefc0
-
-if [ "$CROSS_BUILD" ];then
- hostmakedepends+=" glib-devel gettext-devel"
- AUTOGEN_CONFIGURE_ARGS+=" --host=${XBPS_MACHINE%-musl} --build=${XBPS_CROSS_TRIPLET}"
-fi
-
-pre_configure() {
- ./autogen.sh ${AUTOGEN_CONFIGURE_ARGS}
-}
+homepage="https://github.com/bootchk/resynthesizer"
+distfiles="https://github.com/bootchk/resynthesizer/archive/${_commit}.tar.gz"
+checksum=a9ae689f5c10e284b0b8cab03baa05caab029fae2250bcdcc7e1d3ec6f8c367d
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
` (6 preceding siblings ...)
2024-06-12 6:50 ` classabbyamp
@ 2024-09-11 1:56 ` github-actions
2024-10-26 4:39 ` [PR PATCH] [Updated] " classabbyamp
` (8 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: github-actions @ 2024-09-11 1:56 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/49890#issuecomment-2342460598
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PR PATCH] [Updated] GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
` (7 preceding siblings ...)
2024-09-11 1:56 ` github-actions
@ 2024-10-26 4:39 ` classabbyamp
2024-10-26 4:48 ` classabbyamp
` (7 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2024-10-26 4:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
There is an updated pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages gimp3
https://github.com/void-linux/void-packages/pull/49890
GIMP 3
WIP until at minimum the full GIMP 3 release, expected in about a month: https://gitlab.gnome.org/GNOME/gimp/-/issues/10373
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
#### Plugins
- [ ] nufraw - not (yet) compatible
- [x] resynthesizer - compatible on in-dev branch
- [ ] gmic - not (yet) compatible
- [ ] xsane
- [ ] gimp-lqr-plugin - not (yet) compatible)
- [x] libjxl - disable because gimp supports it directly now
A patch file from https://github.com/void-linux/void-packages/pull/49890.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gimp3-49890.patch --]
[-- Type: text/x-diff, Size: 42660 bytes --]
From 795ff0ab05dc65ddae2ee5fa47acf72ac23908f8 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:35 -0400
Subject: [PATCH 1/9] gegl: update to 0.4.48.
---
srcpkgs/gegl/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gegl/template b/srcpkgs/gegl/template
index 5d4b070cd703ee..f395fe359f2dd1 100644
--- a/srcpkgs/gegl/template
+++ b/srcpkgs/gegl/template
@@ -1,7 +1,7 @@
# Template file for 'gegl'
pkgname=gegl
-version=0.4.46
-revision=2
+version=0.4.48
+revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dintrospection=true -Dvapigen=enabled
@@ -18,7 +18,7 @@ license="GPL-3.0-only, LGPL-3.0-only"
homepage="https://gegl.org/"
changelog="https://gitlab.gnome.org/GNOME/gegl/-/raw/master/docs/NEWS.adoc"
distfiles="https://download.gimp.org/pub/gegl/${version%.*}/gegl-${version}.tar.xz"
-checksum=d0b3b2481bc8774c5f3d0a487611910166d18eef823a859fb91e781ab7b1e892
+checksum=418c26d94be8805d7d98f6de0c6825ca26bd74fcacb6c188da47533d9ee28247
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From 85ad84edf1b3d1b449369e7d49560fe3f280fe65 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:29 -0400
Subject: [PATCH 2/9] gimp: update to 2.99.18.
---
common/shlibs | 18 +-
srcpkgs/gimp-python | 1 -
srcpkgs/gimp/INSTALL | 2 +-
srcpkgs/gimp/INSTALL.msg | 2 +
srcpkgs/gimp/patches/fix-cross.patch | 18 --
srcpkgs/gimp/patches/fix-segfault.patch | 169 ------------------
srcpkgs/gimp/patches/gcc14.patch | 63 -------
.../gimp/patches/install-gimpchoice-h.patch | 25 +++
srcpkgs/gimp/template | 58 +++---
9 files changed, 69 insertions(+), 287 deletions(-)
delete mode 120000 srcpkgs/gimp-python
create mode 100644 srcpkgs/gimp/INSTALL.msg
delete mode 100644 srcpkgs/gimp/patches/fix-cross.patch
delete mode 100644 srcpkgs/gimp/patches/fix-segfault.patch
delete mode 100644 srcpkgs/gimp/patches/gcc14.patch
create mode 100644 srcpkgs/gimp/patches/install-gimpchoice-h.patch
diff --git a/common/shlibs b/common/shlibs
index 6d083594e55a51..2622baf6d65c80 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -560,15 +560,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
-libgimp-2.0.so.0 libgimp-2.10.0_1
-libgimpwidgets-2.0.so.0 libgimp-2.10.0_1
-libgimpui-2.0.so.0 libgimp-2.10.0_1
-libgimpbase-2.0.so.0 libgimp-2.10.0_1
-libgimpthumb-2.0.so.0 libgimp-2.10.0_1
-libgimpconfig-2.0.so.0 libgimp-2.10.0_1
-libgimpmath-2.0.so.0 libgimp-2.10.0_1
-libgimpcolor-2.0.so.0 libgimp-2.10.0_1
-libgimpmodule-2.0.so.0 libgimp-2.10.0_1
+libgimp-3.0.so.0 libgimp-2.99.18_1
+libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
+libgimpui-3.0.so.0 libgimp-2.99.18_1
+libgimpbase-3.0.so.0 libgimp-2.99.18_1
+libgimpthumb-3.0.so.0 libgimp-2.99.18_1
+libgimpconfig-3.0.so.0 libgimp-2.99.18_1
+libgimpmath-3.0.so.0 libgimp-2.99.18_1
+libgimpcolor-3.0.so.0 libgimp-2.99.18_1
+libgimpmodule-3.0.so.0 libgimp-2.99.18_1
libgmic.so.3 gmic-3.1.6_1
libcgmic.so.3 gmic-3.1.6_1
libexiv2.so.28 exiv2-0.28.1_1
diff --git a/srcpkgs/gimp-python b/srcpkgs/gimp-python
deleted file mode 120000
index 92344a4bb4a963..00000000000000
--- a/srcpkgs/gimp-python
+++ /dev/null
@@ -1 +0,0 @@
-gimp
\ No newline at end of file
diff --git a/srcpkgs/gimp/INSTALL b/srcpkgs/gimp/INSTALL
index 87064d64438f00..daeff6b33cec0f 100644
--- a/srcpkgs/gimp/INSTALL
+++ b/srcpkgs/gimp/INSTALL
@@ -2,7 +2,7 @@
case "${ACTION}" in
pre)
if [ "$UPDATE" = "yes" ]; then
- xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm -f
fi
;;
esac
diff --git a/srcpkgs/gimp/INSTALL.msg b/srcpkgs/gimp/INSTALL.msg
new file mode 100644
index 00000000000000..24e3bddd8303ba
--- /dev/null
+++ b/srcpkgs/gimp/INSTALL.msg
@@ -0,0 +1,2 @@
+GIMP 3 breaks compatibility with many plugins. If you wish to continue
+using GIMP 2.x plugins, install gimp2.
diff --git a/srcpkgs/gimp/patches/fix-cross.patch b/srcpkgs/gimp/patches/fix-cross.patch
deleted file mode 100644
index 0ffcf9b650b987..00000000000000
--- a/srcpkgs/gimp/patches/fix-cross.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
-+++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
-@@ -14,6 +14,7 @@ else
- libm = -lm
- endif
-
-+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
- libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
- libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
- libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
-@@ -85,6 +86,7 @@ script_fu_SOURCES = \
- scheme-wrapper.h
-
- LDADD = \
-+ $(libgimpmodule) \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpconfig) \
diff --git a/srcpkgs/gimp/patches/fix-segfault.patch b/srcpkgs/gimp/patches/fix-segfault.patch
deleted file mode 100644
index 5f1a6a6d3fe977..00000000000000
--- a/srcpkgs/gimp/patches/fix-segfault.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
-index 064f2c4..b17d82f 100644
---- a/app/dialogs/dialogs.c
-+++ b/app/dialogs/dialogs.c
-@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
- menu_factory);
- gimp_dialog_factory_set_singleton (factory);
-
-- for (i = 0; i < G_N_ELEMENTS (entries); i++)
-+ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
-+ char *name, *blurb;
-+ name = entries[i].name ? gettext(entries[i].name) : NULL;
-+ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
-+
- gimp_dialog_factory_register_entry (factory,
- entries[i].identifier,
-- gettext (entries[i].name),
-- gettext (entries[i].blurb),
-+ name,
-+ blurb,
- entries[i].icon_name,
- entries[i].help_id,
- entries[i].new_func,
-@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
- entries[i].hideable,
- entries[i].image_window,
- entries[i].dockable);
-+ }
-
- global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
- }
-diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
-index 04bd1b6..12eff51 100644
---- a/app/widgets/gimpactiongroup.c
-+++ b/app/widgets/gimpactiongroup.c
-@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_action_impl_new (entries[i].name, label, tooltip,
-@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_toggle_action_new (entries[i].name, label, tooltip,
-@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_radio_action_new (entries[i].name, label, tooltip,
-@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpEnumAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_enum_action_new (entries[i].name, label, tooltip,
-@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp/patches/gcc14.patch b/srcpkgs/gimp/patches/gcc14.patch
deleted file mode 100644
index ceae92fa154c82..00000000000000
--- a/srcpkgs/gimp/patches/gcc14.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Fri, 13 Jan 2023 13:29:07 +0100
-Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
-
-Do not call the undeclared exit function. Implicit function
-declarations are likely not going to be supported by future compilers
-by default, changing the outcome of this configure probe with
-such compilers.
----
- configure.ac | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 03047899841..b8718955471 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
- ]])],
- [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
-diff --git a/configure b/configure
-index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
---- a/configure
-+++ b/configure
-@@ -28898,17 +28898,17 @@ else $as_nop
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
-
- _ACEOF
diff --git a/srcpkgs/gimp/patches/install-gimpchoice-h.patch b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
new file mode 100644
index 00000000000000..533b14d397f814
--- /dev/null
+++ b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
@@ -0,0 +1,25 @@
+From 11892f1d83ffc465346dab7e2e8c6e790f555a64 Mon Sep 17 00:00:00 2001
+From: Jehan <jehan@girinstud.io>
+Date: Wed, 21 Feb 2024 11:08:23 +0100
+Subject: [PATCH] Issue #10900: install missing gimpchoice.h.
+
+Argh how this could pass without anyone noticing?!
+---
+ libgimpbase/meson.build | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libgimpbase/meson.build b/libgimpbase/meson.build
+index a77d125f39d..a2c27016b10 100644
+--- a/libgimpbase/meson.build
++++ b/libgimpbase/meson.build
+@@ -84,6 +84,7 @@ libgimpbase_headers_introspectable = files(
+ 'gimpbaseenums.h',
+ 'gimpbasetypes.h',
+ 'gimpchecks.h',
++ 'gimpchoice.h',
+ 'gimpcpuaccel.h',
+ 'gimpenv.h',
+ 'gimplimits.h',
+--
+GitLab
+
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index a50409d5ce5af1..1c892bc904c414 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -1,34 +1,37 @@
# Template file for 'gimp'
pkgname=gimp
-version=2.10.38
-revision=3
-build_style=gnu-configure
-configure_args="--disable-check-update --datadir=/usr/share --disable-python"
-hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
- libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
-makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
- ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
- libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
- libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
- poppler-glib-devel glib-networking libwebp-devel
- libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
-depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+version=2.99.18
+revision=1
+build_style=meson
+build_helper="gir qemu"
+configure_args="-Dcheck-update=no -Drevision=$revision -Denable-default-bin=enabled
+ -Dbug-report-url=https://github.com/void-linux/void-packages/issues/new/choose"
+hostmakedepends="pkg-config xdg-utils perl libxslt gjs LuaJIT desktop-file-utils
+ AppStream gettext gi-docgen gobject-introspection
+ yelp-tools librsvg-devel glib-devel"
+makedepends="babl-devel gtk+3-devel gegl-devel libgexiv2-devel libgirepository-devel
+ libmypaint-devel mypaint-brushes1 librsvg-devel glib-networking appstream-glib-devel
+ libXmu-devel ghostscript-devel libmng-devel aalib-devel libXpm-devel libopenexr-devel
+ libwebp-devel libheif-devel poppler-glib-devel libwmf-devel libopenjpeg2-devel
+ libjxl-devel alsa-lib-devel cfitsio-devel python3-gobject-devel libgomp-devel
+ libunwind-devel lua51-lgi"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1 python3-gobject"
+checkdepends="xvfb-run dbus"
short_desc="GNU image manipulation program"
-conf_files="/etc/gimp/${version%%.*}.0/*"
+#conf_files="/etc/gimp/${version%%.*}.0/*"
+conf_files="/etc/gimp/${version%.*}/*"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-only"
homepage="https://www.gimp.org"
-changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
-distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
-checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+distfiles="https://download.gimp.org/gimp/v${version%.*}/gimp-${version}.tar.xz"
+checksum=8c1bb7a94ac0d4d0cde4d701d8b356387c2ecd87abbd35bbf7d222d40f6ddb6e
lib32disabled=yes
-no_generic_pkgconfig_link=yes
-pre_configure() {
- NOCONFIGURE=1 autoreconf -fi
- # don't allow configure to set DATADIRNAME=lib
- vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -Dheadless-tests=enabled"
+else
+ configure_args+=" -Dheadless-tests=disabled"
+fi
libgimp_package() {
short_desc+=" - runtime libraries"
@@ -38,13 +41,16 @@ libgimp_package() {
}
gimp-devel_package() {
- depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}"
+ depends="libgimp>=${version}_${revision} gegl-devel gtk+3-devel libgexiv2-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
- vmove usr/share/gtk-doc
- vmove usr/share/aclocal
vmove "usr/lib/*.so"
+ if [ -z "$CROSS_BUILD" ]; then
+ vmove usr/share/gir-1.0
+ vmove usr/share/vala
+ vmove usr/share/doc
+ fi
}
}
From a355dc7a05298fe67cfc41a63e759f1aaaa6aa93 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Tue, 11 Jun 2024 21:46:37 -0400
Subject: [PATCH 3/9] New package: gimp2-2.10.38
---
common/shlibs | 9 ++
srcpkgs/gimp2-devel | 1 +
srcpkgs/gimp2/INSTALL | 8 ++
srcpkgs/gimp2/patches/fix-cross.patch | 18 +++
srcpkgs/gimp2/patches/fix-segfault.patch | 169 +++++++++++++++++++++++
srcpkgs/gimp2/patches/gcc14.patch | 63 +++++++++
srcpkgs/gimp2/template | 59 ++++++++
srcpkgs/gimp2/update | 2 +
srcpkgs/libgimp2 | 1 +
9 files changed, 330 insertions(+)
create mode 120000 srcpkgs/gimp2-devel
create mode 100644 srcpkgs/gimp2/INSTALL
create mode 100644 srcpkgs/gimp2/patches/fix-cross.patch
create mode 100644 srcpkgs/gimp2/patches/fix-segfault.patch
create mode 100644 srcpkgs/gimp2/patches/gcc14.patch
create mode 100644 srcpkgs/gimp2/template
create mode 100644 srcpkgs/gimp2/update
create mode 120000 srcpkgs/libgimp2
diff --git a/common/shlibs b/common/shlibs
index 2622baf6d65c80..d7bfbc438e21d1 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -560,6 +560,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
+libgimp-2.0.so.0 libgimp2-2.10.38_1
+libgimpwidgets-2.0.so.0 libgimp2-2.10.38_1
+libgimpui-2.0.so.0 libgimp2-2.10.38_1
+libgimpbase-2.0.so.0 libgimp2-2.10.38_1
+libgimpthumb-2.0.so.0 libgimp2-2.10.38_1
+libgimpconfig-2.0.so.0 libgimp2-2.10.38_1
+libgimpmath-2.0.so.0 libgimp2-2.10.38_1
+libgimpcolor-2.0.so.0 libgimp2-2.10.38_1
+libgimpmodule-2.0.so.0 libgimp2-2.10.38_1
libgimp-3.0.so.0 libgimp-2.99.18_1
libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
libgimpui-3.0.so.0 libgimp-2.99.18_1
diff --git a/srcpkgs/gimp2-devel b/srcpkgs/gimp2-devel
new file mode 120000
index 00000000000000..cae4fa79d617de
--- /dev/null
+++ b/srcpkgs/gimp2-devel
@@ -0,0 +1 @@
+gimp2
\ No newline at end of file
diff --git a/srcpkgs/gimp2/INSTALL b/srcpkgs/gimp2/INSTALL
new file mode 100644
index 00000000000000..87064d64438f00
--- /dev/null
+++ b/srcpkgs/gimp2/INSTALL
@@ -0,0 +1,8 @@
+# workaround for https://github.com/void-linux/xbps/issues/14
+case "${ACTION}" in
+pre)
+ if [ "$UPDATE" = "yes" ]; then
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ fi
+ ;;
+esac
diff --git a/srcpkgs/gimp2/patches/fix-cross.patch b/srcpkgs/gimp2/patches/fix-cross.patch
new file mode 100644
index 00000000000000..0ffcf9b650b987
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-cross.patch
@@ -0,0 +1,18 @@
+--- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
++++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
+@@ -14,6 +14,7 @@ else
+ libm = -lm
+ endif
+
++libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
+ libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
+ libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
+ libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
+@@ -85,6 +86,7 @@ script_fu_SOURCES = \
+ scheme-wrapper.h
+
+ LDADD = \
++ $(libgimpmodule) \
+ $(libgimpui) \
+ $(libgimpwidgets) \
+ $(libgimpconfig) \
diff --git a/srcpkgs/gimp2/patches/fix-segfault.patch b/srcpkgs/gimp2/patches/fix-segfault.patch
new file mode 100644
index 00000000000000..5f1a6a6d3fe977
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-segfault.patch
@@ -0,0 +1,169 @@
+diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
+index 064f2c4..b17d82f 100644
+--- a/app/dialogs/dialogs.c
++++ b/app/dialogs/dialogs.c
+@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
+ menu_factory);
+ gimp_dialog_factory_set_singleton (factory);
+
+- for (i = 0; i < G_N_ELEMENTS (entries); i++)
++ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
++ char *name, *blurb;
++ name = entries[i].name ? gettext(entries[i].name) : NULL;
++ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
++
+ gimp_dialog_factory_register_entry (factory,
+ entries[i].identifier,
+- gettext (entries[i].name),
+- gettext (entries[i].blurb),
++ name,
++ blurb,
+ entries[i].icon_name,
+ entries[i].help_id,
+ entries[i].new_func,
+@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
+ entries[i].hideable,
+ entries[i].image_window,
+ entries[i].dockable);
++ }
+
+ global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
+ }
+diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
+index 04bd1b6..12eff51 100644
+--- a/app/widgets/gimpactiongroup.c
++++ b/app/widgets/gimpactiongroup.c
+@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_action_impl_new (entries[i].name, label, tooltip,
+@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_toggle_action_new (entries[i].name, label, tooltip,
+@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_radio_action_new (entries[i].name, label, tooltip,
+@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpEnumAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_enum_action_new (entries[i].name, label, tooltip,
+@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp2/patches/gcc14.patch b/srcpkgs/gimp2/patches/gcc14.patch
new file mode 100644
index 00000000000000..ceae92fa154c82
--- /dev/null
+++ b/srcpkgs/gimp2/patches/gcc14.patch
@@ -0,0 +1,63 @@
+From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Fri, 13 Jan 2023 13:29:07 +0100
+Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
+
+Do not call the undeclared exit function. Implicit function
+declarations are likely not going to be supported by future compilers
+by default, changing the outcome of this configure probe with
+such compilers.
+---
+ configure.ac | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 03047899841..b8718955471 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+ ]])],
+ [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
+diff --git a/configure b/configure
+index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
+--- a/configure
++++ b/configure
+@@ -28898,17 +28898,17 @@ else $as_nop
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+
+ _ACEOF
diff --git a/srcpkgs/gimp2/template b/srcpkgs/gimp2/template
new file mode 100644
index 00000000000000..6e4cd9a04cd410
--- /dev/null
+++ b/srcpkgs/gimp2/template
@@ -0,0 +1,59 @@
+# Template file for 'gimp2'
+pkgname=gimp2
+version=2.10.38
+revision=1
+build_style=gnu-configure
+configure_args="--disable-check-update --datadir=/usr/share --disable-python
+ --disable-default-binary"
+hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
+ libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
+makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
+ ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
+ libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
+ libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
+ poppler-glib-devel glib-networking libwebp-devel
+ libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+short_desc="GNU image manipulation program (version 2.x)"
+conf_files="/etc/gimp/${version%%.*}.0/*"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="GPL-3.0-only"
+homepage="https://www.gimp.org"
+changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
+distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
+checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+lib32disabled=yes
+no_generic_pkgconfig_link=yes
+
+pre_configure() {
+ NOCONFIGURE=1 autoreconf -fi
+ # don't allow configure to set DATADIRNAME=lib
+ vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
+}
+
+post_install() {
+ vsed -i -e "s/^Name.*$/& ${version%.*}/" -e "s/^Icon.*$/&-${version%.*}/" "${DESTDIR}/usr/share/applications/gimp.desktop"
+ mv "${DESTDIR}/usr/share/applications/gimp.desktop" "${DESTDIR}/usr/share/applications/gimp-${version%.*}.desktop"
+ find "${DESTDIR}/usr/share/icons/hicolor" -name gimp.png -execdir mv {} "gimp-${version%.*}.png" \;
+ vsed -i -e "s/org.gimp.GIMP/&${version%%.*}/" "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP.appdata.xml"
+ mv "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP.appdata.xml" "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP${version%%.*}.appdata.xml"
+}
+
+libgimp2_package() {
+ short_desc+=" - runtime libraries"
+ pkg_install() {
+ vmove "usr/lib/*.so.*"
+ }
+}
+
+gimp2-devel_package() {
+ depends="gegl-devel gtk+-devel lcms2-devel libgimp2>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/pkgconfig
+ vmove usr/share/gtk-doc
+ vmove usr/share/aclocal
+ vmove "usr/lib/*.so"
+ }
+}
diff --git a/srcpkgs/gimp2/update b/srcpkgs/gimp2/update
new file mode 100644
index 00000000000000..0e2a52581a8290
--- /dev/null
+++ b/srcpkgs/gimp2/update
@@ -0,0 +1,2 @@
+pkgname=gimp
+ignore="*.99.*"
diff --git a/srcpkgs/libgimp2 b/srcpkgs/libgimp2
new file mode 120000
index 00000000000000..cae4fa79d617de
--- /dev/null
+++ b/srcpkgs/libgimp2
@@ -0,0 +1 @@
+gimp2
\ No newline at end of file
From 810d3b9b6b3ebe53f59f6aaf926df17aaf073cb1 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:08 -0400
Subject: [PATCH 4/9] libjxl: rebuild against libgimp2
gimp 3 supports jxl now, and this would cause a dependency loop
---
srcpkgs/libjxl/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template
index bdf38b2432761f..6ee5975767fd9f 100644
--- a/srcpkgs/libjxl/template
+++ b/srcpkgs/libjxl/template
@@ -9,7 +9,7 @@ configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
-DJPEGXL_ENABLE_SKCMS=OFF"
hostmakedepends="tar pkg-config asciidoc"
makedepends="brotli-devel highway-devel libpng-devel giflib-devel libjpeg-turbo-devel
- libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp-devel lcms2-devel"
+ libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp2-devel lcms2-devel"
checkdepends="gtest-devel xdg-utils"
short_desc="JPEG XL image format reference implementation"
maintainer="Joshua Krämer <joshua@kraemer.link>"
From f2131e9acf4485c34a858ab2c10142a68d85248f Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:09 -0400
Subject: [PATCH 5/9] gmic: rebuild against libgimp2
---
srcpkgs/gmic/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/gmic/template b/srcpkgs/gmic/template
index 24d10147e3abad..a691c6231bb70e 100644
--- a/srcpkgs/gmic/template
+++ b/srcpkgs/gmic/template
@@ -9,10 +9,10 @@ build_style=gnu-makefile
build_helper=qmake
make_build_args="NOSTRIP=yes"
make_use_env=yes
-hostmakedepends="pkg-config gimp qt5-host-tools qt5-qmake"
+hostmakedepends="pkg-config gimp2 qt5-host-tools qt5-qmake"
makedepends="fftw-devel imath-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel lcms2-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
- gtk+-devel gimp-devel qt5-devel"
+ gtk+-devel gimp2-devel qt5-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="CECILL-2.1, CECILL-C"
@@ -33,8 +33,8 @@ post_install() {
}
gmic-gimp_package() {
- short_desc+=" - GIMP plugin"
- depends="gimp ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/gimp
}
From dae0acbb6c9caacbe99b7d25a0ea2d1dda4efde9 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:10 -0400
Subject: [PATCH 6/9] nufraw: rebuild against libgimp2
---
srcpkgs/nufraw/template | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/nufraw/template b/srcpkgs/nufraw/template
index 551f263df96d38..8748aa91afc779 100644
--- a/srcpkgs/nufraw/template
+++ b/srcpkgs/nufraw/template
@@ -1,7 +1,7 @@
# Template file for 'nufraw'
pkgname=nufraw
version=0.43.3
-revision=1
+revision=2
_ver="${version%.*}-${version##*.}"
build_style=gnu-configure
configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
@@ -9,7 +9,7 @@ configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
hostmakedepends="pkg-config automake libtool glib-devel"
# libgexiv2-devel is only here to fix build order, remove on next template
# change
-makedepends="exiv2-devel gimp-devel glib-devel gtkimageview-devel lcms2-devel
+makedepends="exiv2-devel gimp2-devel glib-devel gtkimageview-devel lcms2-devel
lensfun-devel jasper-devel libgexiv2-devel"
depends="desktop-file-utils"
short_desc="Utility to read and manipulate raw images from digital cameras"
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later"
homepage="https://sourceforge.net/projects/nufraw/"
distfiles="${SOURCEFORGE_SITE}/nufraw/nufraw-${_ver}.tar.gz"
checksum=2c7dcc1590993ec267b3112562b2433010d6f94f6acc6506c76aa29cf8c6c32c
+conflicts="dcraw>=0"
case "$XBPS_TARGET_MACHINE" in
armv[67]l* | aarch64* | riscv64*)
@@ -36,8 +37,8 @@ pre_build() {
}
nufraw-gimp_package() {
- depends="${sourcepkg}>=${version}_${revision}"
- short_desc+=" - gimp plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
pkg_install() {
vmove usr/lib/gimp
}
From ffa88b6b02c93b95cdaf856ebc208f50eb371ec1 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 7/9] xsane: rebuild against libgimp2
---
srcpkgs/xsane/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 7dde32af2b674c..67c53e94489fab 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -1,9 +1,9 @@
# Template file for 'xsane'
pkgname=xsane
version=0.999
-revision=5
+revision=6
hostmakedepends="pkg-config sane-devel gettext"
-makedepends="gtk+-devel lcms-devel sane-devel gimp-devel"
+makedepends="gtk+-devel lcms-devel sane-devel gimp2-devel"
depends="sane"
short_desc="GTK-based X11 frontend for SANE"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -36,8 +36,8 @@ do_install() {
}
xsane-gimp_package() {
- short_desc+=" - plugin for GIMP"
- depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - plugin for GIMP 2"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vbin src/xsane-gimp
vmkdir usr/lib/gimp/2.0/plug-ins
From 1fa425972bd9aa3614a44cadddca85393b3ca6ac Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 8/9] gimp-lqr-plugin: rebuild against libgimp2
---
srcpkgs/gimp-lqr-plugin/template | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gimp-lqr-plugin/template b/srcpkgs/gimp-lqr-plugin/template
index 7878f6cb795d24..33a395c67a8583 100644
--- a/srcpkgs/gimp-lqr-plugin/template
+++ b/srcpkgs/gimp-lqr-plugin/template
@@ -1,11 +1,12 @@
# Template file for 'gimp-lqr-plugin'
pkgname=gimp-lqr-plugin
version=0.7.2
-revision=2
+revision=3
build_style=gnu-configure
hostmakedepends="automake intltool pkg-config"
-makedepends="gimp-devel glib-devel gettext-devel liblqr-devel"
-short_desc="Gimp plugins for image resizing through seam carving"
+makedepends="gimp2-devel glib-devel gettext-devel liblqr-devel"
+depends="gimp2"
+short_desc="GIMP 2 plugins for image resizing through seam carving"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://liquidrescale.wikidot.com/"
From 024de78dab966554fd966dcfb1a9518e3682230f Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 03:22:14 -0400
Subject: [PATCH 9/9] resynthesizer: update to 2.0.3+2.
WIP gimp 3 port
---
srcpkgs/resynthesizer/template | 29 +++++++++--------------------
1 file changed, 9 insertions(+), 20 deletions(-)
diff --git a/srcpkgs/resynthesizer/template b/srcpkgs/resynthesizer/template
index a58b0eec995854..2b56f8f406b456 100644
--- a/srcpkgs/resynthesizer/template
+++ b/srcpkgs/resynthesizer/template
@@ -1,26 +1,15 @@
# Template file for 'resynthesizer'
pkgname=resynthesizer
-version=2.0.3+1
+version=2.0.3+2
revision=1
-_commit=701e890d1d456e215e05daa7b4a88f5d9c6c03b3
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
+_commit=dee67110c51cbc69c28435ac7485766c3eb30a94
+build_style=meson
+hostmakedepends="pkg-config"
makedepends="gimp-devel glib-devel gettext-devel"
-short_desc="Suite of gimp plugins for texture healing and synthesis"
+depends="gimp"
+short_desc="Suite of GIMP plugins for texture healing and synthesis"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
-# FIXME: when gimp 3 is available, switch back to bootchk upstream
-#homepage="https://github.com/bootchk/resynthesizer"
-#distfiles="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${version}.tar.gz"
-homepage="https://github.com/itr-tert/gimp-resynthesizer-scm"
-distfiles="https://github.com/itr-tert/gimp-resynthesizer-scm/archive/${_commit}.tar.gz"
-checksum=298286386466fbd6d2da06f8a920c6e6e313db7ca0a094a36a355978a64cefc0
-
-if [ "$CROSS_BUILD" ];then
- hostmakedepends+=" glib-devel gettext-devel"
- AUTOGEN_CONFIGURE_ARGS+=" --host=${XBPS_MACHINE%-musl} --build=${XBPS_CROSS_TRIPLET}"
-fi
-
-pre_configure() {
- ./autogen.sh ${AUTOGEN_CONFIGURE_ARGS}
-}
+homepage="https://github.com/bootchk/resynthesizer"
+distfiles="https://github.com/bootchk/resynthesizer/archive/${_commit}.tar.gz"
+checksum=a9ae689f5c10e284b0b8cab03baa05caab029fae2250bcdcc7e1d3ec6f8c367d
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PR PATCH] [Updated] GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
` (8 preceding siblings ...)
2024-10-26 4:39 ` [PR PATCH] [Updated] " classabbyamp
@ 2024-10-26 4:48 ` classabbyamp
2024-10-26 11:53 ` classabbyamp
` (6 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2024-10-26 4:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
There is an updated pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages gimp3
https://github.com/void-linux/void-packages/pull/49890
GIMP 3
WIP until at minimum the full GIMP 3 release, expected in about a month: https://gitlab.gnome.org/GNOME/gimp/-/issues/10373
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
#### Plugins
- [ ] nufraw - not (yet) compatible
- [x] resynthesizer - compatible on in-dev branch
- [ ] gmic - not (yet) compatible
- [ ] xsane
- [ ] gimp-lqr-plugin - not (yet) compatible)
- [x] libjxl - disable because gimp supports it directly now
A patch file from https://github.com/void-linux/void-packages/pull/49890.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gimp3-49890.patch --]
[-- Type: text/x-diff, Size: 42918 bytes --]
From 795ff0ab05dc65ddae2ee5fa47acf72ac23908f8 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:35 -0400
Subject: [PATCH 1/9] gegl: update to 0.4.48.
---
srcpkgs/gegl/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gegl/template b/srcpkgs/gegl/template
index 5d4b070cd703ee..f395fe359f2dd1 100644
--- a/srcpkgs/gegl/template
+++ b/srcpkgs/gegl/template
@@ -1,7 +1,7 @@
# Template file for 'gegl'
pkgname=gegl
-version=0.4.46
-revision=2
+version=0.4.48
+revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dintrospection=true -Dvapigen=enabled
@@ -18,7 +18,7 @@ license="GPL-3.0-only, LGPL-3.0-only"
homepage="https://gegl.org/"
changelog="https://gitlab.gnome.org/GNOME/gegl/-/raw/master/docs/NEWS.adoc"
distfiles="https://download.gimp.org/pub/gegl/${version%.*}/gegl-${version}.tar.xz"
-checksum=d0b3b2481bc8774c5f3d0a487611910166d18eef823a859fb91e781ab7b1e892
+checksum=418c26d94be8805d7d98f6de0c6825ca26bd74fcacb6c188da47533d9ee28247
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From 85ad84edf1b3d1b449369e7d49560fe3f280fe65 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:29 -0400
Subject: [PATCH 2/9] gimp: update to 2.99.18.
---
common/shlibs | 18 +-
srcpkgs/gimp-python | 1 -
srcpkgs/gimp/INSTALL | 2 +-
srcpkgs/gimp/INSTALL.msg | 2 +
srcpkgs/gimp/patches/fix-cross.patch | 18 --
srcpkgs/gimp/patches/fix-segfault.patch | 169 ------------------
srcpkgs/gimp/patches/gcc14.patch | 63 -------
.../gimp/patches/install-gimpchoice-h.patch | 25 +++
srcpkgs/gimp/template | 58 +++---
9 files changed, 69 insertions(+), 287 deletions(-)
delete mode 120000 srcpkgs/gimp-python
create mode 100644 srcpkgs/gimp/INSTALL.msg
delete mode 100644 srcpkgs/gimp/patches/fix-cross.patch
delete mode 100644 srcpkgs/gimp/patches/fix-segfault.patch
delete mode 100644 srcpkgs/gimp/patches/gcc14.patch
create mode 100644 srcpkgs/gimp/patches/install-gimpchoice-h.patch
diff --git a/common/shlibs b/common/shlibs
index 6d083594e55a51..2622baf6d65c80 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -560,15 +560,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
-libgimp-2.0.so.0 libgimp-2.10.0_1
-libgimpwidgets-2.0.so.0 libgimp-2.10.0_1
-libgimpui-2.0.so.0 libgimp-2.10.0_1
-libgimpbase-2.0.so.0 libgimp-2.10.0_1
-libgimpthumb-2.0.so.0 libgimp-2.10.0_1
-libgimpconfig-2.0.so.0 libgimp-2.10.0_1
-libgimpmath-2.0.so.0 libgimp-2.10.0_1
-libgimpcolor-2.0.so.0 libgimp-2.10.0_1
-libgimpmodule-2.0.so.0 libgimp-2.10.0_1
+libgimp-3.0.so.0 libgimp-2.99.18_1
+libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
+libgimpui-3.0.so.0 libgimp-2.99.18_1
+libgimpbase-3.0.so.0 libgimp-2.99.18_1
+libgimpthumb-3.0.so.0 libgimp-2.99.18_1
+libgimpconfig-3.0.so.0 libgimp-2.99.18_1
+libgimpmath-3.0.so.0 libgimp-2.99.18_1
+libgimpcolor-3.0.so.0 libgimp-2.99.18_1
+libgimpmodule-3.0.so.0 libgimp-2.99.18_1
libgmic.so.3 gmic-3.1.6_1
libcgmic.so.3 gmic-3.1.6_1
libexiv2.so.28 exiv2-0.28.1_1
diff --git a/srcpkgs/gimp-python b/srcpkgs/gimp-python
deleted file mode 120000
index 92344a4bb4a963..00000000000000
--- a/srcpkgs/gimp-python
+++ /dev/null
@@ -1 +0,0 @@
-gimp
\ No newline at end of file
diff --git a/srcpkgs/gimp/INSTALL b/srcpkgs/gimp/INSTALL
index 87064d64438f00..daeff6b33cec0f 100644
--- a/srcpkgs/gimp/INSTALL
+++ b/srcpkgs/gimp/INSTALL
@@ -2,7 +2,7 @@
case "${ACTION}" in
pre)
if [ "$UPDATE" = "yes" ]; then
- xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm -f
fi
;;
esac
diff --git a/srcpkgs/gimp/INSTALL.msg b/srcpkgs/gimp/INSTALL.msg
new file mode 100644
index 00000000000000..24e3bddd8303ba
--- /dev/null
+++ b/srcpkgs/gimp/INSTALL.msg
@@ -0,0 +1,2 @@
+GIMP 3 breaks compatibility with many plugins. If you wish to continue
+using GIMP 2.x plugins, install gimp2.
diff --git a/srcpkgs/gimp/patches/fix-cross.patch b/srcpkgs/gimp/patches/fix-cross.patch
deleted file mode 100644
index 0ffcf9b650b987..00000000000000
--- a/srcpkgs/gimp/patches/fix-cross.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
-+++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
-@@ -14,6 +14,7 @@ else
- libm = -lm
- endif
-
-+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
- libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
- libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
- libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
-@@ -85,6 +86,7 @@ script_fu_SOURCES = \
- scheme-wrapper.h
-
- LDADD = \
-+ $(libgimpmodule) \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpconfig) \
diff --git a/srcpkgs/gimp/patches/fix-segfault.patch b/srcpkgs/gimp/patches/fix-segfault.patch
deleted file mode 100644
index 5f1a6a6d3fe977..00000000000000
--- a/srcpkgs/gimp/patches/fix-segfault.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
-index 064f2c4..b17d82f 100644
---- a/app/dialogs/dialogs.c
-+++ b/app/dialogs/dialogs.c
-@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
- menu_factory);
- gimp_dialog_factory_set_singleton (factory);
-
-- for (i = 0; i < G_N_ELEMENTS (entries); i++)
-+ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
-+ char *name, *blurb;
-+ name = entries[i].name ? gettext(entries[i].name) : NULL;
-+ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
-+
- gimp_dialog_factory_register_entry (factory,
- entries[i].identifier,
-- gettext (entries[i].name),
-- gettext (entries[i].blurb),
-+ name,
-+ blurb,
- entries[i].icon_name,
- entries[i].help_id,
- entries[i].new_func,
-@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
- entries[i].hideable,
- entries[i].image_window,
- entries[i].dockable);
-+ }
-
- global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
- }
-diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
-index 04bd1b6..12eff51 100644
---- a/app/widgets/gimpactiongroup.c
-+++ b/app/widgets/gimpactiongroup.c
-@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_action_impl_new (entries[i].name, label, tooltip,
-@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_toggle_action_new (entries[i].name, label, tooltip,
-@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_radio_action_new (entries[i].name, label, tooltip,
-@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpEnumAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_enum_action_new (entries[i].name, label, tooltip,
-@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp/patches/gcc14.patch b/srcpkgs/gimp/patches/gcc14.patch
deleted file mode 100644
index ceae92fa154c82..00000000000000
--- a/srcpkgs/gimp/patches/gcc14.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Fri, 13 Jan 2023 13:29:07 +0100
-Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
-
-Do not call the undeclared exit function. Implicit function
-declarations are likely not going to be supported by future compilers
-by default, changing the outcome of this configure probe with
-such compilers.
----
- configure.ac | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 03047899841..b8718955471 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
- ]])],
- [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
-diff --git a/configure b/configure
-index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
---- a/configure
-+++ b/configure
-@@ -28898,17 +28898,17 @@ else $as_nop
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
-
- _ACEOF
diff --git a/srcpkgs/gimp/patches/install-gimpchoice-h.patch b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
new file mode 100644
index 00000000000000..533b14d397f814
--- /dev/null
+++ b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
@@ -0,0 +1,25 @@
+From 11892f1d83ffc465346dab7e2e8c6e790f555a64 Mon Sep 17 00:00:00 2001
+From: Jehan <jehan@girinstud.io>
+Date: Wed, 21 Feb 2024 11:08:23 +0100
+Subject: [PATCH] Issue #10900: install missing gimpchoice.h.
+
+Argh how this could pass without anyone noticing?!
+---
+ libgimpbase/meson.build | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libgimpbase/meson.build b/libgimpbase/meson.build
+index a77d125f39d..a2c27016b10 100644
+--- a/libgimpbase/meson.build
++++ b/libgimpbase/meson.build
+@@ -84,6 +84,7 @@ libgimpbase_headers_introspectable = files(
+ 'gimpbaseenums.h',
+ 'gimpbasetypes.h',
+ 'gimpchecks.h',
++ 'gimpchoice.h',
+ 'gimpcpuaccel.h',
+ 'gimpenv.h',
+ 'gimplimits.h',
+--
+GitLab
+
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index a50409d5ce5af1..1c892bc904c414 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -1,34 +1,37 @@
# Template file for 'gimp'
pkgname=gimp
-version=2.10.38
-revision=3
-build_style=gnu-configure
-configure_args="--disable-check-update --datadir=/usr/share --disable-python"
-hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
- libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
-makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
- ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
- libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
- libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
- poppler-glib-devel glib-networking libwebp-devel
- libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
-depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+version=2.99.18
+revision=1
+build_style=meson
+build_helper="gir qemu"
+configure_args="-Dcheck-update=no -Drevision=$revision -Denable-default-bin=enabled
+ -Dbug-report-url=https://github.com/void-linux/void-packages/issues/new/choose"
+hostmakedepends="pkg-config xdg-utils perl libxslt gjs LuaJIT desktop-file-utils
+ AppStream gettext gi-docgen gobject-introspection
+ yelp-tools librsvg-devel glib-devel"
+makedepends="babl-devel gtk+3-devel gegl-devel libgexiv2-devel libgirepository-devel
+ libmypaint-devel mypaint-brushes1 librsvg-devel glib-networking appstream-glib-devel
+ libXmu-devel ghostscript-devel libmng-devel aalib-devel libXpm-devel libopenexr-devel
+ libwebp-devel libheif-devel poppler-glib-devel libwmf-devel libopenjpeg2-devel
+ libjxl-devel alsa-lib-devel cfitsio-devel python3-gobject-devel libgomp-devel
+ libunwind-devel lua51-lgi"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1 python3-gobject"
+checkdepends="xvfb-run dbus"
short_desc="GNU image manipulation program"
-conf_files="/etc/gimp/${version%%.*}.0/*"
+#conf_files="/etc/gimp/${version%%.*}.0/*"
+conf_files="/etc/gimp/${version%.*}/*"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-only"
homepage="https://www.gimp.org"
-changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
-distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
-checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+distfiles="https://download.gimp.org/gimp/v${version%.*}/gimp-${version}.tar.xz"
+checksum=8c1bb7a94ac0d4d0cde4d701d8b356387c2ecd87abbd35bbf7d222d40f6ddb6e
lib32disabled=yes
-no_generic_pkgconfig_link=yes
-pre_configure() {
- NOCONFIGURE=1 autoreconf -fi
- # don't allow configure to set DATADIRNAME=lib
- vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -Dheadless-tests=enabled"
+else
+ configure_args+=" -Dheadless-tests=disabled"
+fi
libgimp_package() {
short_desc+=" - runtime libraries"
@@ -38,13 +41,16 @@ libgimp_package() {
}
gimp-devel_package() {
- depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}"
+ depends="libgimp>=${version}_${revision} gegl-devel gtk+3-devel libgexiv2-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
- vmove usr/share/gtk-doc
- vmove usr/share/aclocal
vmove "usr/lib/*.so"
+ if [ -z "$CROSS_BUILD" ]; then
+ vmove usr/share/gir-1.0
+ vmove usr/share/vala
+ vmove usr/share/doc
+ fi
}
}
From a355dc7a05298fe67cfc41a63e759f1aaaa6aa93 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Tue, 11 Jun 2024 21:46:37 -0400
Subject: [PATCH 3/9] New package: gimp2-2.10.38
---
common/shlibs | 9 ++
srcpkgs/gimp2-devel | 1 +
srcpkgs/gimp2/INSTALL | 8 ++
srcpkgs/gimp2/patches/fix-cross.patch | 18 +++
srcpkgs/gimp2/patches/fix-segfault.patch | 169 +++++++++++++++++++++++
srcpkgs/gimp2/patches/gcc14.patch | 63 +++++++++
srcpkgs/gimp2/template | 59 ++++++++
srcpkgs/gimp2/update | 2 +
srcpkgs/libgimp2 | 1 +
9 files changed, 330 insertions(+)
create mode 120000 srcpkgs/gimp2-devel
create mode 100644 srcpkgs/gimp2/INSTALL
create mode 100644 srcpkgs/gimp2/patches/fix-cross.patch
create mode 100644 srcpkgs/gimp2/patches/fix-segfault.patch
create mode 100644 srcpkgs/gimp2/patches/gcc14.patch
create mode 100644 srcpkgs/gimp2/template
create mode 100644 srcpkgs/gimp2/update
create mode 120000 srcpkgs/libgimp2
diff --git a/common/shlibs b/common/shlibs
index 2622baf6d65c80..d7bfbc438e21d1 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -560,6 +560,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
+libgimp-2.0.so.0 libgimp2-2.10.38_1
+libgimpwidgets-2.0.so.0 libgimp2-2.10.38_1
+libgimpui-2.0.so.0 libgimp2-2.10.38_1
+libgimpbase-2.0.so.0 libgimp2-2.10.38_1
+libgimpthumb-2.0.so.0 libgimp2-2.10.38_1
+libgimpconfig-2.0.so.0 libgimp2-2.10.38_1
+libgimpmath-2.0.so.0 libgimp2-2.10.38_1
+libgimpcolor-2.0.so.0 libgimp2-2.10.38_1
+libgimpmodule-2.0.so.0 libgimp2-2.10.38_1
libgimp-3.0.so.0 libgimp-2.99.18_1
libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
libgimpui-3.0.so.0 libgimp-2.99.18_1
diff --git a/srcpkgs/gimp2-devel b/srcpkgs/gimp2-devel
new file mode 120000
index 00000000000000..cae4fa79d617de
--- /dev/null
+++ b/srcpkgs/gimp2-devel
@@ -0,0 +1 @@
+gimp2
\ No newline at end of file
diff --git a/srcpkgs/gimp2/INSTALL b/srcpkgs/gimp2/INSTALL
new file mode 100644
index 00000000000000..87064d64438f00
--- /dev/null
+++ b/srcpkgs/gimp2/INSTALL
@@ -0,0 +1,8 @@
+# workaround for https://github.com/void-linux/xbps/issues/14
+case "${ACTION}" in
+pre)
+ if [ "$UPDATE" = "yes" ]; then
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ fi
+ ;;
+esac
diff --git a/srcpkgs/gimp2/patches/fix-cross.patch b/srcpkgs/gimp2/patches/fix-cross.patch
new file mode 100644
index 00000000000000..0ffcf9b650b987
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-cross.patch
@@ -0,0 +1,18 @@
+--- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
++++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
+@@ -14,6 +14,7 @@ else
+ libm = -lm
+ endif
+
++libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
+ libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
+ libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
+ libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
+@@ -85,6 +86,7 @@ script_fu_SOURCES = \
+ scheme-wrapper.h
+
+ LDADD = \
++ $(libgimpmodule) \
+ $(libgimpui) \
+ $(libgimpwidgets) \
+ $(libgimpconfig) \
diff --git a/srcpkgs/gimp2/patches/fix-segfault.patch b/srcpkgs/gimp2/patches/fix-segfault.patch
new file mode 100644
index 00000000000000..5f1a6a6d3fe977
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-segfault.patch
@@ -0,0 +1,169 @@
+diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
+index 064f2c4..b17d82f 100644
+--- a/app/dialogs/dialogs.c
++++ b/app/dialogs/dialogs.c
+@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
+ menu_factory);
+ gimp_dialog_factory_set_singleton (factory);
+
+- for (i = 0; i < G_N_ELEMENTS (entries); i++)
++ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
++ char *name, *blurb;
++ name = entries[i].name ? gettext(entries[i].name) : NULL;
++ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
++
+ gimp_dialog_factory_register_entry (factory,
+ entries[i].identifier,
+- gettext (entries[i].name),
+- gettext (entries[i].blurb),
++ name,
++ blurb,
+ entries[i].icon_name,
+ entries[i].help_id,
+ entries[i].new_func,
+@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
+ entries[i].hideable,
+ entries[i].image_window,
+ entries[i].dockable);
++ }
+
+ global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
+ }
+diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
+index 04bd1b6..12eff51 100644
+--- a/app/widgets/gimpactiongroup.c
++++ b/app/widgets/gimpactiongroup.c
+@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_action_impl_new (entries[i].name, label, tooltip,
+@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_toggle_action_new (entries[i].name, label, tooltip,
+@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_radio_action_new (entries[i].name, label, tooltip,
+@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpEnumAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_enum_action_new (entries[i].name, label, tooltip,
+@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp2/patches/gcc14.patch b/srcpkgs/gimp2/patches/gcc14.patch
new file mode 100644
index 00000000000000..ceae92fa154c82
--- /dev/null
+++ b/srcpkgs/gimp2/patches/gcc14.patch
@@ -0,0 +1,63 @@
+From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Fri, 13 Jan 2023 13:29:07 +0100
+Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
+
+Do not call the undeclared exit function. Implicit function
+declarations are likely not going to be supported by future compilers
+by default, changing the outcome of this configure probe with
+such compilers.
+---
+ configure.ac | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 03047899841..b8718955471 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+ ]])],
+ [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
+diff --git a/configure b/configure
+index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
+--- a/configure
++++ b/configure
+@@ -28898,17 +28898,17 @@ else $as_nop
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+
+ _ACEOF
diff --git a/srcpkgs/gimp2/template b/srcpkgs/gimp2/template
new file mode 100644
index 00000000000000..6e4cd9a04cd410
--- /dev/null
+++ b/srcpkgs/gimp2/template
@@ -0,0 +1,59 @@
+# Template file for 'gimp2'
+pkgname=gimp2
+version=2.10.38
+revision=1
+build_style=gnu-configure
+configure_args="--disable-check-update --datadir=/usr/share --disable-python
+ --disable-default-binary"
+hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
+ libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
+makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
+ ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
+ libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
+ libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
+ poppler-glib-devel glib-networking libwebp-devel
+ libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+short_desc="GNU image manipulation program (version 2.x)"
+conf_files="/etc/gimp/${version%%.*}.0/*"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="GPL-3.0-only"
+homepage="https://www.gimp.org"
+changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
+distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
+checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+lib32disabled=yes
+no_generic_pkgconfig_link=yes
+
+pre_configure() {
+ NOCONFIGURE=1 autoreconf -fi
+ # don't allow configure to set DATADIRNAME=lib
+ vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
+}
+
+post_install() {
+ vsed -i -e "s/^Name.*$/& ${version%.*}/" -e "s/^Icon.*$/&-${version%.*}/" "${DESTDIR}/usr/share/applications/gimp.desktop"
+ mv "${DESTDIR}/usr/share/applications/gimp.desktop" "${DESTDIR}/usr/share/applications/gimp-${version%.*}.desktop"
+ find "${DESTDIR}/usr/share/icons/hicolor" -name gimp.png -execdir mv {} "gimp-${version%.*}.png" \;
+ vsed -i -e "s/org.gimp.GIMP/&${version%%.*}/" "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP.appdata.xml"
+ mv "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP.appdata.xml" "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP${version%%.*}.appdata.xml"
+}
+
+libgimp2_package() {
+ short_desc+=" - runtime libraries"
+ pkg_install() {
+ vmove "usr/lib/*.so.*"
+ }
+}
+
+gimp2-devel_package() {
+ depends="gegl-devel gtk+-devel lcms2-devel libgimp2>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/pkgconfig
+ vmove usr/share/gtk-doc
+ vmove usr/share/aclocal
+ vmove "usr/lib/*.so"
+ }
+}
diff --git a/srcpkgs/gimp2/update b/srcpkgs/gimp2/update
new file mode 100644
index 00000000000000..0e2a52581a8290
--- /dev/null
+++ b/srcpkgs/gimp2/update
@@ -0,0 +1,2 @@
+pkgname=gimp
+ignore="*.99.*"
diff --git a/srcpkgs/libgimp2 b/srcpkgs/libgimp2
new file mode 120000
index 00000000000000..cae4fa79d617de
--- /dev/null
+++ b/srcpkgs/libgimp2
@@ -0,0 +1 @@
+gimp2
\ No newline at end of file
From 86f9314f4cacfc4685f2be94f6b0089022a106a6 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:08 -0400
Subject: [PATCH 4/9] libjxl: rebuild against libgimp2
gimp 3 supports jxl now, and this would cause a dependency loop
---
srcpkgs/libjxl/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template
index bdf38b2432761f..3d054b570a7662 100644
--- a/srcpkgs/libjxl/template
+++ b/srcpkgs/libjxl/template
@@ -1,7 +1,7 @@
# Template file for 'libjxl'
pkgname=libjxl
version=0.10.3
-revision=2
+revision=3
_testdata_hash=ff8d743aaba05b3014f17e5475e576242fa979fc
build_style=cmake
configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
@@ -9,7 +9,7 @@ configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
-DJPEGXL_ENABLE_SKCMS=OFF"
hostmakedepends="tar pkg-config asciidoc"
makedepends="brotli-devel highway-devel libpng-devel giflib-devel libjpeg-turbo-devel
- libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp-devel lcms2-devel"
+ libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp2-devel lcms2-devel"
checkdepends="gtest-devel xdg-utils"
short_desc="JPEG XL image format reference implementation"
maintainer="Joshua Krämer <joshua@kraemer.link>"
From 7de3e3cf80ae73619f2edf12bb3773d6577decef Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:09 -0400
Subject: [PATCH 5/9] gmic: rebuild against libgimp2
---
srcpkgs/gmic/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/gmic/template b/srcpkgs/gmic/template
index 24d10147e3abad..a691c6231bb70e 100644
--- a/srcpkgs/gmic/template
+++ b/srcpkgs/gmic/template
@@ -9,10 +9,10 @@ build_style=gnu-makefile
build_helper=qmake
make_build_args="NOSTRIP=yes"
make_use_env=yes
-hostmakedepends="pkg-config gimp qt5-host-tools qt5-qmake"
+hostmakedepends="pkg-config gimp2 qt5-host-tools qt5-qmake"
makedepends="fftw-devel imath-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel lcms2-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
- gtk+-devel gimp-devel qt5-devel"
+ gtk+-devel gimp2-devel qt5-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="CECILL-2.1, CECILL-C"
@@ -33,8 +33,8 @@ post_install() {
}
gmic-gimp_package() {
- short_desc+=" - GIMP plugin"
- depends="gimp ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/gimp
}
From 35eb2067a45d54323a2f5da912fcf0aee51706e5 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:10 -0400
Subject: [PATCH 6/9] nufraw: rebuild against libgimp2
---
srcpkgs/nufraw/template | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/nufraw/template b/srcpkgs/nufraw/template
index 551f263df96d38..8748aa91afc779 100644
--- a/srcpkgs/nufraw/template
+++ b/srcpkgs/nufraw/template
@@ -1,7 +1,7 @@
# Template file for 'nufraw'
pkgname=nufraw
version=0.43.3
-revision=1
+revision=2
_ver="${version%.*}-${version##*.}"
build_style=gnu-configure
configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
@@ -9,7 +9,7 @@ configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
hostmakedepends="pkg-config automake libtool glib-devel"
# libgexiv2-devel is only here to fix build order, remove on next template
# change
-makedepends="exiv2-devel gimp-devel glib-devel gtkimageview-devel lcms2-devel
+makedepends="exiv2-devel gimp2-devel glib-devel gtkimageview-devel lcms2-devel
lensfun-devel jasper-devel libgexiv2-devel"
depends="desktop-file-utils"
short_desc="Utility to read and manipulate raw images from digital cameras"
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later"
homepage="https://sourceforge.net/projects/nufraw/"
distfiles="${SOURCEFORGE_SITE}/nufraw/nufraw-${_ver}.tar.gz"
checksum=2c7dcc1590993ec267b3112562b2433010d6f94f6acc6506c76aa29cf8c6c32c
+conflicts="dcraw>=0"
case "$XBPS_TARGET_MACHINE" in
armv[67]l* | aarch64* | riscv64*)
@@ -36,8 +37,8 @@ pre_build() {
}
nufraw-gimp_package() {
- depends="${sourcepkg}>=${version}_${revision}"
- short_desc+=" - gimp plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
pkg_install() {
vmove usr/lib/gimp
}
From a0d66afe2e85b0567b3478f5ba6dd77b950d4fa5 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 7/9] xsane: rebuild against libgimp2
---
srcpkgs/xsane/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 7dde32af2b674c..67c53e94489fab 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -1,9 +1,9 @@
# Template file for 'xsane'
pkgname=xsane
version=0.999
-revision=5
+revision=6
hostmakedepends="pkg-config sane-devel gettext"
-makedepends="gtk+-devel lcms-devel sane-devel gimp-devel"
+makedepends="gtk+-devel lcms-devel sane-devel gimp2-devel"
depends="sane"
short_desc="GTK-based X11 frontend for SANE"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -36,8 +36,8 @@ do_install() {
}
xsane-gimp_package() {
- short_desc+=" - plugin for GIMP"
- depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - plugin for GIMP 2"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vbin src/xsane-gimp
vmkdir usr/lib/gimp/2.0/plug-ins
From 3c36138ee32fa7107861a7d1ce4c83ee05357289 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 8/9] gimp-lqr-plugin: rebuild against libgimp2
---
srcpkgs/gimp-lqr-plugin/template | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gimp-lqr-plugin/template b/srcpkgs/gimp-lqr-plugin/template
index 7878f6cb795d24..33a395c67a8583 100644
--- a/srcpkgs/gimp-lqr-plugin/template
+++ b/srcpkgs/gimp-lqr-plugin/template
@@ -1,11 +1,12 @@
# Template file for 'gimp-lqr-plugin'
pkgname=gimp-lqr-plugin
version=0.7.2
-revision=2
+revision=3
build_style=gnu-configure
hostmakedepends="automake intltool pkg-config"
-makedepends="gimp-devel glib-devel gettext-devel liblqr-devel"
-short_desc="Gimp plugins for image resizing through seam carving"
+makedepends="gimp2-devel glib-devel gettext-devel liblqr-devel"
+depends="gimp2"
+short_desc="GIMP 2 plugins for image resizing through seam carving"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://liquidrescale.wikidot.com/"
From a21e28c72a0262be3260ffd51b41c82dba348fb2 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 03:22:14 -0400
Subject: [PATCH 9/9] resynthesizer: update to 2.0.3+2.
WIP gimp 3 port
---
srcpkgs/resynthesizer/template | 29 +++++++++--------------------
1 file changed, 9 insertions(+), 20 deletions(-)
diff --git a/srcpkgs/resynthesizer/template b/srcpkgs/resynthesizer/template
index a58b0eec995854..2b56f8f406b456 100644
--- a/srcpkgs/resynthesizer/template
+++ b/srcpkgs/resynthesizer/template
@@ -1,26 +1,15 @@
# Template file for 'resynthesizer'
pkgname=resynthesizer
-version=2.0.3+1
+version=2.0.3+2
revision=1
-_commit=701e890d1d456e215e05daa7b4a88f5d9c6c03b3
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
+_commit=dee67110c51cbc69c28435ac7485766c3eb30a94
+build_style=meson
+hostmakedepends="pkg-config"
makedepends="gimp-devel glib-devel gettext-devel"
-short_desc="Suite of gimp plugins for texture healing and synthesis"
+depends="gimp"
+short_desc="Suite of GIMP plugins for texture healing and synthesis"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
-# FIXME: when gimp 3 is available, switch back to bootchk upstream
-#homepage="https://github.com/bootchk/resynthesizer"
-#distfiles="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${version}.tar.gz"
-homepage="https://github.com/itr-tert/gimp-resynthesizer-scm"
-distfiles="https://github.com/itr-tert/gimp-resynthesizer-scm/archive/${_commit}.tar.gz"
-checksum=298286386466fbd6d2da06f8a920c6e6e313db7ca0a094a36a355978a64cefc0
-
-if [ "$CROSS_BUILD" ];then
- hostmakedepends+=" glib-devel gettext-devel"
- AUTOGEN_CONFIGURE_ARGS+=" --host=${XBPS_MACHINE%-musl} --build=${XBPS_CROSS_TRIPLET}"
-fi
-
-pre_configure() {
- ./autogen.sh ${AUTOGEN_CONFIGURE_ARGS}
-}
+homepage="https://github.com/bootchk/resynthesizer"
+distfiles="https://github.com/bootchk/resynthesizer/archive/${_commit}.tar.gz"
+checksum=a9ae689f5c10e284b0b8cab03baa05caab029fae2250bcdcc7e1d3ec6f8c367d
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PR PATCH] [Updated] GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
` (9 preceding siblings ...)
2024-10-26 4:48 ` classabbyamp
@ 2024-10-26 11:53 ` classabbyamp
2024-11-07 20:54 ` classabbyamp
` (5 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2024-10-26 11:53 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
There is an updated pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages gimp3
https://github.com/void-linux/void-packages/pull/49890
GIMP 3
WIP until at minimum the full GIMP 3 release, expected in about a month: https://gitlab.gnome.org/GNOME/gimp/-/issues/10373
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
#### Plugins
- [ ] nufraw - not (yet) compatible
- [x] resynthesizer - compatible on in-dev branch
- [ ] gmic - not (yet) compatible
- [ ] xsane
- [ ] gimp-lqr-plugin - not (yet) compatible)
- [x] libjxl - disable because gimp supports it directly now
A patch file from https://github.com/void-linux/void-packages/pull/49890.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gimp3-49890.patch --]
[-- Type: text/x-diff, Size: 44108 bytes --]
From 795ff0ab05dc65ddae2ee5fa47acf72ac23908f8 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:35 -0400
Subject: [PATCH 1/9] gegl: update to 0.4.48.
---
srcpkgs/gegl/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gegl/template b/srcpkgs/gegl/template
index 5d4b070cd703ee..f395fe359f2dd1 100644
--- a/srcpkgs/gegl/template
+++ b/srcpkgs/gegl/template
@@ -1,7 +1,7 @@
# Template file for 'gegl'
pkgname=gegl
-version=0.4.46
-revision=2
+version=0.4.48
+revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dintrospection=true -Dvapigen=enabled
@@ -18,7 +18,7 @@ license="GPL-3.0-only, LGPL-3.0-only"
homepage="https://gegl.org/"
changelog="https://gitlab.gnome.org/GNOME/gegl/-/raw/master/docs/NEWS.adoc"
distfiles="https://download.gimp.org/pub/gegl/${version%.*}/gegl-${version}.tar.xz"
-checksum=d0b3b2481bc8774c5f3d0a487611910166d18eef823a859fb91e781ab7b1e892
+checksum=418c26d94be8805d7d98f6de0c6825ca26bd74fcacb6c188da47533d9ee28247
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From ddf9f218c8ec09e17c24898d3babd1bf4e26296f Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:29 -0400
Subject: [PATCH 2/9] gimp: update to 2.99.18.
---
common/shlibs | 18 +-
srcpkgs/gimp-python | 1 -
srcpkgs/gimp/INSTALL | 2 +-
srcpkgs/gimp/INSTALL.msg | 2 +
srcpkgs/gimp/patches/fix-cross.patch | 18 --
srcpkgs/gimp/patches/fix-segfault.patch | 169 ------------------
srcpkgs/gimp/patches/gcc14.patch | 63 -------
.../gimp/patches/install-gimpchoice-h.patch | 25 +++
.../gimp/patches/libheif-1.18-compat.patch | 20 ---
srcpkgs/gimp/template | 58 +++---
10 files changed, 69 insertions(+), 307 deletions(-)
delete mode 120000 srcpkgs/gimp-python
create mode 100644 srcpkgs/gimp/INSTALL.msg
delete mode 100644 srcpkgs/gimp/patches/fix-cross.patch
delete mode 100644 srcpkgs/gimp/patches/fix-segfault.patch
delete mode 100644 srcpkgs/gimp/patches/gcc14.patch
create mode 100644 srcpkgs/gimp/patches/install-gimpchoice-h.patch
delete mode 100644 srcpkgs/gimp/patches/libheif-1.18-compat.patch
diff --git a/common/shlibs b/common/shlibs
index 6d083594e55a51..2622baf6d65c80 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -560,15 +560,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
-libgimp-2.0.so.0 libgimp-2.10.0_1
-libgimpwidgets-2.0.so.0 libgimp-2.10.0_1
-libgimpui-2.0.so.0 libgimp-2.10.0_1
-libgimpbase-2.0.so.0 libgimp-2.10.0_1
-libgimpthumb-2.0.so.0 libgimp-2.10.0_1
-libgimpconfig-2.0.so.0 libgimp-2.10.0_1
-libgimpmath-2.0.so.0 libgimp-2.10.0_1
-libgimpcolor-2.0.so.0 libgimp-2.10.0_1
-libgimpmodule-2.0.so.0 libgimp-2.10.0_1
+libgimp-3.0.so.0 libgimp-2.99.18_1
+libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
+libgimpui-3.0.so.0 libgimp-2.99.18_1
+libgimpbase-3.0.so.0 libgimp-2.99.18_1
+libgimpthumb-3.0.so.0 libgimp-2.99.18_1
+libgimpconfig-3.0.so.0 libgimp-2.99.18_1
+libgimpmath-3.0.so.0 libgimp-2.99.18_1
+libgimpcolor-3.0.so.0 libgimp-2.99.18_1
+libgimpmodule-3.0.so.0 libgimp-2.99.18_1
libgmic.so.3 gmic-3.1.6_1
libcgmic.so.3 gmic-3.1.6_1
libexiv2.so.28 exiv2-0.28.1_1
diff --git a/srcpkgs/gimp-python b/srcpkgs/gimp-python
deleted file mode 120000
index 92344a4bb4a963..00000000000000
--- a/srcpkgs/gimp-python
+++ /dev/null
@@ -1 +0,0 @@
-gimp
\ No newline at end of file
diff --git a/srcpkgs/gimp/INSTALL b/srcpkgs/gimp/INSTALL
index 87064d64438f00..daeff6b33cec0f 100644
--- a/srcpkgs/gimp/INSTALL
+++ b/srcpkgs/gimp/INSTALL
@@ -2,7 +2,7 @@
case "${ACTION}" in
pre)
if [ "$UPDATE" = "yes" ]; then
- xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm -f
fi
;;
esac
diff --git a/srcpkgs/gimp/INSTALL.msg b/srcpkgs/gimp/INSTALL.msg
new file mode 100644
index 00000000000000..24e3bddd8303ba
--- /dev/null
+++ b/srcpkgs/gimp/INSTALL.msg
@@ -0,0 +1,2 @@
+GIMP 3 breaks compatibility with many plugins. If you wish to continue
+using GIMP 2.x plugins, install gimp2.
diff --git a/srcpkgs/gimp/patches/fix-cross.patch b/srcpkgs/gimp/patches/fix-cross.patch
deleted file mode 100644
index 0ffcf9b650b987..00000000000000
--- a/srcpkgs/gimp/patches/fix-cross.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
-+++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
-@@ -14,6 +14,7 @@ else
- libm = -lm
- endif
-
-+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
- libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
- libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
- libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
-@@ -85,6 +86,7 @@ script_fu_SOURCES = \
- scheme-wrapper.h
-
- LDADD = \
-+ $(libgimpmodule) \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpconfig) \
diff --git a/srcpkgs/gimp/patches/fix-segfault.patch b/srcpkgs/gimp/patches/fix-segfault.patch
deleted file mode 100644
index 5f1a6a6d3fe977..00000000000000
--- a/srcpkgs/gimp/patches/fix-segfault.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
-index 064f2c4..b17d82f 100644
---- a/app/dialogs/dialogs.c
-+++ b/app/dialogs/dialogs.c
-@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
- menu_factory);
- gimp_dialog_factory_set_singleton (factory);
-
-- for (i = 0; i < G_N_ELEMENTS (entries); i++)
-+ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
-+ char *name, *blurb;
-+ name = entries[i].name ? gettext(entries[i].name) : NULL;
-+ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
-+
- gimp_dialog_factory_register_entry (factory,
- entries[i].identifier,
-- gettext (entries[i].name),
-- gettext (entries[i].blurb),
-+ name,
-+ blurb,
- entries[i].icon_name,
- entries[i].help_id,
- entries[i].new_func,
-@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
- entries[i].hideable,
- entries[i].image_window,
- entries[i].dockable);
-+ }
-
- global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
- }
-diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
-index 04bd1b6..12eff51 100644
---- a/app/widgets/gimpactiongroup.c
-+++ b/app/widgets/gimpactiongroup.c
-@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_action_impl_new (entries[i].name, label, tooltip,
-@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_toggle_action_new (entries[i].name, label, tooltip,
-@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_radio_action_new (entries[i].name, label, tooltip,
-@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpEnumAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_enum_action_new (entries[i].name, label, tooltip,
-@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp/patches/gcc14.patch b/srcpkgs/gimp/patches/gcc14.patch
deleted file mode 100644
index ceae92fa154c82..00000000000000
--- a/srcpkgs/gimp/patches/gcc14.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Fri, 13 Jan 2023 13:29:07 +0100
-Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
-
-Do not call the undeclared exit function. Implicit function
-declarations are likely not going to be supported by future compilers
-by default, changing the outcome of this configure probe with
-such compilers.
----
- configure.ac | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 03047899841..b8718955471 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
- ]])],
- [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
-diff --git a/configure b/configure
-index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
---- a/configure
-+++ b/configure
-@@ -28898,17 +28898,17 @@ else $as_nop
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
-
- _ACEOF
diff --git a/srcpkgs/gimp/patches/install-gimpchoice-h.patch b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
new file mode 100644
index 00000000000000..533b14d397f814
--- /dev/null
+++ b/srcpkgs/gimp/patches/install-gimpchoice-h.patch
@@ -0,0 +1,25 @@
+From 11892f1d83ffc465346dab7e2e8c6e790f555a64 Mon Sep 17 00:00:00 2001
+From: Jehan <jehan@girinstud.io>
+Date: Wed, 21 Feb 2024 11:08:23 +0100
+Subject: [PATCH] Issue #10900: install missing gimpchoice.h.
+
+Argh how this could pass without anyone noticing?!
+---
+ libgimpbase/meson.build | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libgimpbase/meson.build b/libgimpbase/meson.build
+index a77d125f39d..a2c27016b10 100644
+--- a/libgimpbase/meson.build
++++ b/libgimpbase/meson.build
+@@ -84,6 +84,7 @@ libgimpbase_headers_introspectable = files(
+ 'gimpbaseenums.h',
+ 'gimpbasetypes.h',
+ 'gimpchecks.h',
++ 'gimpchoice.h',
+ 'gimpcpuaccel.h',
+ 'gimpenv.h',
+ 'gimplimits.h',
+--
+GitLab
+
diff --git a/srcpkgs/gimp/patches/libheif-1.18-compat.patch b/srcpkgs/gimp/patches/libheif-1.18-compat.patch
deleted file mode 100644
index e714d25f2bab6b..00000000000000
--- a/srcpkgs/gimp/patches/libheif-1.18-compat.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/configure.ac 2024-08-29 18:28:19.457012043 -0500
-+++ b/configure.ac 2024-08-29 18:28:29.154953488 -0500
-@@ -1843,13 +1843,13 @@
- can_import_avif=no
- can_export_avif=no
- if test "x$have_libheif" = xyes; then
-- can_import_heic=`$PKG_CONFIG --variable=builtin_h265_decoder libheif`
-- can_export_heic=`$PKG_CONFIG --variable=builtin_h265_encoder libheif`
-+ can_import_heic=yes
-+ can_export_heic=yes
- if test "x$can_import_heic" = xyes; then
- MIME_TYPES="$MIME_TYPES;image/heif;image/heic"
- fi
-- can_import_avif=`$PKG_CONFIG --variable=builtin_avif_decoder libheif`
-- can_export_avif=`$PKG_CONFIG --variable=builtin_avif_encoder libheif`
-+ can_import_avif=yes
-+ can_export_avif=yes
- if test "x$can_import_avif" = xyes; then
- MIME_TYPES="$MIME_TYPES;image/avif"
- fi
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index a50409d5ce5af1..1c892bc904c414 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -1,34 +1,37 @@
# Template file for 'gimp'
pkgname=gimp
-version=2.10.38
-revision=3
-build_style=gnu-configure
-configure_args="--disable-check-update --datadir=/usr/share --disable-python"
-hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
- libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
-makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
- ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
- libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
- libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
- poppler-glib-devel glib-networking libwebp-devel
- libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
-depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+version=2.99.18
+revision=1
+build_style=meson
+build_helper="gir qemu"
+configure_args="-Dcheck-update=no -Drevision=$revision -Denable-default-bin=enabled
+ -Dbug-report-url=https://github.com/void-linux/void-packages/issues/new/choose"
+hostmakedepends="pkg-config xdg-utils perl libxslt gjs LuaJIT desktop-file-utils
+ AppStream gettext gi-docgen gobject-introspection
+ yelp-tools librsvg-devel glib-devel"
+makedepends="babl-devel gtk+3-devel gegl-devel libgexiv2-devel libgirepository-devel
+ libmypaint-devel mypaint-brushes1 librsvg-devel glib-networking appstream-glib-devel
+ libXmu-devel ghostscript-devel libmng-devel aalib-devel libXpm-devel libopenexr-devel
+ libwebp-devel libheif-devel poppler-glib-devel libwmf-devel libopenjpeg2-devel
+ libjxl-devel alsa-lib-devel cfitsio-devel python3-gobject-devel libgomp-devel
+ libunwind-devel lua51-lgi"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1 python3-gobject"
+checkdepends="xvfb-run dbus"
short_desc="GNU image manipulation program"
-conf_files="/etc/gimp/${version%%.*}.0/*"
+#conf_files="/etc/gimp/${version%%.*}.0/*"
+conf_files="/etc/gimp/${version%.*}/*"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-only"
homepage="https://www.gimp.org"
-changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
-distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
-checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+distfiles="https://download.gimp.org/gimp/v${version%.*}/gimp-${version}.tar.xz"
+checksum=8c1bb7a94ac0d4d0cde4d701d8b356387c2ecd87abbd35bbf7d222d40f6ddb6e
lib32disabled=yes
-no_generic_pkgconfig_link=yes
-pre_configure() {
- NOCONFIGURE=1 autoreconf -fi
- # don't allow configure to set DATADIRNAME=lib
- vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -Dheadless-tests=enabled"
+else
+ configure_args+=" -Dheadless-tests=disabled"
+fi
libgimp_package() {
short_desc+=" - runtime libraries"
@@ -38,13 +41,16 @@ libgimp_package() {
}
gimp-devel_package() {
- depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}"
+ depends="libgimp>=${version}_${revision} gegl-devel gtk+3-devel libgexiv2-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
- vmove usr/share/gtk-doc
- vmove usr/share/aclocal
vmove "usr/lib/*.so"
+ if [ -z "$CROSS_BUILD" ]; then
+ vmove usr/share/gir-1.0
+ vmove usr/share/vala
+ vmove usr/share/doc
+ fi
}
}
From 1cf792f2b670062008d23b4178526fa2c6289458 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Tue, 11 Jun 2024 21:46:37 -0400
Subject: [PATCH 3/9] New package: gimp2-2.10.38
---
common/shlibs | 9 ++
srcpkgs/gimp2-devel | 1 +
srcpkgs/gimp2/INSTALL | 8 ++
srcpkgs/gimp2/patches/fix-cross.patch | 18 +++
srcpkgs/gimp2/patches/fix-segfault.patch | 169 +++++++++++++++++++++++
srcpkgs/gimp2/patches/gcc14.patch | 63 +++++++++
srcpkgs/gimp2/template | 59 ++++++++
srcpkgs/gimp2/update | 2 +
srcpkgs/libgimp2 | 1 +
9 files changed, 330 insertions(+)
create mode 120000 srcpkgs/gimp2-devel
create mode 100644 srcpkgs/gimp2/INSTALL
create mode 100644 srcpkgs/gimp2/patches/fix-cross.patch
create mode 100644 srcpkgs/gimp2/patches/fix-segfault.patch
create mode 100644 srcpkgs/gimp2/patches/gcc14.patch
create mode 100644 srcpkgs/gimp2/template
create mode 100644 srcpkgs/gimp2/update
create mode 120000 srcpkgs/libgimp2
diff --git a/common/shlibs b/common/shlibs
index 2622baf6d65c80..d7bfbc438e21d1 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -560,6 +560,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
+libgimp-2.0.so.0 libgimp2-2.10.38_1
+libgimpwidgets-2.0.so.0 libgimp2-2.10.38_1
+libgimpui-2.0.so.0 libgimp2-2.10.38_1
+libgimpbase-2.0.so.0 libgimp2-2.10.38_1
+libgimpthumb-2.0.so.0 libgimp2-2.10.38_1
+libgimpconfig-2.0.so.0 libgimp2-2.10.38_1
+libgimpmath-2.0.so.0 libgimp2-2.10.38_1
+libgimpcolor-2.0.so.0 libgimp2-2.10.38_1
+libgimpmodule-2.0.so.0 libgimp2-2.10.38_1
libgimp-3.0.so.0 libgimp-2.99.18_1
libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
libgimpui-3.0.so.0 libgimp-2.99.18_1
diff --git a/srcpkgs/gimp2-devel b/srcpkgs/gimp2-devel
new file mode 120000
index 00000000000000..cae4fa79d617de
--- /dev/null
+++ b/srcpkgs/gimp2-devel
@@ -0,0 +1 @@
+gimp2
\ No newline at end of file
diff --git a/srcpkgs/gimp2/INSTALL b/srcpkgs/gimp2/INSTALL
new file mode 100644
index 00000000000000..87064d64438f00
--- /dev/null
+++ b/srcpkgs/gimp2/INSTALL
@@ -0,0 +1,8 @@
+# workaround for https://github.com/void-linux/xbps/issues/14
+case "${ACTION}" in
+pre)
+ if [ "$UPDATE" = "yes" ]; then
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ fi
+ ;;
+esac
diff --git a/srcpkgs/gimp2/patches/fix-cross.patch b/srcpkgs/gimp2/patches/fix-cross.patch
new file mode 100644
index 00000000000000..0ffcf9b650b987
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-cross.patch
@@ -0,0 +1,18 @@
+--- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
++++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
+@@ -14,6 +14,7 @@ else
+ libm = -lm
+ endif
+
++libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
+ libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
+ libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
+ libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
+@@ -85,6 +86,7 @@ script_fu_SOURCES = \
+ scheme-wrapper.h
+
+ LDADD = \
++ $(libgimpmodule) \
+ $(libgimpui) \
+ $(libgimpwidgets) \
+ $(libgimpconfig) \
diff --git a/srcpkgs/gimp2/patches/fix-segfault.patch b/srcpkgs/gimp2/patches/fix-segfault.patch
new file mode 100644
index 00000000000000..5f1a6a6d3fe977
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-segfault.patch
@@ -0,0 +1,169 @@
+diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
+index 064f2c4..b17d82f 100644
+--- a/app/dialogs/dialogs.c
++++ b/app/dialogs/dialogs.c
+@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
+ menu_factory);
+ gimp_dialog_factory_set_singleton (factory);
+
+- for (i = 0; i < G_N_ELEMENTS (entries); i++)
++ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
++ char *name, *blurb;
++ name = entries[i].name ? gettext(entries[i].name) : NULL;
++ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
++
+ gimp_dialog_factory_register_entry (factory,
+ entries[i].identifier,
+- gettext (entries[i].name),
+- gettext (entries[i].blurb),
++ name,
++ blurb,
+ entries[i].icon_name,
+ entries[i].help_id,
+ entries[i].new_func,
+@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
+ entries[i].hideable,
+ entries[i].image_window,
+ entries[i].dockable);
++ }
+
+ global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
+ }
+diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
+index 04bd1b6..12eff51 100644
+--- a/app/widgets/gimpactiongroup.c
++++ b/app/widgets/gimpactiongroup.c
+@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_action_impl_new (entries[i].name, label, tooltip,
+@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_toggle_action_new (entries[i].name, label, tooltip,
+@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_radio_action_new (entries[i].name, label, tooltip,
+@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpEnumAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_enum_action_new (entries[i].name, label, tooltip,
+@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp2/patches/gcc14.patch b/srcpkgs/gimp2/patches/gcc14.patch
new file mode 100644
index 00000000000000..ceae92fa154c82
--- /dev/null
+++ b/srcpkgs/gimp2/patches/gcc14.patch
@@ -0,0 +1,63 @@
+From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Fri, 13 Jan 2023 13:29:07 +0100
+Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
+
+Do not call the undeclared exit function. Implicit function
+declarations are likely not going to be supported by future compilers
+by default, changing the outcome of this configure probe with
+such compilers.
+---
+ configure.ac | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 03047899841..b8718955471 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+ ]])],
+ [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
+diff --git a/configure b/configure
+index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
+--- a/configure
++++ b/configure
+@@ -28898,17 +28898,17 @@ else $as_nop
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+
+ _ACEOF
diff --git a/srcpkgs/gimp2/template b/srcpkgs/gimp2/template
new file mode 100644
index 00000000000000..6e4cd9a04cd410
--- /dev/null
+++ b/srcpkgs/gimp2/template
@@ -0,0 +1,59 @@
+# Template file for 'gimp2'
+pkgname=gimp2
+version=2.10.38
+revision=1
+build_style=gnu-configure
+configure_args="--disable-check-update --datadir=/usr/share --disable-python
+ --disable-default-binary"
+hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
+ libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
+makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
+ ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
+ libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
+ libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
+ poppler-glib-devel glib-networking libwebp-devel
+ libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+short_desc="GNU image manipulation program (version 2.x)"
+conf_files="/etc/gimp/${version%%.*}.0/*"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="GPL-3.0-only"
+homepage="https://www.gimp.org"
+changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
+distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
+checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+lib32disabled=yes
+no_generic_pkgconfig_link=yes
+
+pre_configure() {
+ NOCONFIGURE=1 autoreconf -fi
+ # don't allow configure to set DATADIRNAME=lib
+ vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
+}
+
+post_install() {
+ vsed -i -e "s/^Name.*$/& ${version%.*}/" -e "s/^Icon.*$/&-${version%.*}/" "${DESTDIR}/usr/share/applications/gimp.desktop"
+ mv "${DESTDIR}/usr/share/applications/gimp.desktop" "${DESTDIR}/usr/share/applications/gimp-${version%.*}.desktop"
+ find "${DESTDIR}/usr/share/icons/hicolor" -name gimp.png -execdir mv {} "gimp-${version%.*}.png" \;
+ vsed -i -e "s/org.gimp.GIMP/&${version%%.*}/" "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP.appdata.xml"
+ mv "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP.appdata.xml" "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP${version%%.*}.appdata.xml"
+}
+
+libgimp2_package() {
+ short_desc+=" - runtime libraries"
+ pkg_install() {
+ vmove "usr/lib/*.so.*"
+ }
+}
+
+gimp2-devel_package() {
+ depends="gegl-devel gtk+-devel lcms2-devel libgimp2>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/pkgconfig
+ vmove usr/share/gtk-doc
+ vmove usr/share/aclocal
+ vmove "usr/lib/*.so"
+ }
+}
diff --git a/srcpkgs/gimp2/update b/srcpkgs/gimp2/update
new file mode 100644
index 00000000000000..0e2a52581a8290
--- /dev/null
+++ b/srcpkgs/gimp2/update
@@ -0,0 +1,2 @@
+pkgname=gimp
+ignore="*.99.*"
diff --git a/srcpkgs/libgimp2 b/srcpkgs/libgimp2
new file mode 120000
index 00000000000000..cae4fa79d617de
--- /dev/null
+++ b/srcpkgs/libgimp2
@@ -0,0 +1 @@
+gimp2
\ No newline at end of file
From 32b5cd6487a6404bc62f7dfb99bed996b91928fe Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:08 -0400
Subject: [PATCH 4/9] libjxl: rebuild against libgimp2
gimp 3 supports jxl now, and this would cause a dependency loop
---
srcpkgs/libjxl/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template
index bdf38b2432761f..3d054b570a7662 100644
--- a/srcpkgs/libjxl/template
+++ b/srcpkgs/libjxl/template
@@ -1,7 +1,7 @@
# Template file for 'libjxl'
pkgname=libjxl
version=0.10.3
-revision=2
+revision=3
_testdata_hash=ff8d743aaba05b3014f17e5475e576242fa979fc
build_style=cmake
configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
@@ -9,7 +9,7 @@ configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
-DJPEGXL_ENABLE_SKCMS=OFF"
hostmakedepends="tar pkg-config asciidoc"
makedepends="brotli-devel highway-devel libpng-devel giflib-devel libjpeg-turbo-devel
- libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp-devel lcms2-devel"
+ libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp2-devel lcms2-devel"
checkdepends="gtest-devel xdg-utils"
short_desc="JPEG XL image format reference implementation"
maintainer="Joshua Krämer <joshua@kraemer.link>"
From 5b27182fa2bf22c54fe9e6aa4900a8ef22cd6786 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:09 -0400
Subject: [PATCH 5/9] gmic: rebuild against libgimp2
---
srcpkgs/gmic/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/gmic/template b/srcpkgs/gmic/template
index 24d10147e3abad..a691c6231bb70e 100644
--- a/srcpkgs/gmic/template
+++ b/srcpkgs/gmic/template
@@ -9,10 +9,10 @@ build_style=gnu-makefile
build_helper=qmake
make_build_args="NOSTRIP=yes"
make_use_env=yes
-hostmakedepends="pkg-config gimp qt5-host-tools qt5-qmake"
+hostmakedepends="pkg-config gimp2 qt5-host-tools qt5-qmake"
makedepends="fftw-devel imath-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel lcms2-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
- gtk+-devel gimp-devel qt5-devel"
+ gtk+-devel gimp2-devel qt5-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="CECILL-2.1, CECILL-C"
@@ -33,8 +33,8 @@ post_install() {
}
gmic-gimp_package() {
- short_desc+=" - GIMP plugin"
- depends="gimp ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/gimp
}
From eb6e909b17b6857efe783268217f8c3abbb4d7a9 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:10 -0400
Subject: [PATCH 6/9] nufraw: rebuild against libgimp2
---
srcpkgs/nufraw/template | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/nufraw/template b/srcpkgs/nufraw/template
index 551f263df96d38..8748aa91afc779 100644
--- a/srcpkgs/nufraw/template
+++ b/srcpkgs/nufraw/template
@@ -1,7 +1,7 @@
# Template file for 'nufraw'
pkgname=nufraw
version=0.43.3
-revision=1
+revision=2
_ver="${version%.*}-${version##*.}"
build_style=gnu-configure
configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
@@ -9,7 +9,7 @@ configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
hostmakedepends="pkg-config automake libtool glib-devel"
# libgexiv2-devel is only here to fix build order, remove on next template
# change
-makedepends="exiv2-devel gimp-devel glib-devel gtkimageview-devel lcms2-devel
+makedepends="exiv2-devel gimp2-devel glib-devel gtkimageview-devel lcms2-devel
lensfun-devel jasper-devel libgexiv2-devel"
depends="desktop-file-utils"
short_desc="Utility to read and manipulate raw images from digital cameras"
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later"
homepage="https://sourceforge.net/projects/nufraw/"
distfiles="${SOURCEFORGE_SITE}/nufraw/nufraw-${_ver}.tar.gz"
checksum=2c7dcc1590993ec267b3112562b2433010d6f94f6acc6506c76aa29cf8c6c32c
+conflicts="dcraw>=0"
case "$XBPS_TARGET_MACHINE" in
armv[67]l* | aarch64* | riscv64*)
@@ -36,8 +37,8 @@ pre_build() {
}
nufraw-gimp_package() {
- depends="${sourcepkg}>=${version}_${revision}"
- short_desc+=" - gimp plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
pkg_install() {
vmove usr/lib/gimp
}
From 480b1c1c194e373c9eb647af3a15a14858b901d9 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 7/9] xsane: rebuild against libgimp2
---
srcpkgs/xsane/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 7dde32af2b674c..67c53e94489fab 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -1,9 +1,9 @@
# Template file for 'xsane'
pkgname=xsane
version=0.999
-revision=5
+revision=6
hostmakedepends="pkg-config sane-devel gettext"
-makedepends="gtk+-devel lcms-devel sane-devel gimp-devel"
+makedepends="gtk+-devel lcms-devel sane-devel gimp2-devel"
depends="sane"
short_desc="GTK-based X11 frontend for SANE"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -36,8 +36,8 @@ do_install() {
}
xsane-gimp_package() {
- short_desc+=" - plugin for GIMP"
- depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - plugin for GIMP 2"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vbin src/xsane-gimp
vmkdir usr/lib/gimp/2.0/plug-ins
From 4fa3f5338304c78f7cf737da5c898daeca2210a9 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 8/9] gimp-lqr-plugin: rebuild against libgimp2
---
srcpkgs/gimp-lqr-plugin/template | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gimp-lqr-plugin/template b/srcpkgs/gimp-lqr-plugin/template
index 7878f6cb795d24..33a395c67a8583 100644
--- a/srcpkgs/gimp-lqr-plugin/template
+++ b/srcpkgs/gimp-lqr-plugin/template
@@ -1,11 +1,12 @@
# Template file for 'gimp-lqr-plugin'
pkgname=gimp-lqr-plugin
version=0.7.2
-revision=2
+revision=3
build_style=gnu-configure
hostmakedepends="automake intltool pkg-config"
-makedepends="gimp-devel glib-devel gettext-devel liblqr-devel"
-short_desc="Gimp plugins for image resizing through seam carving"
+makedepends="gimp2-devel glib-devel gettext-devel liblqr-devel"
+depends="gimp2"
+short_desc="GIMP 2 plugins for image resizing through seam carving"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://liquidrescale.wikidot.com/"
From 8c4b5f1c262eb239677ee2200cb5da2758c109ec Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 03:22:14 -0400
Subject: [PATCH 9/9] resynthesizer: update to 2.0.3+2.
WIP gimp 3 port
---
srcpkgs/resynthesizer/template | 29 +++++++++--------------------
1 file changed, 9 insertions(+), 20 deletions(-)
diff --git a/srcpkgs/resynthesizer/template b/srcpkgs/resynthesizer/template
index a58b0eec995854..2b56f8f406b456 100644
--- a/srcpkgs/resynthesizer/template
+++ b/srcpkgs/resynthesizer/template
@@ -1,26 +1,15 @@
# Template file for 'resynthesizer'
pkgname=resynthesizer
-version=2.0.3+1
+version=2.0.3+2
revision=1
-_commit=701e890d1d456e215e05daa7b4a88f5d9c6c03b3
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
+_commit=dee67110c51cbc69c28435ac7485766c3eb30a94
+build_style=meson
+hostmakedepends="pkg-config"
makedepends="gimp-devel glib-devel gettext-devel"
-short_desc="Suite of gimp plugins for texture healing and synthesis"
+depends="gimp"
+short_desc="Suite of GIMP plugins for texture healing and synthesis"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
-# FIXME: when gimp 3 is available, switch back to bootchk upstream
-#homepage="https://github.com/bootchk/resynthesizer"
-#distfiles="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${version}.tar.gz"
-homepage="https://github.com/itr-tert/gimp-resynthesizer-scm"
-distfiles="https://github.com/itr-tert/gimp-resynthesizer-scm/archive/${_commit}.tar.gz"
-checksum=298286386466fbd6d2da06f8a920c6e6e313db7ca0a094a36a355978a64cefc0
-
-if [ "$CROSS_BUILD" ];then
- hostmakedepends+=" glib-devel gettext-devel"
- AUTOGEN_CONFIGURE_ARGS+=" --host=${XBPS_MACHINE%-musl} --build=${XBPS_CROSS_TRIPLET}"
-fi
-
-pre_configure() {
- ./autogen.sh ${AUTOGEN_CONFIGURE_ARGS}
-}
+homepage="https://github.com/bootchk/resynthesizer"
+distfiles="https://github.com/bootchk/resynthesizer/archive/${_commit}.tar.gz"
+checksum=a9ae689f5c10e284b0b8cab03baa05caab029fae2250bcdcc7e1d3ec6f8c367d
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PR PATCH] [Updated] GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
` (10 preceding siblings ...)
2024-10-26 11:53 ` classabbyamp
@ 2024-11-07 20:54 ` classabbyamp
2024-12-14 22:54 ` classabbyamp
` (4 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2024-11-07 20:54 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
There is an updated pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages gimp3
https://github.com/void-linux/void-packages/pull/49890
GIMP 3
WIP until at minimum the full GIMP 3 release, expected in about a month: https://gitlab.gnome.org/GNOME/gimp/-/issues/10373
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
#### Plugins
- [ ] nufraw - not (yet) compatible
- [x] resynthesizer - compatible on in-dev branch
- [ ] gmic - not (yet) compatible
- [ ] xsane
- [ ] gimp-lqr-plugin - not (yet) compatible)
- [x] libjxl - disable because gimp supports it directly now
A patch file from https://github.com/void-linux/void-packages/pull/49890.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gimp3-49890.patch --]
[-- Type: text/x-diff, Size: 46930 bytes --]
From 7de398301fa3c2790a3d2dd013e5ca69f1f17994 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:35 -0400
Subject: [PATCH 01/10] gegl: update to 0.4.50.
---
srcpkgs/gegl/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gegl/template b/srcpkgs/gegl/template
index 5d4b070cd703ee..b116a6726036a3 100644
--- a/srcpkgs/gegl/template
+++ b/srcpkgs/gegl/template
@@ -1,7 +1,7 @@
# Template file for 'gegl'
pkgname=gegl
-version=0.4.46
-revision=2
+version=0.4.50
+revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dintrospection=true -Dvapigen=enabled
@@ -18,7 +18,7 @@ license="GPL-3.0-only, LGPL-3.0-only"
homepage="https://gegl.org/"
changelog="https://gitlab.gnome.org/GNOME/gegl/-/raw/master/docs/NEWS.adoc"
distfiles="https://download.gimp.org/pub/gegl/${version%.*}/gegl-${version}.tar.xz"
-checksum=d0b3b2481bc8774c5f3d0a487611910166d18eef823a859fb91e781ab7b1e892
+checksum=6084969b06ee86ca71142133773f27e13f02e5a6a22c2cfce452ecaaddb790c1
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From b6ae894626decf7f883f3e29876e949838aea712 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Wed, 6 Nov 2024 12:41:45 -0500
Subject: [PATCH 02/10] babl: update to 0.1.110.
---
srcpkgs/babl/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/babl/template b/srcpkgs/babl/template
index a635b6b485feca..a4c0df506a804f 100644
--- a/srcpkgs/babl/template
+++ b/srcpkgs/babl/template
@@ -1,6 +1,6 @@
# Template file for 'babl'
pkgname=babl
-version=0.1.106
+version=0.1.110
revision=1
build_style=meson
build_helper=gir
@@ -13,7 +13,7 @@ license="LGPL-3.0-only"
homepage="https://gegl.org/babl/"
changelog="https://gitlab.gnome.org/GNOME/babl/-/raw/master/NEWS"
distfiles="https://download.gimp.org/pub/babl/${version%.*}/babl-${version}.tar.xz"
-checksum=d325135d3304f088c134cc620013acf035de2e5d125a50a2d91054e7377c415f
+checksum=bf47be7540d6275389f66431ef03064df5376315e243d0bab448c6aa713f5743
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From 106aac99af2ecc19fa5ef01d42d90cca18169d51 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:29 -0400
Subject: [PATCH 03/10] gimp: update to 3.0.0+rc1.
---
common/shlibs | 36 +++-
srcpkgs/gimp-python | 1 -
srcpkgs/gimp/INSTALL | 2 +-
srcpkgs/gimp/INSTALL.msg | 2 +
srcpkgs/gimp/patches/atol.patch | 21 +++
srcpkgs/gimp/patches/brushes.patch | 15 ++
srcpkgs/gimp/patches/fix-cross.patch | 18 --
srcpkgs/gimp/patches/fix-segfault.patch | 169 ------------------
srcpkgs/gimp/patches/gcc14.patch | 63 -------
.../gimp/patches/libheif-1.18-compat.patch | 20 ---
srcpkgs/gimp/template | 55 +++---
11 files changed, 96 insertions(+), 306 deletions(-)
delete mode 120000 srcpkgs/gimp-python
create mode 100644 srcpkgs/gimp/INSTALL.msg
create mode 100644 srcpkgs/gimp/patches/atol.patch
create mode 100644 srcpkgs/gimp/patches/brushes.patch
delete mode 100644 srcpkgs/gimp/patches/fix-cross.patch
delete mode 100644 srcpkgs/gimp/patches/fix-segfault.patch
delete mode 100644 srcpkgs/gimp/patches/gcc14.patch
delete mode 100644 srcpkgs/gimp/patches/libheif-1.18-compat.patch
diff --git a/common/shlibs b/common/shlibs
index a1657e4c08bbfc..734ddc0be32580 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -560,15 +560,33 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
-libgimp-2.0.so.0 libgimp-2.10.0_1
-libgimpwidgets-2.0.so.0 libgimp-2.10.0_1
-libgimpui-2.0.so.0 libgimp-2.10.0_1
-libgimpbase-2.0.so.0 libgimp-2.10.0_1
-libgimpthumb-2.0.so.0 libgimp-2.10.0_1
-libgimpconfig-2.0.so.0 libgimp-2.10.0_1
-libgimpmath-2.0.so.0 libgimp-2.10.0_1
-libgimpcolor-2.0.so.0 libgimp-2.10.0_1
-libgimpmodule-2.0.so.0 libgimp-2.10.0_1
+libgimp-3.0.so.0 libgimp-2.99.18_1
+libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
+libgimpui-3.0.so.0 libgimp-2.99.18_1
+libgimpbase-3.0.so.0 libgimp-2.99.18_1
+libgimpthumb-3.0.so.0 libgimp-2.99.18_1
+libgimpconfig-3.0.so.0 libgimp-2.99.18_1
+libgimpmath-3.0.so.0 libgimp-2.99.18_1
+libgimpcolor-3.0.so.0 libgimp-2.99.18_1
+libgimpmodule-3.0.so.0 libgimp-2.99.18_1
+libgimp-2.0.so.0 libgimp2-2.10.38_1
+libgimpwidgets-2.0.so.0 libgimp2-2.10.38_1
+libgimpui-2.0.so.0 libgimp2-2.10.38_1
+libgimpbase-2.0.so.0 libgimp2-2.10.38_1
+libgimpthumb-2.0.so.0 libgimp2-2.10.38_1
+libgimpconfig-2.0.so.0 libgimp2-2.10.38_1
+libgimpmath-2.0.so.0 libgimp2-2.10.38_1
+libgimpcolor-2.0.so.0 libgimp2-2.10.38_1
+libgimpmodule-2.0.so.0 libgimp2-2.10.38_1
+libgimp-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpwidgets-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpui-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpbase-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpthumb-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpconfig-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpmath-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpcolor-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpmodule-3.0.so.0 libgimp-3.0.0+rc1_1
libgmic.so.3 gmic-3.1.6_1
libcgmic.so.3 gmic-3.1.6_1
libexiv2.so.28 exiv2-0.28.1_1
diff --git a/srcpkgs/gimp-python b/srcpkgs/gimp-python
deleted file mode 120000
index 92344a4bb4a963..00000000000000
--- a/srcpkgs/gimp-python
+++ /dev/null
@@ -1 +0,0 @@
-gimp
\ No newline at end of file
diff --git a/srcpkgs/gimp/INSTALL b/srcpkgs/gimp/INSTALL
index 87064d64438f00..daeff6b33cec0f 100644
--- a/srcpkgs/gimp/INSTALL
+++ b/srcpkgs/gimp/INSTALL
@@ -2,7 +2,7 @@
case "${ACTION}" in
pre)
if [ "$UPDATE" = "yes" ]; then
- xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm -f
fi
;;
esac
diff --git a/srcpkgs/gimp/INSTALL.msg b/srcpkgs/gimp/INSTALL.msg
new file mode 100644
index 00000000000000..24e3bddd8303ba
--- /dev/null
+++ b/srcpkgs/gimp/INSTALL.msg
@@ -0,0 +1,2 @@
+GIMP 3 breaks compatibility with many plugins. If you wish to continue
+using GIMP 2.x plugins, install gimp2.
diff --git a/srcpkgs/gimp/patches/atol.patch b/srcpkgs/gimp/patches/atol.patch
new file mode 100644
index 00000000000000..3d660783db053b
--- /dev/null
+++ b/srcpkgs/gimp/patches/atol.patch
@@ -0,0 +1,21 @@
+source: https://github.com/chimera-linux/cports/blob/master/main/gimp/patches/atol.patch
+
+commit f3237e747d854967a5333b5870dc7aae5cd19431
+Author: q66 <q66@chimera-linux.org>
+Date: Fri May 12 02:52:40 2023 +0200
+
+ don't use unsafe atol
+
+diff --git a/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c b/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
+index 5a3b68e..81e8b0d 100644
+--- a/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
++++ b/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
+@@ -1256,7 +1256,7 @@ static pointer mk_atom(scheme *sc, char *q) {
+ if(has_dec_point) {
+ return mk_real(sc,g_ascii_strtod(q,NULL));
+ }
+- return (mk_integer(sc, atol(q)));
++ return (mk_integer(sc, strtol(q, NULL, 10)));
+ }
+
+ /* make atom from sharp expr representing constant.
diff --git a/srcpkgs/gimp/patches/brushes.patch b/srcpkgs/gimp/patches/brushes.patch
new file mode 100644
index 00000000000000..47a7c225dd38ea
--- /dev/null
+++ b/srcpkgs/gimp/patches/brushes.patch
@@ -0,0 +1,15 @@
+source: https://github.com/chimera-linux/cports/blob/master/main/gimp/patches/brushes.patch
+
+diff --git a/meson.build b/meson.build
+index daae225..7744671 100644
+--- a/meson.build
++++ b/meson.build
+@@ -378,7 +378,7 @@ lcms_minver = '2.8'
+ lcms = dependency('lcms2', version: '>='+lcms_minver)
+ libmypaint_minver = '1.3.0'
+ libmypaint = dependency('libmypaint', version: '>='+libmypaint_minver)
+-mypaint_brushes = dependency('mypaint-brushes-1.0',version: '>='+libmypaint_minver)
++mypaint_brushes = dependency('mypaint-brushes-2.0',version: '>='+libmypaint_minver)
+ if not libmypaint.version().version_compare('>=1.4.0')
+ libmypaint_warning='''
+
diff --git a/srcpkgs/gimp/patches/fix-cross.patch b/srcpkgs/gimp/patches/fix-cross.patch
deleted file mode 100644
index 0ffcf9b650b987..00000000000000
--- a/srcpkgs/gimp/patches/fix-cross.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
-+++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
-@@ -14,6 +14,7 @@ else
- libm = -lm
- endif
-
-+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
- libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
- libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
- libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
-@@ -85,6 +86,7 @@ script_fu_SOURCES = \
- scheme-wrapper.h
-
- LDADD = \
-+ $(libgimpmodule) \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpconfig) \
diff --git a/srcpkgs/gimp/patches/fix-segfault.patch b/srcpkgs/gimp/patches/fix-segfault.patch
deleted file mode 100644
index 5f1a6a6d3fe977..00000000000000
--- a/srcpkgs/gimp/patches/fix-segfault.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
-index 064f2c4..b17d82f 100644
---- a/app/dialogs/dialogs.c
-+++ b/app/dialogs/dialogs.c
-@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
- menu_factory);
- gimp_dialog_factory_set_singleton (factory);
-
-- for (i = 0; i < G_N_ELEMENTS (entries); i++)
-+ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
-+ char *name, *blurb;
-+ name = entries[i].name ? gettext(entries[i].name) : NULL;
-+ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
-+
- gimp_dialog_factory_register_entry (factory,
- entries[i].identifier,
-- gettext (entries[i].name),
-- gettext (entries[i].blurb),
-+ name,
-+ blurb,
- entries[i].icon_name,
- entries[i].help_id,
- entries[i].new_func,
-@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
- entries[i].hideable,
- entries[i].image_window,
- entries[i].dockable);
-+ }
-
- global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
- }
-diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
-index 04bd1b6..12eff51 100644
---- a/app/widgets/gimpactiongroup.c
-+++ b/app/widgets/gimpactiongroup.c
-@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_action_impl_new (entries[i].name, label, tooltip,
-@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_toggle_action_new (entries[i].name, label, tooltip,
-@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_radio_action_new (entries[i].name, label, tooltip,
-@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpEnumAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_enum_action_new (entries[i].name, label, tooltip,
-@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp/patches/gcc14.patch b/srcpkgs/gimp/patches/gcc14.patch
deleted file mode 100644
index ceae92fa154c82..00000000000000
--- a/srcpkgs/gimp/patches/gcc14.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Fri, 13 Jan 2023 13:29:07 +0100
-Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
-
-Do not call the undeclared exit function. Implicit function
-declarations are likely not going to be supported by future compilers
-by default, changing the outcome of this configure probe with
-such compilers.
----
- configure.ac | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 03047899841..b8718955471 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
- ]])],
- [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
-diff --git a/configure b/configure
-index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
---- a/configure
-+++ b/configure
-@@ -28898,17 +28898,17 @@ else $as_nop
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
-
- _ACEOF
diff --git a/srcpkgs/gimp/patches/libheif-1.18-compat.patch b/srcpkgs/gimp/patches/libheif-1.18-compat.patch
deleted file mode 100644
index e714d25f2bab6b..00000000000000
--- a/srcpkgs/gimp/patches/libheif-1.18-compat.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/configure.ac 2024-08-29 18:28:19.457012043 -0500
-+++ b/configure.ac 2024-08-29 18:28:29.154953488 -0500
-@@ -1843,13 +1843,13 @@
- can_import_avif=no
- can_export_avif=no
- if test "x$have_libheif" = xyes; then
-- can_import_heic=`$PKG_CONFIG --variable=builtin_h265_decoder libheif`
-- can_export_heic=`$PKG_CONFIG --variable=builtin_h265_encoder libheif`
-+ can_import_heic=yes
-+ can_export_heic=yes
- if test "x$can_import_heic" = xyes; then
- MIME_TYPES="$MIME_TYPES;image/heif;image/heic"
- fi
-- can_import_avif=`$PKG_CONFIG --variable=builtin_avif_decoder libheif`
-- can_export_avif=`$PKG_CONFIG --variable=builtin_avif_encoder libheif`
-+ can_import_avif=yes
-+ can_export_avif=yes
- if test "x$can_import_avif" = xyes; then
- MIME_TYPES="$MIME_TYPES;image/avif"
- fi
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index a50409d5ce5af1..e124731dac642e 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -1,34 +1,36 @@
# Template file for 'gimp'
pkgname=gimp
-version=2.10.38
-revision=3
-build_style=gnu-configure
-configure_args="--disable-check-update --datadir=/usr/share --disable-python"
-hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
- libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
-makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
- ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
- libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
- libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
- poppler-glib-devel glib-networking libwebp-devel
- libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
-depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+version=3.0.0+rc1
+revision=1
+build_style=meson
+build_helper="gir qemu"
+configure_args="-Dcheck-update=no -Drevision=$revision -Denable-default-bin=enabled
+ -Dbug-report-url=https://github.com/void-linux/void-packages/issues/new/choose"
+hostmakedepends="pkg-config xdg-utils perl libxslt gjs LuaJIT desktop-file-utils
+ AppStream gettext gi-docgen gobject-introspection
+ yelp-tools librsvg-devel glib-devel"
+makedepends="babl-devel gtk+3-devel gegl-devel libgexiv2-devel libgirepository-devel
+ libmypaint-devel mypaint-brushes librsvg-devel glib-networking appstream-glib-devel
+ libXmu-devel ghostscript-devel libmng-devel aalib-devel libXpm-devel libopenexr-devel
+ libwebp-devel libheif-devel poppler-glib-devel libwmf-devel libopenjpeg2-devel
+ libjxl-devel alsa-lib-devel cfitsio-devel python3-gobject-devel libgomp-devel
+ libunwind-devel lua51-lgi"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes python3-gobject"
+checkdepends="xvfb-run dbus"
short_desc="GNU image manipulation program"
conf_files="/etc/gimp/${version%%.*}.0/*"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-only"
homepage="https://www.gimp.org"
-changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
-distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
-checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+distfiles="https://download.gimp.org/gimp/v${version%.*}/gimp-${version/+rc/-RC}.tar.xz"
+checksum=b3d0b264c5e38e789faaf3417003397f3240014c59c7f417f9ca3bd39c5ffb66
lib32disabled=yes
-no_generic_pkgconfig_link=yes
-pre_configure() {
- NOCONFIGURE=1 autoreconf -fi
- # don't allow configure to set DATADIRNAME=lib
- vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -Dheadless-tests=enabled"
+else
+ configure_args+=" -Dheadless-tests=disabled"
+fi
libgimp_package() {
short_desc+=" - runtime libraries"
@@ -38,13 +40,16 @@ libgimp_package() {
}
gimp-devel_package() {
- depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}"
+ depends="libgimp>=${version}_${revision} gegl-devel gtk+3-devel libgexiv2-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
- vmove usr/share/gtk-doc
- vmove usr/share/aclocal
vmove "usr/lib/*.so"
+ if [ -z "$CROSS_BUILD" ]; then
+ vmove usr/share/gir-1.0
+ vmove usr/share/vala
+ vmove usr/share/doc
+ fi
}
}
From 187a038745e09fc0f24d5eae77849cadc09bc1cd Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Tue, 11 Jun 2024 21:46:37 -0400
Subject: [PATCH 04/10] New package: gimp2-2.10.38
---
common/shlibs | 9 ++
srcpkgs/gimp2-devel | 1 +
srcpkgs/gimp2/INSTALL | 8 ++
srcpkgs/gimp2/patches/fix-cross.patch | 18 +++
srcpkgs/gimp2/patches/fix-segfault.patch | 169 +++++++++++++++++++++++
srcpkgs/gimp2/patches/gcc14.patch | 63 +++++++++
srcpkgs/gimp2/template | 59 ++++++++
srcpkgs/gimp2/update | 2 +
srcpkgs/libgimp2 | 1 +
9 files changed, 330 insertions(+)
create mode 120000 srcpkgs/gimp2-devel
create mode 100644 srcpkgs/gimp2/INSTALL
create mode 100644 srcpkgs/gimp2/patches/fix-cross.patch
create mode 100644 srcpkgs/gimp2/patches/fix-segfault.patch
create mode 100644 srcpkgs/gimp2/patches/gcc14.patch
create mode 100644 srcpkgs/gimp2/template
create mode 100644 srcpkgs/gimp2/update
create mode 120000 srcpkgs/libgimp2
diff --git a/common/shlibs b/common/shlibs
index 734ddc0be32580..88a8966351d72b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -560,6 +560,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
+libgimp-2.0.so.0 libgimp2-2.10.38_1
+libgimpwidgets-2.0.so.0 libgimp2-2.10.38_1
+libgimpui-2.0.so.0 libgimp2-2.10.38_1
+libgimpbase-2.0.so.0 libgimp2-2.10.38_1
+libgimpthumb-2.0.so.0 libgimp2-2.10.38_1
+libgimpconfig-2.0.so.0 libgimp2-2.10.38_1
+libgimpmath-2.0.so.0 libgimp2-2.10.38_1
+libgimpcolor-2.0.so.0 libgimp2-2.10.38_1
+libgimpmodule-2.0.so.0 libgimp2-2.10.38_1
libgimp-3.0.so.0 libgimp-2.99.18_1
libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
libgimpui-3.0.so.0 libgimp-2.99.18_1
diff --git a/srcpkgs/gimp2-devel b/srcpkgs/gimp2-devel
new file mode 120000
index 00000000000000..cae4fa79d617de
--- /dev/null
+++ b/srcpkgs/gimp2-devel
@@ -0,0 +1 @@
+gimp2
\ No newline at end of file
diff --git a/srcpkgs/gimp2/INSTALL b/srcpkgs/gimp2/INSTALL
new file mode 100644
index 00000000000000..87064d64438f00
--- /dev/null
+++ b/srcpkgs/gimp2/INSTALL
@@ -0,0 +1,8 @@
+# workaround for https://github.com/void-linux/xbps/issues/14
+case "${ACTION}" in
+pre)
+ if [ "$UPDATE" = "yes" ]; then
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ fi
+ ;;
+esac
diff --git a/srcpkgs/gimp2/patches/fix-cross.patch b/srcpkgs/gimp2/patches/fix-cross.patch
new file mode 100644
index 00000000000000..0ffcf9b650b987
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-cross.patch
@@ -0,0 +1,18 @@
+--- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
++++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
+@@ -14,6 +14,7 @@ else
+ libm = -lm
+ endif
+
++libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
+ libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
+ libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
+ libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
+@@ -85,6 +86,7 @@ script_fu_SOURCES = \
+ scheme-wrapper.h
+
+ LDADD = \
++ $(libgimpmodule) \
+ $(libgimpui) \
+ $(libgimpwidgets) \
+ $(libgimpconfig) \
diff --git a/srcpkgs/gimp2/patches/fix-segfault.patch b/srcpkgs/gimp2/patches/fix-segfault.patch
new file mode 100644
index 00000000000000..5f1a6a6d3fe977
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-segfault.patch
@@ -0,0 +1,169 @@
+diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
+index 064f2c4..b17d82f 100644
+--- a/app/dialogs/dialogs.c
++++ b/app/dialogs/dialogs.c
+@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
+ menu_factory);
+ gimp_dialog_factory_set_singleton (factory);
+
+- for (i = 0; i < G_N_ELEMENTS (entries); i++)
++ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
++ char *name, *blurb;
++ name = entries[i].name ? gettext(entries[i].name) : NULL;
++ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
++
+ gimp_dialog_factory_register_entry (factory,
+ entries[i].identifier,
+- gettext (entries[i].name),
+- gettext (entries[i].blurb),
++ name,
++ blurb,
+ entries[i].icon_name,
+ entries[i].help_id,
+ entries[i].new_func,
+@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
+ entries[i].hideable,
+ entries[i].image_window,
+ entries[i].dockable);
++ }
+
+ global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
+ }
+diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
+index 04bd1b6..12eff51 100644
+--- a/app/widgets/gimpactiongroup.c
++++ b/app/widgets/gimpactiongroup.c
+@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_action_impl_new (entries[i].name, label, tooltip,
+@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_toggle_action_new (entries[i].name, label, tooltip,
+@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_radio_action_new (entries[i].name, label, tooltip,
+@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpEnumAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_enum_action_new (entries[i].name, label, tooltip,
+@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp2/patches/gcc14.patch b/srcpkgs/gimp2/patches/gcc14.patch
new file mode 100644
index 00000000000000..ceae92fa154c82
--- /dev/null
+++ b/srcpkgs/gimp2/patches/gcc14.patch
@@ -0,0 +1,63 @@
+From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Fri, 13 Jan 2023 13:29:07 +0100
+Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
+
+Do not call the undeclared exit function. Implicit function
+declarations are likely not going to be supported by future compilers
+by default, changing the outcome of this configure probe with
+such compilers.
+---
+ configure.ac | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 03047899841..b8718955471 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+ ]])],
+ [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
+diff --git a/configure b/configure
+index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
+--- a/configure
++++ b/configure
+@@ -28898,17 +28898,17 @@ else $as_nop
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+
+ _ACEOF
diff --git a/srcpkgs/gimp2/template b/srcpkgs/gimp2/template
new file mode 100644
index 00000000000000..6e4cd9a04cd410
--- /dev/null
+++ b/srcpkgs/gimp2/template
@@ -0,0 +1,59 @@
+# Template file for 'gimp2'
+pkgname=gimp2
+version=2.10.38
+revision=1
+build_style=gnu-configure
+configure_args="--disable-check-update --datadir=/usr/share --disable-python
+ --disable-default-binary"
+hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
+ libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
+makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
+ ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
+ libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
+ libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
+ poppler-glib-devel glib-networking libwebp-devel
+ libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+short_desc="GNU image manipulation program (version 2.x)"
+conf_files="/etc/gimp/${version%%.*}.0/*"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="GPL-3.0-only"
+homepage="https://www.gimp.org"
+changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
+distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
+checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+lib32disabled=yes
+no_generic_pkgconfig_link=yes
+
+pre_configure() {
+ NOCONFIGURE=1 autoreconf -fi
+ # don't allow configure to set DATADIRNAME=lib
+ vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
+}
+
+post_install() {
+ vsed -i -e "s/^Name.*$/& ${version%.*}/" -e "s/^Icon.*$/&-${version%.*}/" "${DESTDIR}/usr/share/applications/gimp.desktop"
+ mv "${DESTDIR}/usr/share/applications/gimp.desktop" "${DESTDIR}/usr/share/applications/gimp-${version%.*}.desktop"
+ find "${DESTDIR}/usr/share/icons/hicolor" -name gimp.png -execdir mv {} "gimp-${version%.*}.png" \;
+ vsed -i -e "s/org.gimp.GIMP/&${version%%.*}/" "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP.appdata.xml"
+ mv "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP.appdata.xml" "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP${version%%.*}.appdata.xml"
+}
+
+libgimp2_package() {
+ short_desc+=" - runtime libraries"
+ pkg_install() {
+ vmove "usr/lib/*.so.*"
+ }
+}
+
+gimp2-devel_package() {
+ depends="gegl-devel gtk+-devel lcms2-devel libgimp2>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/pkgconfig
+ vmove usr/share/gtk-doc
+ vmove usr/share/aclocal
+ vmove "usr/lib/*.so"
+ }
+}
diff --git a/srcpkgs/gimp2/update b/srcpkgs/gimp2/update
new file mode 100644
index 00000000000000..0e2a52581a8290
--- /dev/null
+++ b/srcpkgs/gimp2/update
@@ -0,0 +1,2 @@
+pkgname=gimp
+ignore="*.99.*"
diff --git a/srcpkgs/libgimp2 b/srcpkgs/libgimp2
new file mode 120000
index 00000000000000..cae4fa79d617de
--- /dev/null
+++ b/srcpkgs/libgimp2
@@ -0,0 +1 @@
+gimp2
\ No newline at end of file
From 67f1829376bb39e49a2ecd103b1265a5398c1828 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:08 -0400
Subject: [PATCH 05/10] libjxl: rebuild against libgimp2
gimp 3 supports jxl now, and this would cause a dependency loop
---
srcpkgs/libjxl/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template
index bdf38b2432761f..3d054b570a7662 100644
--- a/srcpkgs/libjxl/template
+++ b/srcpkgs/libjxl/template
@@ -1,7 +1,7 @@
# Template file for 'libjxl'
pkgname=libjxl
version=0.10.3
-revision=2
+revision=3
_testdata_hash=ff8d743aaba05b3014f17e5475e576242fa979fc
build_style=cmake
configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
@@ -9,7 +9,7 @@ configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
-DJPEGXL_ENABLE_SKCMS=OFF"
hostmakedepends="tar pkg-config asciidoc"
makedepends="brotli-devel highway-devel libpng-devel giflib-devel libjpeg-turbo-devel
- libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp-devel lcms2-devel"
+ libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp2-devel lcms2-devel"
checkdepends="gtest-devel xdg-utils"
short_desc="JPEG XL image format reference implementation"
maintainer="Joshua Krämer <joshua@kraemer.link>"
From 7a1fbc4099562a5dd60dfa37ac2e95be6204e46c Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:09 -0400
Subject: [PATCH 06/10] gmic: rebuild against libgimp2
---
srcpkgs/gmic/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/gmic/template b/srcpkgs/gmic/template
index 24d10147e3abad..a691c6231bb70e 100644
--- a/srcpkgs/gmic/template
+++ b/srcpkgs/gmic/template
@@ -9,10 +9,10 @@ build_style=gnu-makefile
build_helper=qmake
make_build_args="NOSTRIP=yes"
make_use_env=yes
-hostmakedepends="pkg-config gimp qt5-host-tools qt5-qmake"
+hostmakedepends="pkg-config gimp2 qt5-host-tools qt5-qmake"
makedepends="fftw-devel imath-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel lcms2-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
- gtk+-devel gimp-devel qt5-devel"
+ gtk+-devel gimp2-devel qt5-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="CECILL-2.1, CECILL-C"
@@ -33,8 +33,8 @@ post_install() {
}
gmic-gimp_package() {
- short_desc+=" - GIMP plugin"
- depends="gimp ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/gimp
}
From e46b6e21d6e390ce9e9a5849c446743067c4a5c2 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:10 -0400
Subject: [PATCH 07/10] nufraw: rebuild against libgimp2
---
srcpkgs/nufraw/template | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/nufraw/template b/srcpkgs/nufraw/template
index 551f263df96d38..8748aa91afc779 100644
--- a/srcpkgs/nufraw/template
+++ b/srcpkgs/nufraw/template
@@ -1,7 +1,7 @@
# Template file for 'nufraw'
pkgname=nufraw
version=0.43.3
-revision=1
+revision=2
_ver="${version%.*}-${version##*.}"
build_style=gnu-configure
configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
@@ -9,7 +9,7 @@ configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
hostmakedepends="pkg-config automake libtool glib-devel"
# libgexiv2-devel is only here to fix build order, remove on next template
# change
-makedepends="exiv2-devel gimp-devel glib-devel gtkimageview-devel lcms2-devel
+makedepends="exiv2-devel gimp2-devel glib-devel gtkimageview-devel lcms2-devel
lensfun-devel jasper-devel libgexiv2-devel"
depends="desktop-file-utils"
short_desc="Utility to read and manipulate raw images from digital cameras"
@@ -18,6 +18,7 @@ license="GPL-2.0-or-later"
homepage="https://sourceforge.net/projects/nufraw/"
distfiles="${SOURCEFORGE_SITE}/nufraw/nufraw-${_ver}.tar.gz"
checksum=2c7dcc1590993ec267b3112562b2433010d6f94f6acc6506c76aa29cf8c6c32c
+conflicts="dcraw>=0"
case "$XBPS_TARGET_MACHINE" in
armv[67]l* | aarch64* | riscv64*)
@@ -36,8 +37,8 @@ pre_build() {
}
nufraw-gimp_package() {
- depends="${sourcepkg}>=${version}_${revision}"
- short_desc+=" - gimp plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
pkg_install() {
vmove usr/lib/gimp
}
From 8790ff8d3872b9e44c753fc8ab0fc93ab70d7ee9 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 08/10] xsane: rebuild against libgimp2
---
srcpkgs/xsane/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 7dde32af2b674c..67c53e94489fab 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -1,9 +1,9 @@
# Template file for 'xsane'
pkgname=xsane
version=0.999
-revision=5
+revision=6
hostmakedepends="pkg-config sane-devel gettext"
-makedepends="gtk+-devel lcms-devel sane-devel gimp-devel"
+makedepends="gtk+-devel lcms-devel sane-devel gimp2-devel"
depends="sane"
short_desc="GTK-based X11 frontend for SANE"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -36,8 +36,8 @@ do_install() {
}
xsane-gimp_package() {
- short_desc+=" - plugin for GIMP"
- depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - plugin for GIMP 2"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vbin src/xsane-gimp
vmkdir usr/lib/gimp/2.0/plug-ins
From 290b6464100f6bb1bd2f4b7f5c0c8b1db524e158 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 09/10] gimp-lqr-plugin: rebuild against libgimp2
---
srcpkgs/gimp-lqr-plugin/template | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gimp-lqr-plugin/template b/srcpkgs/gimp-lqr-plugin/template
index 7878f6cb795d24..33a395c67a8583 100644
--- a/srcpkgs/gimp-lqr-plugin/template
+++ b/srcpkgs/gimp-lqr-plugin/template
@@ -1,11 +1,12 @@
# Template file for 'gimp-lqr-plugin'
pkgname=gimp-lqr-plugin
version=0.7.2
-revision=2
+revision=3
build_style=gnu-configure
hostmakedepends="automake intltool pkg-config"
-makedepends="gimp-devel glib-devel gettext-devel liblqr-devel"
-short_desc="Gimp plugins for image resizing through seam carving"
+makedepends="gimp2-devel glib-devel gettext-devel liblqr-devel"
+depends="gimp2"
+short_desc="GIMP 2 plugins for image resizing through seam carving"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://liquidrescale.wikidot.com/"
From bc6ea98f61d36be0d516cd6f302f441540f87c97 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 03:22:14 -0400
Subject: [PATCH 10/10] resynthesizer: update to 2.0.3+3.
WIP gimp 3 port
---
srcpkgs/resynthesizer/template | 29 +++++++++--------------------
1 file changed, 9 insertions(+), 20 deletions(-)
diff --git a/srcpkgs/resynthesizer/template b/srcpkgs/resynthesizer/template
index a58b0eec995854..271cc419fd005a 100644
--- a/srcpkgs/resynthesizer/template
+++ b/srcpkgs/resynthesizer/template
@@ -1,26 +1,15 @@
# Template file for 'resynthesizer'
pkgname=resynthesizer
-version=2.0.3+1
+version=2.0.3+3
revision=1
-_commit=701e890d1d456e215e05daa7b4a88f5d9c6c03b3
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
+_commit=12a967da9d723321b06e37c2b601cb77c320aedd
+build_style=meson
+hostmakedepends="pkg-config"
makedepends="gimp-devel glib-devel gettext-devel"
-short_desc="Suite of gimp plugins for texture healing and synthesis"
+depends="gimp"
+short_desc="Suite of GIMP plugins for texture healing and synthesis"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
-# FIXME: when gimp 3 is available, switch back to bootchk upstream
-#homepage="https://github.com/bootchk/resynthesizer"
-#distfiles="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${version}.tar.gz"
-homepage="https://github.com/itr-tert/gimp-resynthesizer-scm"
-distfiles="https://github.com/itr-tert/gimp-resynthesizer-scm/archive/${_commit}.tar.gz"
-checksum=298286386466fbd6d2da06f8a920c6e6e313db7ca0a094a36a355978a64cefc0
-
-if [ "$CROSS_BUILD" ];then
- hostmakedepends+=" glib-devel gettext-devel"
- AUTOGEN_CONFIGURE_ARGS+=" --host=${XBPS_MACHINE%-musl} --build=${XBPS_CROSS_TRIPLET}"
-fi
-
-pre_configure() {
- ./autogen.sh ${AUTOGEN_CONFIGURE_ARGS}
-}
+homepage="https://github.com/bootchk/resynthesizer"
+distfiles="https://github.com/bootchk/resynthesizer/archive/${_commit}.tar.gz"
+checksum=de92e808b7415e44c8b6305f2e2e7985269dfc774d00ad06ee323d243f51bef8
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PR PATCH] [Updated] GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
` (11 preceding siblings ...)
2024-11-07 20:54 ` classabbyamp
@ 2024-12-14 22:54 ` classabbyamp
2025-02-09 23:08 ` classabbyamp
` (3 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2024-12-14 22:54 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
There is an updated pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages gimp3
https://github.com/void-linux/void-packages/pull/49890
GIMP 3
WIP until at minimum the full GIMP 3 release, expected in about a month: https://gitlab.gnome.org/GNOME/gimp/-/issues/10373
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
#### Plugins
- [ ] nufraw - not (yet) compatible
- [x] resynthesizer - compatible on in-dev branch
- [ ] gmic - not (yet) compatible
- [ ] xsane
- [ ] gimp-lqr-plugin - not (yet) compatible)
- [x] libjxl - disable because gimp supports it directly now
A patch file from https://github.com/void-linux/void-packages/pull/49890.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gimp3-49890.patch --]
[-- Type: text/x-diff, Size: 51234 bytes --]
From 2c564f1e07985f7d8d252ba69241e9f883e22507 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:35 -0400
Subject: [PATCH 01/10] gegl: update to 0.4.50.
---
srcpkgs/gegl/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gegl/template b/srcpkgs/gegl/template
index 5d4b070cd703ee..b116a6726036a3 100644
--- a/srcpkgs/gegl/template
+++ b/srcpkgs/gegl/template
@@ -1,7 +1,7 @@
# Template file for 'gegl'
pkgname=gegl
-version=0.4.46
-revision=2
+version=0.4.50
+revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dintrospection=true -Dvapigen=enabled
@@ -18,7 +18,7 @@ license="GPL-3.0-only, LGPL-3.0-only"
homepage="https://gegl.org/"
changelog="https://gitlab.gnome.org/GNOME/gegl/-/raw/master/docs/NEWS.adoc"
distfiles="https://download.gimp.org/pub/gegl/${version%.*}/gegl-${version}.tar.xz"
-checksum=d0b3b2481bc8774c5f3d0a487611910166d18eef823a859fb91e781ab7b1e892
+checksum=6084969b06ee86ca71142133773f27e13f02e5a6a22c2cfce452ecaaddb790c1
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From c98a9dbe77ff00d79c213f4d321ce3881fe5267d Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Wed, 6 Nov 2024 12:41:45 -0500
Subject: [PATCH 02/10] babl: update to 0.1.110.
---
srcpkgs/babl/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/babl/template b/srcpkgs/babl/template
index a635b6b485feca..a4c0df506a804f 100644
--- a/srcpkgs/babl/template
+++ b/srcpkgs/babl/template
@@ -1,6 +1,6 @@
# Template file for 'babl'
pkgname=babl
-version=0.1.106
+version=0.1.110
revision=1
build_style=meson
build_helper=gir
@@ -13,7 +13,7 @@ license="LGPL-3.0-only"
homepage="https://gegl.org/babl/"
changelog="https://gitlab.gnome.org/GNOME/babl/-/raw/master/NEWS"
distfiles="https://download.gimp.org/pub/babl/${version%.*}/babl-${version}.tar.xz"
-checksum=d325135d3304f088c134cc620013acf035de2e5d125a50a2d91054e7377c415f
+checksum=bf47be7540d6275389f66431ef03064df5376315e243d0bab448c6aa713f5743
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From 26313e64cd8da33cfe54b0a5866bfff0dfc4ea6f Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:29 -0400
Subject: [PATCH 03/10] gimp: update to 3.0.0+rc1.
---
common/shlibs | 36 +++-
srcpkgs/gimp-python | 1 -
srcpkgs/gimp/INSTALL | 2 +-
srcpkgs/gimp/INSTALL.msg | 2 +
srcpkgs/gimp/patches/atol.patch | 21 +++
srcpkgs/gimp/patches/brushes.patch | 15 ++
srcpkgs/gimp/patches/fix-cross.patch | 18 --
srcpkgs/gimp/patches/fix-segfault.patch | 169 ------------------
srcpkgs/gimp/patches/gcc14.patch | 63 -------
.../gimp/patches/libheif-1.18-compat.patch | 20 ---
srcpkgs/gimp/template | 55 +++---
11 files changed, 96 insertions(+), 306 deletions(-)
delete mode 120000 srcpkgs/gimp-python
create mode 100644 srcpkgs/gimp/INSTALL.msg
create mode 100644 srcpkgs/gimp/patches/atol.patch
create mode 100644 srcpkgs/gimp/patches/brushes.patch
delete mode 100644 srcpkgs/gimp/patches/fix-cross.patch
delete mode 100644 srcpkgs/gimp/patches/fix-segfault.patch
delete mode 100644 srcpkgs/gimp/patches/gcc14.patch
delete mode 100644 srcpkgs/gimp/patches/libheif-1.18-compat.patch
diff --git a/common/shlibs b/common/shlibs
index e2742f96a693e0..56eb1a2f9ebee1 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -560,15 +560,33 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
-libgimp-2.0.so.0 libgimp-2.10.0_1
-libgimpwidgets-2.0.so.0 libgimp-2.10.0_1
-libgimpui-2.0.so.0 libgimp-2.10.0_1
-libgimpbase-2.0.so.0 libgimp-2.10.0_1
-libgimpthumb-2.0.so.0 libgimp-2.10.0_1
-libgimpconfig-2.0.so.0 libgimp-2.10.0_1
-libgimpmath-2.0.so.0 libgimp-2.10.0_1
-libgimpcolor-2.0.so.0 libgimp-2.10.0_1
-libgimpmodule-2.0.so.0 libgimp-2.10.0_1
+libgimp-3.0.so.0 libgimp-2.99.18_1
+libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
+libgimpui-3.0.so.0 libgimp-2.99.18_1
+libgimpbase-3.0.so.0 libgimp-2.99.18_1
+libgimpthumb-3.0.so.0 libgimp-2.99.18_1
+libgimpconfig-3.0.so.0 libgimp-2.99.18_1
+libgimpmath-3.0.so.0 libgimp-2.99.18_1
+libgimpcolor-3.0.so.0 libgimp-2.99.18_1
+libgimpmodule-3.0.so.0 libgimp-2.99.18_1
+libgimp-2.0.so.0 libgimp2-2.10.38_1
+libgimpwidgets-2.0.so.0 libgimp2-2.10.38_1
+libgimpui-2.0.so.0 libgimp2-2.10.38_1
+libgimpbase-2.0.so.0 libgimp2-2.10.38_1
+libgimpthumb-2.0.so.0 libgimp2-2.10.38_1
+libgimpconfig-2.0.so.0 libgimp2-2.10.38_1
+libgimpmath-2.0.so.0 libgimp2-2.10.38_1
+libgimpcolor-2.0.so.0 libgimp2-2.10.38_1
+libgimpmodule-2.0.so.0 libgimp2-2.10.38_1
+libgimp-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpwidgets-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpui-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpbase-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpthumb-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpconfig-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpmath-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpcolor-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpmodule-3.0.so.0 libgimp-3.0.0+rc1_1
libgmic.so.3 gmic-3.1.6_1
libcgmic.so.3 gmic-3.1.6_1
libexiv2.so.28 exiv2-0.28.1_1
diff --git a/srcpkgs/gimp-python b/srcpkgs/gimp-python
deleted file mode 120000
index 92344a4bb4a963..00000000000000
--- a/srcpkgs/gimp-python
+++ /dev/null
@@ -1 +0,0 @@
-gimp
\ No newline at end of file
diff --git a/srcpkgs/gimp/INSTALL b/srcpkgs/gimp/INSTALL
index 87064d64438f00..daeff6b33cec0f 100644
--- a/srcpkgs/gimp/INSTALL
+++ b/srcpkgs/gimp/INSTALL
@@ -2,7 +2,7 @@
case "${ACTION}" in
pre)
if [ "$UPDATE" = "yes" ]; then
- xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm -f
fi
;;
esac
diff --git a/srcpkgs/gimp/INSTALL.msg b/srcpkgs/gimp/INSTALL.msg
new file mode 100644
index 00000000000000..24e3bddd8303ba
--- /dev/null
+++ b/srcpkgs/gimp/INSTALL.msg
@@ -0,0 +1,2 @@
+GIMP 3 breaks compatibility with many plugins. If you wish to continue
+using GIMP 2.x plugins, install gimp2.
diff --git a/srcpkgs/gimp/patches/atol.patch b/srcpkgs/gimp/patches/atol.patch
new file mode 100644
index 00000000000000..3d660783db053b
--- /dev/null
+++ b/srcpkgs/gimp/patches/atol.patch
@@ -0,0 +1,21 @@
+source: https://github.com/chimera-linux/cports/blob/master/main/gimp/patches/atol.patch
+
+commit f3237e747d854967a5333b5870dc7aae5cd19431
+Author: q66 <q66@chimera-linux.org>
+Date: Fri May 12 02:52:40 2023 +0200
+
+ don't use unsafe atol
+
+diff --git a/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c b/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
+index 5a3b68e..81e8b0d 100644
+--- a/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
++++ b/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
+@@ -1256,7 +1256,7 @@ static pointer mk_atom(scheme *sc, char *q) {
+ if(has_dec_point) {
+ return mk_real(sc,g_ascii_strtod(q,NULL));
+ }
+- return (mk_integer(sc, atol(q)));
++ return (mk_integer(sc, strtol(q, NULL, 10)));
+ }
+
+ /* make atom from sharp expr representing constant.
diff --git a/srcpkgs/gimp/patches/brushes.patch b/srcpkgs/gimp/patches/brushes.patch
new file mode 100644
index 00000000000000..47a7c225dd38ea
--- /dev/null
+++ b/srcpkgs/gimp/patches/brushes.patch
@@ -0,0 +1,15 @@
+source: https://github.com/chimera-linux/cports/blob/master/main/gimp/patches/brushes.patch
+
+diff --git a/meson.build b/meson.build
+index daae225..7744671 100644
+--- a/meson.build
++++ b/meson.build
+@@ -378,7 +378,7 @@ lcms_minver = '2.8'
+ lcms = dependency('lcms2', version: '>='+lcms_minver)
+ libmypaint_minver = '1.3.0'
+ libmypaint = dependency('libmypaint', version: '>='+libmypaint_minver)
+-mypaint_brushes = dependency('mypaint-brushes-1.0',version: '>='+libmypaint_minver)
++mypaint_brushes = dependency('mypaint-brushes-2.0',version: '>='+libmypaint_minver)
+ if not libmypaint.version().version_compare('>=1.4.0')
+ libmypaint_warning='''
+
diff --git a/srcpkgs/gimp/patches/fix-cross.patch b/srcpkgs/gimp/patches/fix-cross.patch
deleted file mode 100644
index 0ffcf9b650b987..00000000000000
--- a/srcpkgs/gimp/patches/fix-cross.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
-+++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
-@@ -14,6 +14,7 @@ else
- libm = -lm
- endif
-
-+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
- libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
- libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
- libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
-@@ -85,6 +86,7 @@ script_fu_SOURCES = \
- scheme-wrapper.h
-
- LDADD = \
-+ $(libgimpmodule) \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpconfig) \
diff --git a/srcpkgs/gimp/patches/fix-segfault.patch b/srcpkgs/gimp/patches/fix-segfault.patch
deleted file mode 100644
index 5f1a6a6d3fe977..00000000000000
--- a/srcpkgs/gimp/patches/fix-segfault.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
-index 064f2c4..b17d82f 100644
---- a/app/dialogs/dialogs.c
-+++ b/app/dialogs/dialogs.c
-@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
- menu_factory);
- gimp_dialog_factory_set_singleton (factory);
-
-- for (i = 0; i < G_N_ELEMENTS (entries); i++)
-+ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
-+ char *name, *blurb;
-+ name = entries[i].name ? gettext(entries[i].name) : NULL;
-+ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
-+
- gimp_dialog_factory_register_entry (factory,
- entries[i].identifier,
-- gettext (entries[i].name),
-- gettext (entries[i].blurb),
-+ name,
-+ blurb,
- entries[i].icon_name,
- entries[i].help_id,
- entries[i].new_func,
-@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
- entries[i].hideable,
- entries[i].image_window,
- entries[i].dockable);
-+ }
-
- global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
- }
-diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
-index 04bd1b6..12eff51 100644
---- a/app/widgets/gimpactiongroup.c
-+++ b/app/widgets/gimpactiongroup.c
-@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_action_impl_new (entries[i].name, label, tooltip,
-@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_toggle_action_new (entries[i].name, label, tooltip,
-@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_radio_action_new (entries[i].name, label, tooltip,
-@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpEnumAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_enum_action_new (entries[i].name, label, tooltip,
-@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp/patches/gcc14.patch b/srcpkgs/gimp/patches/gcc14.patch
deleted file mode 100644
index ceae92fa154c82..00000000000000
--- a/srcpkgs/gimp/patches/gcc14.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Fri, 13 Jan 2023 13:29:07 +0100
-Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
-
-Do not call the undeclared exit function. Implicit function
-declarations are likely not going to be supported by future compilers
-by default, changing the outcome of this configure probe with
-such compilers.
----
- configure.ac | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 03047899841..b8718955471 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
- ]])],
- [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
-diff --git a/configure b/configure
-index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
---- a/configure
-+++ b/configure
-@@ -28898,17 +28898,17 @@ else $as_nop
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
-
- _ACEOF
diff --git a/srcpkgs/gimp/patches/libheif-1.18-compat.patch b/srcpkgs/gimp/patches/libheif-1.18-compat.patch
deleted file mode 100644
index e714d25f2bab6b..00000000000000
--- a/srcpkgs/gimp/patches/libheif-1.18-compat.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/configure.ac 2024-08-29 18:28:19.457012043 -0500
-+++ b/configure.ac 2024-08-29 18:28:29.154953488 -0500
-@@ -1843,13 +1843,13 @@
- can_import_avif=no
- can_export_avif=no
- if test "x$have_libheif" = xyes; then
-- can_import_heic=`$PKG_CONFIG --variable=builtin_h265_decoder libheif`
-- can_export_heic=`$PKG_CONFIG --variable=builtin_h265_encoder libheif`
-+ can_import_heic=yes
-+ can_export_heic=yes
- if test "x$can_import_heic" = xyes; then
- MIME_TYPES="$MIME_TYPES;image/heif;image/heic"
- fi
-- can_import_avif=`$PKG_CONFIG --variable=builtin_avif_decoder libheif`
-- can_export_avif=`$PKG_CONFIG --variable=builtin_avif_encoder libheif`
-+ can_import_avif=yes
-+ can_export_avif=yes
- if test "x$can_import_avif" = xyes; then
- MIME_TYPES="$MIME_TYPES;image/avif"
- fi
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index a50409d5ce5af1..e124731dac642e 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -1,34 +1,36 @@
# Template file for 'gimp'
pkgname=gimp
-version=2.10.38
-revision=3
-build_style=gnu-configure
-configure_args="--disable-check-update --datadir=/usr/share --disable-python"
-hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
- libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
-makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
- ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
- libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
- libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
- poppler-glib-devel glib-networking libwebp-devel
- libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
-depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+version=3.0.0+rc1
+revision=1
+build_style=meson
+build_helper="gir qemu"
+configure_args="-Dcheck-update=no -Drevision=$revision -Denable-default-bin=enabled
+ -Dbug-report-url=https://github.com/void-linux/void-packages/issues/new/choose"
+hostmakedepends="pkg-config xdg-utils perl libxslt gjs LuaJIT desktop-file-utils
+ AppStream gettext gi-docgen gobject-introspection
+ yelp-tools librsvg-devel glib-devel"
+makedepends="babl-devel gtk+3-devel gegl-devel libgexiv2-devel libgirepository-devel
+ libmypaint-devel mypaint-brushes librsvg-devel glib-networking appstream-glib-devel
+ libXmu-devel ghostscript-devel libmng-devel aalib-devel libXpm-devel libopenexr-devel
+ libwebp-devel libheif-devel poppler-glib-devel libwmf-devel libopenjpeg2-devel
+ libjxl-devel alsa-lib-devel cfitsio-devel python3-gobject-devel libgomp-devel
+ libunwind-devel lua51-lgi"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes python3-gobject"
+checkdepends="xvfb-run dbus"
short_desc="GNU image manipulation program"
conf_files="/etc/gimp/${version%%.*}.0/*"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-only"
homepage="https://www.gimp.org"
-changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
-distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
-checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+distfiles="https://download.gimp.org/gimp/v${version%.*}/gimp-${version/+rc/-RC}.tar.xz"
+checksum=b3d0b264c5e38e789faaf3417003397f3240014c59c7f417f9ca3bd39c5ffb66
lib32disabled=yes
-no_generic_pkgconfig_link=yes
-pre_configure() {
- NOCONFIGURE=1 autoreconf -fi
- # don't allow configure to set DATADIRNAME=lib
- vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -Dheadless-tests=enabled"
+else
+ configure_args+=" -Dheadless-tests=disabled"
+fi
libgimp_package() {
short_desc+=" - runtime libraries"
@@ -38,13 +40,16 @@ libgimp_package() {
}
gimp-devel_package() {
- depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}"
+ depends="libgimp>=${version}_${revision} gegl-devel gtk+3-devel libgexiv2-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
- vmove usr/share/gtk-doc
- vmove usr/share/aclocal
vmove "usr/lib/*.so"
+ if [ -z "$CROSS_BUILD" ]; then
+ vmove usr/share/gir-1.0
+ vmove usr/share/vala
+ vmove usr/share/doc
+ fi
}
}
From cae0e9de76e466eb2bcd57a2be93741b22573ed9 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Tue, 11 Jun 2024 21:46:37 -0400
Subject: [PATCH 04/10] New package: gimp2-2.10.38
---
common/shlibs | 9 ++
srcpkgs/gimp2-devel | 1 +
srcpkgs/gimp2/INSTALL | 8 ++
srcpkgs/gimp2/patches/fix-cross.patch | 18 +++
srcpkgs/gimp2/patches/fix-segfault.patch | 169 +++++++++++++++++++++++
srcpkgs/gimp2/patches/gcc14.patch | 63 +++++++++
srcpkgs/gimp2/template | 59 ++++++++
srcpkgs/gimp2/update | 2 +
srcpkgs/libgimp2 | 1 +
9 files changed, 330 insertions(+)
create mode 120000 srcpkgs/gimp2-devel
create mode 100644 srcpkgs/gimp2/INSTALL
create mode 100644 srcpkgs/gimp2/patches/fix-cross.patch
create mode 100644 srcpkgs/gimp2/patches/fix-segfault.patch
create mode 100644 srcpkgs/gimp2/patches/gcc14.patch
create mode 100644 srcpkgs/gimp2/template
create mode 100644 srcpkgs/gimp2/update
create mode 120000 srcpkgs/libgimp2
diff --git a/common/shlibs b/common/shlibs
index 56eb1a2f9ebee1..166b3c61f91706 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -560,6 +560,15 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
+libgimp-2.0.so.0 libgimp2-2.10.38_1
+libgimpwidgets-2.0.so.0 libgimp2-2.10.38_1
+libgimpui-2.0.so.0 libgimp2-2.10.38_1
+libgimpbase-2.0.so.0 libgimp2-2.10.38_1
+libgimpthumb-2.0.so.0 libgimp2-2.10.38_1
+libgimpconfig-2.0.so.0 libgimp2-2.10.38_1
+libgimpmath-2.0.so.0 libgimp2-2.10.38_1
+libgimpcolor-2.0.so.0 libgimp2-2.10.38_1
+libgimpmodule-2.0.so.0 libgimp2-2.10.38_1
libgimp-3.0.so.0 libgimp-2.99.18_1
libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
libgimpui-3.0.so.0 libgimp-2.99.18_1
diff --git a/srcpkgs/gimp2-devel b/srcpkgs/gimp2-devel
new file mode 120000
index 00000000000000..cae4fa79d617de
--- /dev/null
+++ b/srcpkgs/gimp2-devel
@@ -0,0 +1 @@
+gimp2
\ No newline at end of file
diff --git a/srcpkgs/gimp2/INSTALL b/srcpkgs/gimp2/INSTALL
new file mode 100644
index 00000000000000..87064d64438f00
--- /dev/null
+++ b/srcpkgs/gimp2/INSTALL
@@ -0,0 +1,8 @@
+# workaround for https://github.com/void-linux/xbps/issues/14
+case "${ACTION}" in
+pre)
+ if [ "$UPDATE" = "yes" ]; then
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ fi
+ ;;
+esac
diff --git a/srcpkgs/gimp2/patches/fix-cross.patch b/srcpkgs/gimp2/patches/fix-cross.patch
new file mode 100644
index 00000000000000..0ffcf9b650b987
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-cross.patch
@@ -0,0 +1,18 @@
+--- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
++++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
+@@ -14,6 +14,7 @@ else
+ libm = -lm
+ endif
+
++libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
+ libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
+ libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
+ libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
+@@ -85,6 +86,7 @@ script_fu_SOURCES = \
+ scheme-wrapper.h
+
+ LDADD = \
++ $(libgimpmodule) \
+ $(libgimpui) \
+ $(libgimpwidgets) \
+ $(libgimpconfig) \
diff --git a/srcpkgs/gimp2/patches/fix-segfault.patch b/srcpkgs/gimp2/patches/fix-segfault.patch
new file mode 100644
index 00000000000000..5f1a6a6d3fe977
--- /dev/null
+++ b/srcpkgs/gimp2/patches/fix-segfault.patch
@@ -0,0 +1,169 @@
+diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
+index 064f2c4..b17d82f 100644
+--- a/app/dialogs/dialogs.c
++++ b/app/dialogs/dialogs.c
+@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
+ menu_factory);
+ gimp_dialog_factory_set_singleton (factory);
+
+- for (i = 0; i < G_N_ELEMENTS (entries); i++)
++ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
++ char *name, *blurb;
++ name = entries[i].name ? gettext(entries[i].name) : NULL;
++ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
++
+ gimp_dialog_factory_register_entry (factory,
+ entries[i].identifier,
+- gettext (entries[i].name),
+- gettext (entries[i].blurb),
++ name,
++ blurb,
+ entries[i].icon_name,
+ entries[i].help_id,
+ entries[i].new_func,
+@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
+ entries[i].hideable,
+ entries[i].image_window,
+ entries[i].dockable);
++ }
+
+ global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
+ }
+diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
+index 04bd1b6..12eff51 100644
+--- a/app/widgets/gimpactiongroup.c
++++ b/app/widgets/gimpactiongroup.c
+@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_action_impl_new (entries[i].name, label, tooltip,
+@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_toggle_action_new (entries[i].name, label, tooltip,
+@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_radio_action_new (entries[i].name, label, tooltip,
+@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+ for (i = 0; i < n_entries; i++)
+ {
+ GimpEnumAction *action;
+- const gchar *label;
++ const gchar *label = NULL;
+ const gchar *tooltip = NULL;
+
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
+
+ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_enum_action_new (entries[i].name, label, tooltip,
+@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
+ if (! gimp_action_group_check_unique_action (group, entries[i].name))
+ continue;
+
+- if (msg_context)
++ if (msg_context)
+ {
+- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
++ if (entries[i].label)
++ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
+
+ if (entries[i].tooltip)
+ tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
+ }
+ else
+ {
+- label = gettext (entries[i].label);
+- tooltip = gettext (entries[i].tooltip);
++ if (entries[i].label)
++ label = gettext (entries[i].label);
++ if (entries[i].tooltip)
++ tooltip = gettext (entries[i].tooltip);
+ }
+
+ action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp2/patches/gcc14.patch b/srcpkgs/gimp2/patches/gcc14.patch
new file mode 100644
index 00000000000000..ceae92fa154c82
--- /dev/null
+++ b/srcpkgs/gimp2/patches/gcc14.patch
@@ -0,0 +1,63 @@
+From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Fri, 13 Jan 2023 13:29:07 +0100
+Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
+
+Do not call the undeclared exit function. Implicit function
+declarations are likely not going to be supported by future compilers
+by default, changing the outcome of this configure probe with
+such compilers.
+---
+ configure.ac | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 03047899841..b8718955471 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+ ]])],
+ [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
+diff --git a/configure b/configure
+index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
+--- a/configure
++++ b/configure
+@@ -28898,17 +28898,17 @@ else $as_nop
+ char *shmaddr;
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
+ if (id == -1)
+- exit (2);
++ return 2;
+ shmaddr = shmat (id, 0, 0);
+ shmctl (id, IPC_RMID, 0);
+ if ((char*) shmat (id, 0, 0) == (char*) -1)
+ {
+ shmdt (shmaddr);
+- exit (1);
++ return 1;
+ }
+ shmdt (shmaddr);
+ shmdt (shmaddr);
+- exit (0);
++ return 0;
+ }
+
+ _ACEOF
diff --git a/srcpkgs/gimp2/template b/srcpkgs/gimp2/template
new file mode 100644
index 00000000000000..6e4cd9a04cd410
--- /dev/null
+++ b/srcpkgs/gimp2/template
@@ -0,0 +1,59 @@
+# Template file for 'gimp2'
+pkgname=gimp2
+version=2.10.38
+revision=1
+build_style=gnu-configure
+configure_args="--disable-check-update --datadir=/usr/share --disable-python
+ --disable-default-binary"
+hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
+ libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
+makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
+ ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
+ libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
+ libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
+ poppler-glib-devel glib-networking libwebp-devel
+ libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+short_desc="GNU image manipulation program (version 2.x)"
+conf_files="/etc/gimp/${version%%.*}.0/*"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="GPL-3.0-only"
+homepage="https://www.gimp.org"
+changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
+distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
+checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+lib32disabled=yes
+no_generic_pkgconfig_link=yes
+
+pre_configure() {
+ NOCONFIGURE=1 autoreconf -fi
+ # don't allow configure to set DATADIRNAME=lib
+ vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
+}
+
+post_install() {
+ vsed -i -e "s/^Name.*$/& ${version%.*}/" -e "s/^Icon.*$/&-${version%.*}/" "${DESTDIR}/usr/share/applications/gimp.desktop"
+ mv "${DESTDIR}/usr/share/applications/gimp.desktop" "${DESTDIR}/usr/share/applications/gimp-${version%.*}.desktop"
+ find "${DESTDIR}/usr/share/icons/hicolor" -name gimp.png -execdir mv {} "gimp-${version%.*}.png" \;
+ vsed -i -e "s/org.gimp.GIMP/&${version%%.*}/" "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP.appdata.xml"
+ mv "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP.appdata.xml" "${DESTDIR}/usr/share/metainfo/org.gimp.GIMP${version%%.*}.appdata.xml"
+}
+
+libgimp2_package() {
+ short_desc+=" - runtime libraries"
+ pkg_install() {
+ vmove "usr/lib/*.so.*"
+ }
+}
+
+gimp2-devel_package() {
+ depends="gegl-devel gtk+-devel lcms2-devel libgimp2>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/pkgconfig
+ vmove usr/share/gtk-doc
+ vmove usr/share/aclocal
+ vmove "usr/lib/*.so"
+ }
+}
diff --git a/srcpkgs/gimp2/update b/srcpkgs/gimp2/update
new file mode 100644
index 00000000000000..0e2a52581a8290
--- /dev/null
+++ b/srcpkgs/gimp2/update
@@ -0,0 +1,2 @@
+pkgname=gimp
+ignore="*.99.*"
diff --git a/srcpkgs/libgimp2 b/srcpkgs/libgimp2
new file mode 120000
index 00000000000000..cae4fa79d617de
--- /dev/null
+++ b/srcpkgs/libgimp2
@@ -0,0 +1 @@
+gimp2
\ No newline at end of file
From 05b49495c17da17d8212424ff14ce657680b102e Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:08 -0400
Subject: [PATCH 05/10] libjxl: rebuild against libgimp2
gimp 3 supports jxl now, and this would cause a dependency loop
---
srcpkgs/libjxl/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template
index bdf38b2432761f..3d054b570a7662 100644
--- a/srcpkgs/libjxl/template
+++ b/srcpkgs/libjxl/template
@@ -1,7 +1,7 @@
# Template file for 'libjxl'
pkgname=libjxl
version=0.10.3
-revision=2
+revision=3
_testdata_hash=ff8d743aaba05b3014f17e5475e576242fa979fc
build_style=cmake
configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
@@ -9,7 +9,7 @@ configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
-DJPEGXL_ENABLE_SKCMS=OFF"
hostmakedepends="tar pkg-config asciidoc"
makedepends="brotli-devel highway-devel libpng-devel giflib-devel libjpeg-turbo-devel
- libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp-devel lcms2-devel"
+ libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp2-devel lcms2-devel"
checkdepends="gtest-devel xdg-utils"
short_desc="JPEG XL image format reference implementation"
maintainer="Joshua Krämer <joshua@kraemer.link>"
From 5fe4e8076f9d0cdc226421f92c058aefd3fe6a7b Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:09 -0400
Subject: [PATCH 06/10] gmic: rebuild for gimp-3.0.0
---
.../patches/03-plugindir-and-no-wget.patch | 20 +++++++--------
srcpkgs/gmic/patches/gimp3.patch | 25 +++++++++++++++++++
srcpkgs/gmic/template | 25 ++++++++++---------
3 files changed, 47 insertions(+), 23 deletions(-)
create mode 100644 srcpkgs/gmic/patches/gimp3.patch
diff --git a/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch b/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch
index 5b403240efc919..9aa4d7a4c4bbd6 100644
--- a/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch
+++ b/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch
@@ -1,15 +1,13 @@
-Index: gmic-2.9.9/src/Makefile
-===================================================================
---- gmic-2.9.9.orig/src/Makefile
-+++ gmic-2.9.9/src/Makefile
-@@ -67,8 +67,8 @@ INCLUDE = include
- SO = .so
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -86,8 +86,8 @@
+ INCLUDE ?= include
PIC = -fPIC
EXE =
-WGET = wget --no-check-certificate --quiet -O
--PLUGINDIR = $(shell gimptool-2.0 --gimpplugindir)/plug-ins
+-PLUGIN = $(shell gimptool-2.0 --gimpplugindir)/plug-ins
+WGET = false
-+PLUGINDIR = /usr/lib/gimp/2.0/plug-ins
- VERSION = $(shell grep 'gmic_version\ ' gmic.h | tail -c4 | head -c3)
- VERSION1 = $(shell grep 'gmic_version\ ' gmic.h | tail -c4 | head -c1)
- VERSION2 = $(shell grep 'gmic_version\ ' gmic.h | tail -c3 | head -c1)
++PLUGIN = $(shell gimptool-3.0 --gimpplugindir)/plug-ins
+ SHARE = $(PREFIX)/share
+ BASH_COMPLETIONSDIR = $(shell pkg-config --variable completionsdir bash-completion || echo $(SHARE)/bash-completion/completions)
+ VERSION = $(shell grep -F 'gmic_version ' gmic.h | tail -c4 | head -c3)
diff --git a/srcpkgs/gmic/patches/gimp3.patch b/srcpkgs/gmic/patches/gimp3.patch
new file mode 100644
index 00000000000000..471866c5e97d33
--- /dev/null
+++ b/srcpkgs/gmic/patches/gimp3.patch
@@ -0,0 +1,25 @@
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -577,11 +577,11 @@
+ # G'MIC-Qt.
+ #----------
+ gimp: gmic_qt_files CImg.h gmic_stdlib_community.h
+- cd ../gmic-qt && $(QMAKE) CONFIG+=release GMIC_PATH=$(SRC_PATH) PRERELEASE=$(PRERELEASE) GMIC_DYNAMIC_LINKING=off HOST=gimp gmic_qt.pro && $(MAKE)
++ cd ../gmic-qt && $(QMAKE) CONFIG+=release GMIC_PATH=$(SRC_PATH) PRERELEASE=$(PRERELEASE) GMIC_DYNAMIC_LINKING=off HOST=gimp3 gmic_qt.pro && $(MAKE)
+ @echo "Executable 'gmic_gimp_qt' has been successfully compiled in '../gmic-qt/'."
+
+ gimp_debug : gmic_qt_files CImg.h gmic_stdlib_community.h
+- cd ../gmic-qt && $(QMAKE) CONFIG+=debug GMIC_PATH=$(SRC_PATH) ASAN=on PRERELEASE=$(PRERELEASE) GMIC_DYNAMIC_LINKING=off HOST=gimp gmic_qt.pro && $(MAKE)
++ cd ../gmic-qt && $(QMAKE) CONFIG+=debug GMIC_PATH=$(SRC_PATH) ASAN=on PRERELEASE=$(PRERELEASE) GMIC_DYNAMIC_LINKING=off HOST=gimp3 gmic_qt.pro && $(MAKE)
+ @echo "Executable 'gmic_gimp_qt' has been successfully compiled in '../gmic-qt/'."
+
+ gmic_qt: gmic_qt_files CImg.h gmic_stdlib_community.h
+@@ -619,7 +619,7 @@
+ # G'MIC-Qt (shared).
+ #-------------------
+ gimp_shared: gmic_qt_files CImg.h gmic_stdlib_community.h
+- cd ../gmic-qt && $(QMAKE) CONFIG+=release GMIC_PATH=$(SRC_PATH) PRERELEASE=$(PRERELEASE) GMIC_DYNAMIC_LINKING=on HOST=gimp gmic_qt.pro && $(MAKE)
++ cd ../gmic-qt && $(QMAKE) CONFIG+=release GMIC_PATH=$(SRC_PATH) PRERELEASE=$(PRERELEASE) GMIC_DYNAMIC_LINKING=on HOST=gimp3 gmic_qt.pro && $(MAKE)
+ @echo "Executable 'gmic_gimp_qt' has been successfully compiled in '../gmic-qt/'."
+
+ gmic_qt_shared: gmic_qt_files CImg.h gmic_stdlib_community.h
diff --git a/srcpkgs/gmic/template b/srcpkgs/gmic/template
index 24d10147e3abad..14ecc2c7150dd6 100644
--- a/srcpkgs/gmic/template
+++ b/srcpkgs/gmic/template
@@ -1,31 +1,32 @@
# Template file for 'gmic'
pkgname=gmic
-version=3.1.6
-revision=6
-_zart_hash=34ebf6cce0bafb98abe57cec83c4a02cd1abeca0
-create_wrksrc=yes
+version=3.4.3
+revision=1
+_zart_hash=d014169343f835381ad232ee11e077326561c9eb
build_wrksrc="src"
build_style=gnu-makefile
-build_helper=qmake
+build_helper=qmake6
make_build_args="NOSTRIP=yes"
make_use_env=yes
-hostmakedepends="pkg-config gimp qt5-host-tools qt5-qmake"
+hostmakedepends="pkg-config gimp qt6-tools qt6-base"
makedepends="fftw-devel imath-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel lcms2-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
- gtk+-devel gimp-devel qt5-devel"
+ gtk+3-devel gimp-devel qt6-base-devel libwebp-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="CECILL-2.1, CECILL-C"
homepage="https://gmic.eu/"
distfiles="https://gmic.eu/files/source/gmic_${version}.tar.gz
- https://github.com/c-koi/zart/archive/${_zart_hash}.tar.gz"
-checksum="e73d63ba6520637c782b6e5e6805037a27b6255c011c9e2a60a56f9c28822ce4
- 257baa7e8b32ccfac0841c61ec317ad3ad1c2bfe2d44474b2ca879dc33f755f8"
+ https://github.com/c-koi/zart/archive/${_zart_hash}.tar.gz>zart-${_zart_hash}.tar.gz"
+checksum="79951d06db2928c68bad1d352e536af3f454e9a3c09beefc2c1049d8b4084507
+ baebe339566993194f98a71895bff09520b08f38e66eae215758aaa260557bcf"
disable_parallel_build="yes"
+skip_extraction="zart-${_zart_hash}.tar.gz"
+
+broken="https://github.com/c-koi/gmic-qt/issues/213"
post_extract() {
- mv gmic-${version}/* .
- mv zart-${_zart_hash} zart
+ vsrcextract -C zart zart-${_zart_hash}.tar.gz
}
post_install() {
From 11dcdeb63d229b53a5213f3f4a10328272c2be4a Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:10 -0400
Subject: [PATCH 07/10] nufraw: rebuild against libgimp2
---
srcpkgs/nufraw/template | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/nufraw/template b/srcpkgs/nufraw/template
index 551f263df96d38..1acceb721d13ed 100644
--- a/srcpkgs/nufraw/template
+++ b/srcpkgs/nufraw/template
@@ -1,15 +1,13 @@
# Template file for 'nufraw'
pkgname=nufraw
version=0.43.3
-revision=1
+revision=2
_ver="${version%.*}-${version##*.}"
build_style=gnu-configure
configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
--enable-extras"
hostmakedepends="pkg-config automake libtool glib-devel"
-# libgexiv2-devel is only here to fix build order, remove on next template
-# change
-makedepends="exiv2-devel gimp-devel glib-devel gtkimageview-devel lcms2-devel
+makedepends="gimp2-devel glib-devel gtkimageview-devel lcms2-devel
lensfun-devel jasper-devel libgexiv2-devel"
depends="desktop-file-utils"
short_desc="Utility to read and manipulate raw images from digital cameras"
@@ -18,6 +16,7 @@ license="GPL-2.0-or-later"
homepage="https://sourceforge.net/projects/nufraw/"
distfiles="${SOURCEFORGE_SITE}/nufraw/nufraw-${_ver}.tar.gz"
checksum=2c7dcc1590993ec267b3112562b2433010d6f94f6acc6506c76aa29cf8c6c32c
+conflicts="dcraw>=0"
case "$XBPS_TARGET_MACHINE" in
armv[67]l* | aarch64* | riscv64*)
@@ -36,8 +35,8 @@ pre_build() {
}
nufraw-gimp_package() {
- depends="${sourcepkg}>=${version}_${revision}"
- short_desc+=" - gimp plugin"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - GIMP 2 plugin"
pkg_install() {
vmove usr/lib/gimp
}
From b14dd2d1fe57e54f8e3c36d0e9bc00b194d71c8e Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 08/10] xsane: rebuild against libgimp2
https://gitlab.com/sane-project/frontend/xsane/-/issues/66
---
srcpkgs/xsane/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 7dde32af2b674c..67c53e94489fab 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -1,9 +1,9 @@
# Template file for 'xsane'
pkgname=xsane
version=0.999
-revision=5
+revision=6
hostmakedepends="pkg-config sane-devel gettext"
-makedepends="gtk+-devel lcms-devel sane-devel gimp-devel"
+makedepends="gtk+-devel lcms-devel sane-devel gimp2-devel"
depends="sane"
short_desc="GTK-based X11 frontend for SANE"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -36,8 +36,8 @@ do_install() {
}
xsane-gimp_package() {
- short_desc+=" - plugin for GIMP"
- depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - plugin for GIMP 2"
+ depends="gimp2 ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vbin src/xsane-gimp
vmkdir usr/lib/gimp/2.0/plug-ins
From f4b489ab196e8a21062328b028dbd5275fb55efb Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:11 -0400
Subject: [PATCH 09/10] gimp-lqr-plugin: rebuild against libgimp2
https://github.com/carlobaldassi/gimp-lqr-plugin/issues/17
---
srcpkgs/gimp-lqr-plugin/template | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gimp-lqr-plugin/template b/srcpkgs/gimp-lqr-plugin/template
index 7878f6cb795d24..33a395c67a8583 100644
--- a/srcpkgs/gimp-lqr-plugin/template
+++ b/srcpkgs/gimp-lqr-plugin/template
@@ -1,11 +1,12 @@
# Template file for 'gimp-lqr-plugin'
pkgname=gimp-lqr-plugin
version=0.7.2
-revision=2
+revision=3
build_style=gnu-configure
hostmakedepends="automake intltool pkg-config"
-makedepends="gimp-devel glib-devel gettext-devel liblqr-devel"
-short_desc="Gimp plugins for image resizing through seam carving"
+makedepends="gimp2-devel glib-devel gettext-devel liblqr-devel"
+depends="gimp2"
+short_desc="GIMP 2 plugins for image resizing through seam carving"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://liquidrescale.wikidot.com/"
From f9cabe8bb6bbb62bffe69b8a3395d0d31753c2f6 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 03:22:14 -0400
Subject: [PATCH 10/10] resynthesizer: update to 2.0.3+3.
WIP gimp 3 port: https://github.com/bootchk/resynthesizer/issues/135
---
srcpkgs/resynthesizer/template | 29 +++++++++--------------------
1 file changed, 9 insertions(+), 20 deletions(-)
diff --git a/srcpkgs/resynthesizer/template b/srcpkgs/resynthesizer/template
index a58b0eec995854..271cc419fd005a 100644
--- a/srcpkgs/resynthesizer/template
+++ b/srcpkgs/resynthesizer/template
@@ -1,26 +1,15 @@
# Template file for 'resynthesizer'
pkgname=resynthesizer
-version=2.0.3+1
+version=2.0.3+3
revision=1
-_commit=701e890d1d456e215e05daa7b4a88f5d9c6c03b3
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
+_commit=12a967da9d723321b06e37c2b601cb77c320aedd
+build_style=meson
+hostmakedepends="pkg-config"
makedepends="gimp-devel glib-devel gettext-devel"
-short_desc="Suite of gimp plugins for texture healing and synthesis"
+depends="gimp"
+short_desc="Suite of GIMP plugins for texture healing and synthesis"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
-# FIXME: when gimp 3 is available, switch back to bootchk upstream
-#homepage="https://github.com/bootchk/resynthesizer"
-#distfiles="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${version}.tar.gz"
-homepage="https://github.com/itr-tert/gimp-resynthesizer-scm"
-distfiles="https://github.com/itr-tert/gimp-resynthesizer-scm/archive/${_commit}.tar.gz"
-checksum=298286386466fbd6d2da06f8a920c6e6e313db7ca0a094a36a355978a64cefc0
-
-if [ "$CROSS_BUILD" ];then
- hostmakedepends+=" glib-devel gettext-devel"
- AUTOGEN_CONFIGURE_ARGS+=" --host=${XBPS_MACHINE%-musl} --build=${XBPS_CROSS_TRIPLET}"
-fi
-
-pre_configure() {
- ./autogen.sh ${AUTOGEN_CONFIGURE_ARGS}
-}
+homepage="https://github.com/bootchk/resynthesizer"
+distfiles="https://github.com/bootchk/resynthesizer/archive/${_commit}.tar.gz"
+checksum=de92e808b7415e44c8b6305f2e2e7985269dfc774d00ad06ee323d243f51bef8
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PR PATCH] [Updated] GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
` (12 preceding siblings ...)
2024-12-14 22:54 ` classabbyamp
@ 2025-02-09 23:08 ` classabbyamp
2025-02-10 0:15 ` classabbyamp
` (2 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2025-02-09 23:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
There is an updated pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages gimp3
https://github.com/void-linux/void-packages/pull/49890
GIMP 3
WIP until at minimum the full GIMP 3 release, expected in about a month: https://gitlab.gnome.org/GNOME/gimp/-/issues/10373
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
#### Plugins
- [ ] nufraw - not (yet) compatible
- [x] resynthesizer - compatible on in-dev branch
- [ ] gmic - not (yet) compatible
- [ ] xsane
- [ ] gimp-lqr-plugin - not (yet) compatible)
- [x] libjxl - disable because gimp supports it directly now
A patch file from https://github.com/void-linux/void-packages/pull/49890.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gimp3-49890.patch --]
[-- Type: text/x-diff, Size: 42065 bytes --]
From db168a31221d3e362559d4f2a9b6f3e8d2c47ffe Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:35 -0400
Subject: [PATCH 01/10] gegl: update to 0.4.52.
---
common/shlibs | 6 +++---
srcpkgs/gegl/template | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/common/shlibs b/common/shlibs
index d402931a0fe9a4..7e034b09e162a1 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -2406,9 +2406,9 @@ libopenrawgnome.so.7 libopenraw-0.1.0_1
libclutter-gst-3.0.so.0 clutter-gst3-3.0.4_1
libgsound.so.0 gsound-1.0.1_1
libproc2.so.0 procps-ng-4.0.3_1
-libgegl-0.4.so.0 gegl-0.4.16_1
-libgegl-npd-0.4.so gegl-0.4.16_1
-libgegl-sc-0.4.so gegl-0.4.16_1
+libgegl-0.4.so.0 gegl-0.4.52_1
+libgegl-npd-0.4.so gegl-0.4.52_1
+libgegl-sc-0.4.so gegl-0.4.52_1
libgnunettransportmonitor.so.0 gnunet-0.12.2_1
libgnunettransporttesting.so.0 gnunet-0.12.2_1
libgnunettransporttesting2.so.0 gnunet-0.12.2_1
diff --git a/srcpkgs/gegl/template b/srcpkgs/gegl/template
index d8fe9c9c5964b3..b3a0dc44c1695d 100644
--- a/srcpkgs/gegl/template
+++ b/srcpkgs/gegl/template
@@ -1,7 +1,7 @@
# Template file for 'gegl'
pkgname=gegl
-version=0.4.46
-revision=3
+version=0.4.52
+revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dintrospection=true -Dvapigen=enabled
@@ -18,7 +18,7 @@ license="GPL-3.0-only, LGPL-3.0-only"
homepage="https://gegl.org/"
changelog="https://gitlab.gnome.org/GNOME/gegl/-/raw/master/docs/NEWS.adoc"
distfiles="https://download.gimp.org/pub/gegl/${version%.*}/gegl-${version}.tar.xz"
-checksum=d0b3b2481bc8774c5f3d0a487611910166d18eef823a859fb91e781ab7b1e892
+checksum=ca212a0fc3e0448c5058c51ca6a0d30fdfb02971f21f28820da2b4901396000a
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From 78eac164cebe8a6de07c3f898bac42a52388d9fe Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Wed, 6 Nov 2024 12:41:45 -0500
Subject: [PATCH 02/10] babl: update to 0.1.110.
---
common/shlibs | 2 +-
srcpkgs/babl/template | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/common/shlibs b/common/shlibs
index 7e034b09e162a1..ba8b336fd22562 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -532,7 +532,7 @@ libkImageAnnotator.so.0 kImageAnnotator-0.7.1_1
libkImageAnnotator-Qt5.so.0 kImageAnnotator-qt5-0.7.1_1
libkColorPicker.so.0 kColorPicker-0.3.1_1
libkColorPicker-Qt5.so.0 kColorPicker-qt5-0.3.1_1
-libbabl-0.1.so.0 babl-0.1.16_1
+libbabl-0.1.so.0 babl-0.1.106_1
libbamf3.so.2 bamf-0.5.1_1
libicuio.so.73 icu-libs-73.2_1
libicui18n.so.73 icu-libs-73.2_1
diff --git a/srcpkgs/babl/template b/srcpkgs/babl/template
index a635b6b485feca..a4c0df506a804f 100644
--- a/srcpkgs/babl/template
+++ b/srcpkgs/babl/template
@@ -1,6 +1,6 @@
# Template file for 'babl'
pkgname=babl
-version=0.1.106
+version=0.1.110
revision=1
build_style=meson
build_helper=gir
@@ -13,7 +13,7 @@ license="LGPL-3.0-only"
homepage="https://gegl.org/babl/"
changelog="https://gitlab.gnome.org/GNOME/babl/-/raw/master/NEWS"
distfiles="https://download.gimp.org/pub/babl/${version%.*}/babl-${version}.tar.xz"
-checksum=d325135d3304f088c134cc620013acf035de2e5d125a50a2d91054e7377c415f
+checksum=bf47be7540d6275389f66431ef03064df5376315e243d0bab448c6aa713f5743
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From 02b6a6047a6112f3b8267c01675b67d3912f210b Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:29 -0400
Subject: [PATCH 03/10] gimp: update to 3.0.0+rc2.
---
common/shlibs | 47 ++++-
srcpkgs/gimp-python | 1 -
srcpkgs/gimp/INSTALL | 2 +-
srcpkgs/gimp/INSTALL.msg | 2 +
srcpkgs/gimp/patches/atol.patch | 21 +++
srcpkgs/gimp/patches/brushes.patch | 15 ++
srcpkgs/gimp/patches/fix-cross.patch | 18 --
srcpkgs/gimp/patches/fix-segfault.patch | 169 ------------------
srcpkgs/gimp/patches/gcc14.patch | 63 -------
.../gimp/patches/libheif-1.18-compat.patch | 20 ---
srcpkgs/gimp/template | 55 +++---
11 files changed, 107 insertions(+), 306 deletions(-)
delete mode 120000 srcpkgs/gimp-python
create mode 100644 srcpkgs/gimp/INSTALL.msg
create mode 100644 srcpkgs/gimp/patches/atol.patch
create mode 100644 srcpkgs/gimp/patches/brushes.patch
delete mode 100644 srcpkgs/gimp/patches/fix-cross.patch
delete mode 100644 srcpkgs/gimp/patches/fix-segfault.patch
delete mode 100644 srcpkgs/gimp/patches/gcc14.patch
delete mode 100644 srcpkgs/gimp/patches/libheif-1.18-compat.patch
diff --git a/common/shlibs b/common/shlibs
index ba8b336fd22562..da2072fc82dbaa 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -556,17 +556,46 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
-libgimp-2.0.so.0 libgimp-2.10.0_1
-libgimpwidgets-2.0.so.0 libgimp-2.10.0_1
-libgimpui-2.0.so.0 libgimp-2.10.0_1
-libgimpbase-2.0.so.0 libgimp-2.10.0_1
-libgimpthumb-2.0.so.0 libgimp-2.10.0_1
-libgimpconfig-2.0.so.0 libgimp-2.10.0_1
-libgimpmath-2.0.so.0 libgimp-2.10.0_1
-libgimpcolor-2.0.so.0 libgimp-2.10.0_1
-libgimpmodule-2.0.so.0 libgimp-2.10.0_1
+libgimp-3.0.so.0 libgimp-2.99.18_1
+libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
+libgimpui-3.0.so.0 libgimp-2.99.18_1
+libgimpbase-3.0.so.0 libgimp-2.99.18_1
+libgimpthumb-3.0.so.0 libgimp-2.99.18_1
+libgimpconfig-3.0.so.0 libgimp-2.99.18_1
+libgimpmath-3.0.so.0 libgimp-2.99.18_1
+libgimpcolor-3.0.so.0 libgimp-2.99.18_1
+libgimpmodule-3.0.so.0 libgimp-2.99.18_1
+libgimp-2.0.so.0 libgimp2-2.10.38_1
+libgimpwidgets-2.0.so.0 libgimp2-2.10.38_1
+libgimpui-2.0.so.0 libgimp2-2.10.38_1
+libgimpbase-2.0.so.0 libgimp2-2.10.38_1
+libgimpthumb-2.0.so.0 libgimp2-2.10.38_1
+libgimpconfig-2.0.so.0 libgimp2-2.10.38_1
+libgimpmath-2.0.so.0 libgimp2-2.10.38_1
+libgimpcolor-2.0.so.0 libgimp2-2.10.38_1
+libgimpmodule-2.0.so.0 libgimp2-2.10.38_1
+libgimp-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpwidgets-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpui-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpbase-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpthumb-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpconfig-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpmath-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpcolor-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpmodule-3.0.so.0 libgimp-3.0.0+rc1_1
libgmic.so.3 gmic-3.1.6_1
libcgmic.so.3 gmic-3.1.6_1
+libgimp-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpwidgets-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpui-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpbase-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpthumb-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpconfig-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpmath-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpcolor-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpmodule-3.0.so.0 libgimp-3.0.0+rc2_1
+libgmic.so.3 libgmic-3.5.2_1
+libcgmic.so.3 libgmic-3.5.2_1
libexiv2.so.28 exiv2-0.28.1_1
libKF5Holidays.so.5 kholidays-5.47.0_1
libPhabricatorHelpers.so.5 purpose-5.48.0_1
diff --git a/srcpkgs/gimp-python b/srcpkgs/gimp-python
deleted file mode 120000
index 92344a4bb4a963..00000000000000
--- a/srcpkgs/gimp-python
+++ /dev/null
@@ -1 +0,0 @@
-gimp
\ No newline at end of file
diff --git a/srcpkgs/gimp/INSTALL b/srcpkgs/gimp/INSTALL
index 87064d64438f00..daeff6b33cec0f 100644
--- a/srcpkgs/gimp/INSTALL
+++ b/srcpkgs/gimp/INSTALL
@@ -2,7 +2,7 @@
case "${ACTION}" in
pre)
if [ "$UPDATE" = "yes" ]; then
- xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm -f
fi
;;
esac
diff --git a/srcpkgs/gimp/INSTALL.msg b/srcpkgs/gimp/INSTALL.msg
new file mode 100644
index 00000000000000..24e3bddd8303ba
--- /dev/null
+++ b/srcpkgs/gimp/INSTALL.msg
@@ -0,0 +1,2 @@
+GIMP 3 breaks compatibility with many plugins. If you wish to continue
+using GIMP 2.x plugins, install gimp2.
diff --git a/srcpkgs/gimp/patches/atol.patch b/srcpkgs/gimp/patches/atol.patch
new file mode 100644
index 00000000000000..3d660783db053b
--- /dev/null
+++ b/srcpkgs/gimp/patches/atol.patch
@@ -0,0 +1,21 @@
+source: https://github.com/chimera-linux/cports/blob/master/main/gimp/patches/atol.patch
+
+commit f3237e747d854967a5333b5870dc7aae5cd19431
+Author: q66 <q66@chimera-linux.org>
+Date: Fri May 12 02:52:40 2023 +0200
+
+ don't use unsafe atol
+
+diff --git a/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c b/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
+index 5a3b68e..81e8b0d 100644
+--- a/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
++++ b/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
+@@ -1256,7 +1256,7 @@ static pointer mk_atom(scheme *sc, char *q) {
+ if(has_dec_point) {
+ return mk_real(sc,g_ascii_strtod(q,NULL));
+ }
+- return (mk_integer(sc, atol(q)));
++ return (mk_integer(sc, strtol(q, NULL, 10)));
+ }
+
+ /* make atom from sharp expr representing constant.
diff --git a/srcpkgs/gimp/patches/brushes.patch b/srcpkgs/gimp/patches/brushes.patch
new file mode 100644
index 00000000000000..47a7c225dd38ea
--- /dev/null
+++ b/srcpkgs/gimp/patches/brushes.patch
@@ -0,0 +1,15 @@
+source: https://github.com/chimera-linux/cports/blob/master/main/gimp/patches/brushes.patch
+
+diff --git a/meson.build b/meson.build
+index daae225..7744671 100644
+--- a/meson.build
++++ b/meson.build
+@@ -378,7 +378,7 @@ lcms_minver = '2.8'
+ lcms = dependency('lcms2', version: '>='+lcms_minver)
+ libmypaint_minver = '1.3.0'
+ libmypaint = dependency('libmypaint', version: '>='+libmypaint_minver)
+-mypaint_brushes = dependency('mypaint-brushes-1.0',version: '>='+libmypaint_minver)
++mypaint_brushes = dependency('mypaint-brushes-2.0',version: '>='+libmypaint_minver)
+ if not libmypaint.version().version_compare('>=1.4.0')
+ libmypaint_warning='''
+
diff --git a/srcpkgs/gimp/patches/fix-cross.patch b/srcpkgs/gimp/patches/fix-cross.patch
deleted file mode 100644
index 0ffcf9b650b987..00000000000000
--- a/srcpkgs/gimp/patches/fix-cross.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
-+++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
-@@ -14,6 +14,7 @@ else
- libm = -lm
- endif
-
-+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
- libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
- libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
- libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
-@@ -85,6 +86,7 @@ script_fu_SOURCES = \
- scheme-wrapper.h
-
- LDADD = \
-+ $(libgimpmodule) \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpconfig) \
diff --git a/srcpkgs/gimp/patches/fix-segfault.patch b/srcpkgs/gimp/patches/fix-segfault.patch
deleted file mode 100644
index 5f1a6a6d3fe977..00000000000000
--- a/srcpkgs/gimp/patches/fix-segfault.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
-index 064f2c4..b17d82f 100644
---- a/app/dialogs/dialogs.c
-+++ b/app/dialogs/dialogs.c
-@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
- menu_factory);
- gimp_dialog_factory_set_singleton (factory);
-
-- for (i = 0; i < G_N_ELEMENTS (entries); i++)
-+ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
-+ char *name, *blurb;
-+ name = entries[i].name ? gettext(entries[i].name) : NULL;
-+ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
-+
- gimp_dialog_factory_register_entry (factory,
- entries[i].identifier,
-- gettext (entries[i].name),
-- gettext (entries[i].blurb),
-+ name,
-+ blurb,
- entries[i].icon_name,
- entries[i].help_id,
- entries[i].new_func,
-@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
- entries[i].hideable,
- entries[i].image_window,
- entries[i].dockable);
-+ }
-
- global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
- }
-diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
-index 04bd1b6..12eff51 100644
---- a/app/widgets/gimpactiongroup.c
-+++ b/app/widgets/gimpactiongroup.c
-@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_action_impl_new (entries[i].name, label, tooltip,
-@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_toggle_action_new (entries[i].name, label, tooltip,
-@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_radio_action_new (entries[i].name, label, tooltip,
-@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpEnumAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_enum_action_new (entries[i].name, label, tooltip,
-@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp/patches/gcc14.patch b/srcpkgs/gimp/patches/gcc14.patch
deleted file mode 100644
index ceae92fa154c82..00000000000000
--- a/srcpkgs/gimp/patches/gcc14.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Fri, 13 Jan 2023 13:29:07 +0100
-Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
-
-Do not call the undeclared exit function. Implicit function
-declarations are likely not going to be supported by future compilers
-by default, changing the outcome of this configure probe with
-such compilers.
----
- configure.ac | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 03047899841..b8718955471 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
- ]])],
- [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
-diff --git a/configure b/configure
-index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
---- a/configure
-+++ b/configure
-@@ -28898,17 +28898,17 @@ else $as_nop
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
-
- _ACEOF
diff --git a/srcpkgs/gimp/patches/libheif-1.18-compat.patch b/srcpkgs/gimp/patches/libheif-1.18-compat.patch
deleted file mode 100644
index e714d25f2bab6b..00000000000000
--- a/srcpkgs/gimp/patches/libheif-1.18-compat.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/configure.ac 2024-08-29 18:28:19.457012043 -0500
-+++ b/configure.ac 2024-08-29 18:28:29.154953488 -0500
-@@ -1843,13 +1843,13 @@
- can_import_avif=no
- can_export_avif=no
- if test "x$have_libheif" = xyes; then
-- can_import_heic=`$PKG_CONFIG --variable=builtin_h265_decoder libheif`
-- can_export_heic=`$PKG_CONFIG --variable=builtin_h265_encoder libheif`
-+ can_import_heic=yes
-+ can_export_heic=yes
- if test "x$can_import_heic" = xyes; then
- MIME_TYPES="$MIME_TYPES;image/heif;image/heic"
- fi
-- can_import_avif=`$PKG_CONFIG --variable=builtin_avif_decoder libheif`
-- can_export_avif=`$PKG_CONFIG --variable=builtin_avif_encoder libheif`
-+ can_import_avif=yes
-+ can_export_avif=yes
- if test "x$can_import_avif" = xyes; then
- MIME_TYPES="$MIME_TYPES;image/avif"
- fi
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index a50409d5ce5af1..99e7a5931214db 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -1,34 +1,36 @@
# Template file for 'gimp'
pkgname=gimp
-version=2.10.38
-revision=3
-build_style=gnu-configure
-configure_args="--disable-check-update --datadir=/usr/share --disable-python"
-hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
- libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
-makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
- ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
- libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
- libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
- poppler-glib-devel glib-networking libwebp-devel
- libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
-depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+version=3.0.0+rc2
+revision=1
+build_style=meson
+build_helper="gir qemu"
+configure_args="-Dcheck-update=no -Drevision=$revision -Denable-default-bin=enabled
+ -Dbug-report-url=https://github.com/void-linux/void-packages/issues/new/choose"
+hostmakedepends="pkg-config xdg-utils perl libxslt gjs LuaJIT desktop-file-utils
+ AppStream gettext gi-docgen gobject-introspection
+ yelp-tools librsvg-devel glib-devel"
+makedepends="babl-devel gtk+3-devel gegl-devel libgexiv2-devel libgirepository-devel
+ libmypaint-devel mypaint-brushes librsvg-devel glib-networking appstream-glib-devel
+ libXmu-devel ghostscript-devel libmng-devel aalib-devel libXpm-devel libopenexr-devel
+ libwebp-devel libheif-devel poppler-glib-devel libwmf-devel libopenjpeg2-devel
+ libjxl-devel alsa-lib-devel cfitsio-devel python3-gobject-devel libgomp-devel
+ libunwind-devel lua51-lgi"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes python3-gobject"
+checkdepends="xvfb-run dbus"
short_desc="GNU image manipulation program"
conf_files="/etc/gimp/${version%%.*}.0/*"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-only"
homepage="https://www.gimp.org"
-changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
-distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
-checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+distfiles="https://download.gimp.org/gimp/v${version%.*}/gimp-${version/+rc/-RC}.tar.xz"
+checksum=f4d2f96df180ce5543f8b2b35707b9bf11459f00f726ca73da2f406d686d9db7
lib32disabled=yes
-no_generic_pkgconfig_link=yes
-pre_configure() {
- NOCONFIGURE=1 autoreconf -fi
- # don't allow configure to set DATADIRNAME=lib
- vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -Dheadless-tests=enabled"
+else
+ configure_args+=" -Dheadless-tests=disabled"
+fi
libgimp_package() {
short_desc+=" - runtime libraries"
@@ -38,13 +40,16 @@ libgimp_package() {
}
gimp-devel_package() {
- depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}"
+ depends="libgimp>=${version}_${revision} gegl-devel gtk+3-devel libgexiv2-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
- vmove usr/share/gtk-doc
- vmove usr/share/aclocal
vmove "usr/lib/*.so"
+ if [ -z "$CROSS_BUILD" ]; then
+ vmove usr/share/gir-1.0
+ vmove usr/share/vala
+ vmove usr/share/doc
+ fi
}
}
From d19f8d5e3817eeb7afc14e14b5db6e9a40fa525f Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:09 -0400
Subject: [PATCH 04/10] gmic: update to 3.5.2.
---
.../patches/03-plugindir-and-no-wget.patch | 20 +++++------
srcpkgs/gmic/template | 34 +++++++++++--------
srcpkgs/libgmic | 1 +
3 files changed, 29 insertions(+), 26 deletions(-)
create mode 120000 srcpkgs/libgmic
diff --git a/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch b/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch
index 5b403240efc919..6317fd24592c50 100644
--- a/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch
+++ b/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch
@@ -1,15 +1,13 @@
-Index: gmic-2.9.9/src/Makefile
-===================================================================
---- gmic-2.9.9.orig/src/Makefile
-+++ gmic-2.9.9/src/Makefile
-@@ -67,8 +67,8 @@ INCLUDE = include
- SO = .so
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -86,8 +86,8 @@
+ INCLUDE ?= include
PIC = -fPIC
EXE =
-WGET = wget --no-check-certificate --quiet -O
--PLUGINDIR = $(shell gimptool-2.0 --gimpplugindir)/plug-ins
+-PLUGIN = $(shell gimptool-2.0 --gimpplugindir)/plug-ins
+WGET = false
-+PLUGINDIR = /usr/lib/gimp/2.0/plug-ins
- VERSION = $(shell grep 'gmic_version\ ' gmic.h | tail -c4 | head -c3)
- VERSION1 = $(shell grep 'gmic_version\ ' gmic.h | tail -c4 | head -c1)
- VERSION2 = $(shell grep 'gmic_version\ ' gmic.h | tail -c3 | head -c1)
++PLUGIN = $(shell gimptool-3.0 --gimpplugindir)/plug-ins/gmic_gimp_qt
+ SHARE = $(PREFIX)/share
+ BASH_COMPLETIONSDIR = $(shell pkg-config --variable completionsdir bash-completion || echo $(SHARE)/bash-completion/completions)
+ VERSION = $(shell grep -F 'gmic_version ' gmic.h | tail -c4 | head -c3)
diff --git a/srcpkgs/gmic/template b/srcpkgs/gmic/template
index 24d10147e3abad..099856f7f5554e 100644
--- a/srcpkgs/gmic/template
+++ b/srcpkgs/gmic/template
@@ -1,48 +1,52 @@
# Template file for 'gmic'
pkgname=gmic
-version=3.1.6
-revision=6
-_zart_hash=34ebf6cce0bafb98abe57cec83c4a02cd1abeca0
-create_wrksrc=yes
+version=3.5.2
+revision=1
+_zart_hash=d014169343f835381ad232ee11e077326561c9eb
build_wrksrc="src"
build_style=gnu-makefile
build_helper=qmake
-make_build_args="NOSTRIP=yes"
+make_build_args="NOSTRIP=yes lib libc cli gmic_qt gimp_shared zart"
make_use_env=yes
hostmakedepends="pkg-config gimp qt5-host-tools qt5-qmake"
makedepends="fftw-devel imath-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel lcms2-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
- gtk+-devel gimp-devel qt5-devel"
+ gimp-devel qt5-devel libwebp-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="CECILL-2.1, CECILL-C"
homepage="https://gmic.eu/"
-distfiles="https://gmic.eu/files/source/gmic_${version}.tar.gz
- https://github.com/c-koi/zart/archive/${_zart_hash}.tar.gz"
-checksum="e73d63ba6520637c782b6e5e6805037a27b6255c011c9e2a60a56f9c28822ce4
- 257baa7e8b32ccfac0841c61ec317ad3ad1c2bfe2d44474b2ca879dc33f755f8"
+distfiles="https://gmic.eu/files/source/gmic_${version}.tar.gz"
+checksum="5893b6e87a52792e12af2b51121465d6202a2310c2a751c5c9785910ff55dc14
+ baebe339566993194f98a71895bff09520b08f38e66eae215758aaa260557bcf"
disable_parallel_build="yes"
+skip_extraction="zart-${_zart_hash}.tar.gz"
post_extract() {
- mv gmic-${version}/* .
- mv zart-${_zart_hash} zart
+ vsrcextract -C zart zart-${_zart_hash}.tar.gz
}
post_install() {
vlicense ../COPYING
}
+libgmic_package() {
+ short_desc+=" - libraries"
+ pkg_install() {
+ vmove "usr/lib/*.so.*"
+ }
+}
+
gmic-gimp_package() {
short_desc+=" - GIMP plugin"
- depends="gimp ${sourcepkg}>=${version}_${revision}"
+ depends="gimp"
pkg_install() {
- vmove usr/lib/gimp
+ vmove "usr/lib/gimp"
}
}
gmic-zart_package() {
short_desc+=" - ZArt tool"
- depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin/zart
vmove usr/share/applications/zart.desktop
diff --git a/srcpkgs/libgmic b/srcpkgs/libgmic
new file mode 120000
index 00000000000000..433883885ce6f3
--- /dev/null
+++ b/srcpkgs/libgmic
@@ -0,0 +1 @@
+gmic
\ No newline at end of file
From 9abc06c0217f265dda930a29c14fd0823593093e Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 03:22:14 -0400
Subject: [PATCH 05/10] resynthesizer: update to 2.0.3+4.
WIP gimp 3 port: https://github.com/bootchk/resynthesizer/issues/135
---
srcpkgs/resynthesizer/template | 29 +++++++++--------------------
1 file changed, 9 insertions(+), 20 deletions(-)
diff --git a/srcpkgs/resynthesizer/template b/srcpkgs/resynthesizer/template
index a58b0eec995854..69ed889aa12e31 100644
--- a/srcpkgs/resynthesizer/template
+++ b/srcpkgs/resynthesizer/template
@@ -1,26 +1,15 @@
# Template file for 'resynthesizer'
pkgname=resynthesizer
-version=2.0.3+1
+version=2.0.3+4
revision=1
-_commit=701e890d1d456e215e05daa7b4a88f5d9c6c03b3
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
+_commit=eed3bf8f0414d088b7401becf5f04a9a82d79b45
+build_style=meson
+hostmakedepends="pkg-config"
makedepends="gimp-devel glib-devel gettext-devel"
-short_desc="Suite of gimp plugins for texture healing and synthesis"
+depends="gimp"
+short_desc="Suite of GIMP plugins for texture healing and synthesis"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
-# FIXME: when gimp 3 is available, switch back to bootchk upstream
-#homepage="https://github.com/bootchk/resynthesizer"
-#distfiles="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${version}.tar.gz"
-homepage="https://github.com/itr-tert/gimp-resynthesizer-scm"
-distfiles="https://github.com/itr-tert/gimp-resynthesizer-scm/archive/${_commit}.tar.gz"
-checksum=298286386466fbd6d2da06f8a920c6e6e313db7ca0a094a36a355978a64cefc0
-
-if [ "$CROSS_BUILD" ];then
- hostmakedepends+=" glib-devel gettext-devel"
- AUTOGEN_CONFIGURE_ARGS+=" --host=${XBPS_MACHINE%-musl} --build=${XBPS_CROSS_TRIPLET}"
-fi
-
-pre_configure() {
- ./autogen.sh ${AUTOGEN_CONFIGURE_ARGS}
-}
+homepage="https://github.com/bootchk/resynthesizer"
+distfiles="https://github.com/bootchk/resynthesizer/archive/${_commit}.tar.gz"
+checksum=c0d2a2af2ddbae5c54ac3f686d0422e9aec7931c5482a8783bdd38f98a1e8211
From 99e56c88fd44f082c2f6875f9060cb56e875be5d Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 17:47:53 -0500
Subject: [PATCH 06/10] libjxl: disable gimp plugin
no longer needed, gimp 3 has native support
---
srcpkgs/libjxl/template | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template
index bdf38b2432761f..8159c04a1f4025 100644
--- a/srcpkgs/libjxl/template
+++ b/srcpkgs/libjxl/template
@@ -1,7 +1,7 @@
# Template file for 'libjxl'
pkgname=libjxl
version=0.10.3
-revision=2
+revision=3
_testdata_hash=ff8d743aaba05b3014f17e5475e576242fa979fc
build_style=cmake
configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
@@ -9,7 +9,7 @@ configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
-DJPEGXL_ENABLE_SKCMS=OFF"
hostmakedepends="tar pkg-config asciidoc"
makedepends="brotli-devel highway-devel libpng-devel giflib-devel libjpeg-turbo-devel
- libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp-devel lcms2-devel"
+ libopenexr-devel libwebp-devel gdk-pixbuf-devel lcms2-devel"
checkdepends="gtest-devel xdg-utils"
short_desc="JPEG XL image format reference implementation"
maintainer="Joshua Krämer <joshua@kraemer.link>"
@@ -64,7 +64,6 @@ libjxl-plugins_package() {
depends="desktop-file-utils"
pkg_install() {
vmove usr/lib/gdk-pixbuf-2.0
- vmove usr/lib/gimp
vmove usr/share/mime
vmove usr/share/thumbnailers
}
From 7871174eaba0c81988b7cf821ee5c0e1be5590fb Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 17:54:42 -0500
Subject: [PATCH 07/10] nufraw: remove gimp plugin
does not support gimp 3, no installs found in popcorn, upstream seems dead
---
srcpkgs/nufraw-gimp | 1 -
srcpkgs/nufraw/template | 25 ++++---------------------
srcpkgs/removed-packages/template | 18 ++++++++++--------
srcpkgs/ufraw-gimp | 1 -
4 files changed, 14 insertions(+), 31 deletions(-)
delete mode 120000 srcpkgs/nufraw-gimp
delete mode 120000 srcpkgs/ufraw-gimp
diff --git a/srcpkgs/nufraw-gimp b/srcpkgs/nufraw-gimp
deleted file mode 120000
index 0bd1459b2a16f5..00000000000000
--- a/srcpkgs/nufraw-gimp
+++ /dev/null
@@ -1 +0,0 @@
-nufraw
\ No newline at end of file
diff --git a/srcpkgs/nufraw/template b/srcpkgs/nufraw/template
index 89f197cffc4b1a..a82d28818d02e7 100644
--- a/srcpkgs/nufraw/template
+++ b/srcpkgs/nufraw/template
@@ -1,16 +1,13 @@
# Template file for 'nufraw'
pkgname=nufraw
version=0.43.3
-revision=2
+revision=3
_ver="${version%.*}-${version##*.}"
build_style=gnu-configure
-configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
- --enable-extras"
+configure_args="--enable-contrast --enable-mime --enable-openmp --enable-extras"
hostmakedepends="pkg-config automake libtool glib-devel"
-# libgexiv2-devel is only here to fix build order, remove on next template
-# change
-makedepends="exiv2-devel gimp-devel glib-devel gtkimageview-devel lcms2-devel
- lensfun-devel jasper-devel libgexiv2-devel"
+makedepends="exiv2-devel glib-devel gtkimageview-devel lcms2-devel
+ lensfun-devel jasper-devel"
depends="desktop-file-utils"
short_desc="Utility to read and manipulate raw images from digital cameras"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -35,22 +32,8 @@ pre_build() {
chmod +x generate_schemas.sh
}
-nufraw-gimp_package() {
- depends="${sourcepkg}>=${version}_${revision}"
- short_desc+=" - gimp plugin"
- pkg_install() {
- vmove usr/lib/gimp
- }
-}
-
ufraw_package() {
depends="${sourcepkg}>=${version}_${revision}"
build_style=meta
short_desc+=" (transitional dummy package)"
}
-
-ufraw-gimp_package() {
- depends="nufraw-gimp>=${version}_${revision}"
- build_style=meta
- short_desc+=" - gimp plugin (transitional dummy package)"
-}
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index a5ca51952f9741..f06f44dfb6c808 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -23,6 +23,7 @@ replaces="
PolyMC<=7.2_1
PrusaSlicer<=2.5.2_5
Pyrex<=0.9.9_5
+ Rocket.Chat-Desktop<=3.8.7_3
SMC<=1.9_9
Slic3rPE<=2.5.2_5
Twisted<=17.9.0_2
@@ -335,11 +336,9 @@ replaces="
kmediaplayer<=5.115.0_1
kmime<=23.08.5_1
kpty<=5.115.0_1
- ksanecore<=24.08.3_1
- ksanecore-devel<=24.08.3_1
- libksane<=24.08.3_1
- libksane-devel<=24.08.3_1
kquickcharts<=5.115.0_1
+ ksanecore-devel<=24.08.3_1
+ ksanecore<=24.08.3_1
kxmlrpcclient<5.115.0_1
ladish-devel<=1_11
ladish<=1_11
@@ -405,6 +404,8 @@ replaces="
libgnome-keyring<=3.12.0_5
libgroff<=1.22.4_3
libgtkhtml<=4.10.0_1
+ libksane-devel<=24.08.3_1
+ libksane<=24.08.3_1
libkscreen<=5.27.11_3
libllvm10<=10.0.0_8
libllvm11<=11.0.0_2
@@ -530,6 +531,7 @@ replaces="
neofetch<=7.1.0_2
newt-python<=0.52.21_5
nodejs-lts-10<=10.24.0_2
+ nufraw-gimp<=0.43.3_2
nvidia340-dkms<=340.108_4
nvidia340-libs<=340.108_4
nvidia340-opencl<=340.108_4
@@ -736,8 +738,8 @@ replaces="
python3-jsonrpc-server<=0.4.0_2
python3-keepalive<=0.5_6
python3-lockfile<=0.12.2_7
- python3-nose<=1.3.7_10
python3-nose-random<=1.0.0_6
+ python3-nose<=1.3.7_10
python3-pgpdump<=1.5_10
python3-pyPEG2<=2.15.2_7
python3-pyenet<=5.15.0_2
@@ -783,9 +785,9 @@ replaces="
qucs<=0.0.19_2
qupzilla1<=1.8.9_16
qupzilla<=3.0.1_1
- rand48_r<=0.2_1
- rand48_r-devel<=0.2_1
r2-bindings<=1.0.1_2
+ rand48_r-devel<=0.2_1
+ rand48_r<=0.2_1
raul-devel<=0.8.0_6
raul<=0.8.0_6
redkite<=1.3.1_1
@@ -798,7 +800,6 @@ replaces="
rkt-stage1-fly<=1.30.0_3
rkt<=1.30.0_3
rmapi<=0.0.25_4
- Rocket.Chat-Desktop<=3.8.7_3
rpi-userland-devel<=20230920_1
rundird<=0.2.0_1
scantailor<=0.9.12.1_2
@@ -839,6 +840,7 @@ replaces="
traverso<=0.49.6_2
ttyload-git<=20141117_4
tuxc<=1.1_3
+ ufraw-gimp<=0.43.3_2
ulozto-downloader<=3.5.2_2
unicorn-python<=1.0.2_2
upwork<=5.6.10.0_1
diff --git a/srcpkgs/ufraw-gimp b/srcpkgs/ufraw-gimp
deleted file mode 120000
index 0bd1459b2a16f5..00000000000000
--- a/srcpkgs/ufraw-gimp
+++ /dev/null
@@ -1 +0,0 @@
-nufraw
\ No newline at end of file
From 3bad12d83d4f0140167951e87de033a9674fa781 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 18:00:27 -0500
Subject: [PATCH 08/10] xsane: remove gimp plugin, clean up template
does not support gimp 3 (yet?)
https://gitlab.com/sane-project/frontend/xsane/-/issues/66
---
srcpkgs/removed-packages/template | 1 +
srcpkgs/xsane-gimp | 1 -
srcpkgs/xsane/template | 33 ++++---------------------------
3 files changed, 5 insertions(+), 30 deletions(-)
delete mode 120000 srcpkgs/xsane-gimp
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index f06f44dfb6c808..5d2376b0e79ba4 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -878,6 +878,7 @@ replaces="
xnoise-devel<=0.2.21_4
xnoise<=0.2.21_4
xnp2<=0.86_2
+ xsane-gimp<=0.999_5
xsetmode<=1.0.0_5
xsetpointer<=1.0.1_4
yabause-gtk<=0.9.15_2
diff --git a/srcpkgs/xsane-gimp b/srcpkgs/xsane-gimp
deleted file mode 120000
index aec7cacadda279..00000000000000
--- a/srcpkgs/xsane-gimp
+++ /dev/null
@@ -1 +0,0 @@
-xsane
\ No newline at end of file
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 7dde32af2b674c..f75bd7888b15fa 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -1,9 +1,11 @@
# Template file for 'xsane'
pkgname=xsane
version=0.999
-revision=5
+revision=6
+build_style="gnu-configure"
+configure_args="--disable-gimp"
hostmakedepends="pkg-config sane-devel gettext"
-makedepends="gtk+-devel lcms-devel sane-devel gimp-devel"
+makedepends="gtk+-devel lcms-devel sane-devel"
depends="sane"
short_desc="GTK-based X11 frontend for SANE"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -17,30 +19,3 @@ post_patch() {
-e 's,/usr/local/include,/usr/include,' \
configure
}
-
-do_build() {
- local _args="--prefix=/usr --sbindir=/usr/bin --mandir=/usr/share/man
- --target=${XBPS_CROSS_TRIPLET} --host=${XBPS_CROSS_TRIPLET}
- --build=${XBPS_TRIPLET}"
- ./configure ${_args} --enable-gimp
- make ${makejobs}
- mv src/xsane{,-gimp}
- make clean
- echo "=== ./configure ${_args} --disable-gimp"
- ./configure ${_args} --disable-gimp
- make ${makejobs}
-}
-
-do_install() {
- make DESTDIR="${DESTDIR}" install
-}
-
-xsane-gimp_package() {
- short_desc+=" - plugin for GIMP"
- depends="${sourcepkg}>=${version}_${revision}"
- pkg_install() {
- vbin src/xsane-gimp
- vmkdir usr/lib/gimp/2.0/plug-ins
- ln -s /usr/bin/xsane-gimp ${PKGDESTDIR}/usr/lib/gimp/2.0/plug-ins/xsane
- }
-}
From e32ea7736fad84a4a8c50787c28446a6e3d57b7f Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 18:06:52 -0500
Subject: [PATCH 09/10] gimp-lqr-plugin: remove
does not support gimp 3, project seems mostly dead
https://github.com/carlobaldassi/gimp-lqr-plugin/issues/17
---
srcpkgs/gimp-lqr-plugin/template | 19 -------------------
srcpkgs/removed-packages/template | 1 +
2 files changed, 1 insertion(+), 19 deletions(-)
delete mode 100644 srcpkgs/gimp-lqr-plugin/template
diff --git a/srcpkgs/gimp-lqr-plugin/template b/srcpkgs/gimp-lqr-plugin/template
deleted file mode 100644
index 7878f6cb795d24..00000000000000
--- a/srcpkgs/gimp-lqr-plugin/template
+++ /dev/null
@@ -1,19 +0,0 @@
-# Template file for 'gimp-lqr-plugin'
-pkgname=gimp-lqr-plugin
-version=0.7.2
-revision=2
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
-makedepends="gimp-devel glib-devel gettext-devel liblqr-devel"
-short_desc="Gimp plugins for image resizing through seam carving"
-maintainer="CoolOhm <micvlas@gmail.com>"
-license="GPL-2.0-or-later"
-homepage="http://liquidrescale.wikidot.com/"
-distfiles="http://liquidrescale.wdfiles.com/local--files/en:download-page-sources/gimp-lqr-plugin-${version}.tar.bz2"
-checksum=169e11164e4fe4e93a0f06e545748bd77b206b7a471bdebf7dd3bc8a008e647a
-
-CFLAGS="-fcommon"
-
-post_patch() {
- vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index 5d2376b0e79ba4..d977238575b937 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -166,6 +166,7 @@ replaces="
getmail<=5.14_2
gfbgraph<=0.2.5_1
gfm<=1.08_1
+ gimp-lqr-plugin<=0.7.2_2
gimp-python<=2.10.32_4
giti<=1.0.0_1
gksu<=2.0.2_4
From 35ef6ef4f3eb1a233ed241d897a1f02fba350c2f Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 18:08:35 -0500
Subject: [PATCH 10/10] removed-packages: update to 0.1.20250209.
---
srcpkgs/removed-packages/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index d977238575b937..cde760d79b6d73 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -1,6 +1,6 @@
# Template file for 'removed-packages'
pkgname=removed-packages
-version=0.1.20250110
+version=0.1.20250209
revision=1
build_style=meta
short_desc="Uninstalls packages removed from repository"
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PR PATCH] [Updated] GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
` (13 preceding siblings ...)
2025-02-09 23:08 ` classabbyamp
@ 2025-02-10 0:15 ` classabbyamp
2025-02-10 1:18 ` classabbyamp
2025-02-10 2:21 ` classabbyamp
16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2025-02-10 0:15 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
There is an updated pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages gimp3
https://github.com/void-linux/void-packages/pull/49890
GIMP 3
WIP until at minimum the full GIMP 3 release, expected in about a month: https://gitlab.gnome.org/GNOME/gimp/-/issues/10373
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
#### Plugins
- [ ] nufraw - not (yet) compatible
- [x] resynthesizer - compatible on in-dev branch
- [ ] gmic - not (yet) compatible
- [ ] xsane
- [ ] gimp-lqr-plugin - not (yet) compatible)
- [x] libjxl - disable because gimp supports it directly now
A patch file from https://github.com/void-linux/void-packages/pull/49890.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gimp3-49890.patch --]
[-- Type: text/x-diff, Size: 42001 bytes --]
From 6ff0ac09e662b8d9c806e29dafa82230c647d5fa Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:35 -0400
Subject: [PATCH 01/10] gegl: update to 0.4.52.
---
common/shlibs | 6 +++---
srcpkgs/gegl/template | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/common/shlibs b/common/shlibs
index d402931a0fe9a4..7e034b09e162a1 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -2406,9 +2406,9 @@ libopenrawgnome.so.7 libopenraw-0.1.0_1
libclutter-gst-3.0.so.0 clutter-gst3-3.0.4_1
libgsound.so.0 gsound-1.0.1_1
libproc2.so.0 procps-ng-4.0.3_1
-libgegl-0.4.so.0 gegl-0.4.16_1
-libgegl-npd-0.4.so gegl-0.4.16_1
-libgegl-sc-0.4.so gegl-0.4.16_1
+libgegl-0.4.so.0 gegl-0.4.52_1
+libgegl-npd-0.4.so gegl-0.4.52_1
+libgegl-sc-0.4.so gegl-0.4.52_1
libgnunettransportmonitor.so.0 gnunet-0.12.2_1
libgnunettransporttesting.so.0 gnunet-0.12.2_1
libgnunettransporttesting2.so.0 gnunet-0.12.2_1
diff --git a/srcpkgs/gegl/template b/srcpkgs/gegl/template
index d8fe9c9c5964b3..b3a0dc44c1695d 100644
--- a/srcpkgs/gegl/template
+++ b/srcpkgs/gegl/template
@@ -1,7 +1,7 @@
# Template file for 'gegl'
pkgname=gegl
-version=0.4.46
-revision=3
+version=0.4.52
+revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dintrospection=true -Dvapigen=enabled
@@ -18,7 +18,7 @@ license="GPL-3.0-only, LGPL-3.0-only"
homepage="https://gegl.org/"
changelog="https://gitlab.gnome.org/GNOME/gegl/-/raw/master/docs/NEWS.adoc"
distfiles="https://download.gimp.org/pub/gegl/${version%.*}/gegl-${version}.tar.xz"
-checksum=d0b3b2481bc8774c5f3d0a487611910166d18eef823a859fb91e781ab7b1e892
+checksum=ca212a0fc3e0448c5058c51ca6a0d30fdfb02971f21f28820da2b4901396000a
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From 4e098eda9e8e0b6786f037f8cca18f4cde95c09f Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Wed, 6 Nov 2024 12:41:45 -0500
Subject: [PATCH 02/10] babl: update to 0.1.110.
---
common/shlibs | 2 +-
srcpkgs/babl/template | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/common/shlibs b/common/shlibs
index 7e034b09e162a1..ba8b336fd22562 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -532,7 +532,7 @@ libkImageAnnotator.so.0 kImageAnnotator-0.7.1_1
libkImageAnnotator-Qt5.so.0 kImageAnnotator-qt5-0.7.1_1
libkColorPicker.so.0 kColorPicker-0.3.1_1
libkColorPicker-Qt5.so.0 kColorPicker-qt5-0.3.1_1
-libbabl-0.1.so.0 babl-0.1.16_1
+libbabl-0.1.so.0 babl-0.1.106_1
libbamf3.so.2 bamf-0.5.1_1
libicuio.so.73 icu-libs-73.2_1
libicui18n.so.73 icu-libs-73.2_1
diff --git a/srcpkgs/babl/template b/srcpkgs/babl/template
index a635b6b485feca..a4c0df506a804f 100644
--- a/srcpkgs/babl/template
+++ b/srcpkgs/babl/template
@@ -1,6 +1,6 @@
# Template file for 'babl'
pkgname=babl
-version=0.1.106
+version=0.1.110
revision=1
build_style=meson
build_helper=gir
@@ -13,7 +13,7 @@ license="LGPL-3.0-only"
homepage="https://gegl.org/babl/"
changelog="https://gitlab.gnome.org/GNOME/babl/-/raw/master/NEWS"
distfiles="https://download.gimp.org/pub/babl/${version%.*}/babl-${version}.tar.xz"
-checksum=d325135d3304f088c134cc620013acf035de2e5d125a50a2d91054e7377c415f
+checksum=bf47be7540d6275389f66431ef03064df5376315e243d0bab448c6aa713f5743
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From a973923f82264434bd9385502ff88f249fea988e Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:29 -0400
Subject: [PATCH 03/10] gimp: update to 3.0.0+rc2.
---
common/shlibs | 47 ++++-
srcpkgs/gimp-python | 1 -
srcpkgs/gimp/INSTALL | 2 +-
srcpkgs/gimp/INSTALL.msg | 2 +
srcpkgs/gimp/patches/atol.patch | 21 +++
srcpkgs/gimp/patches/brushes.patch | 15 ++
srcpkgs/gimp/patches/fix-cross.patch | 18 --
srcpkgs/gimp/patches/fix-segfault.patch | 169 ------------------
srcpkgs/gimp/patches/gcc14.patch | 63 -------
.../gimp/patches/libheif-1.18-compat.patch | 20 ---
srcpkgs/gimp/template | 55 +++---
11 files changed, 107 insertions(+), 306 deletions(-)
delete mode 120000 srcpkgs/gimp-python
create mode 100644 srcpkgs/gimp/INSTALL.msg
create mode 100644 srcpkgs/gimp/patches/atol.patch
create mode 100644 srcpkgs/gimp/patches/brushes.patch
delete mode 100644 srcpkgs/gimp/patches/fix-cross.patch
delete mode 100644 srcpkgs/gimp/patches/fix-segfault.patch
delete mode 100644 srcpkgs/gimp/patches/gcc14.patch
delete mode 100644 srcpkgs/gimp/patches/libheif-1.18-compat.patch
diff --git a/common/shlibs b/common/shlibs
index ba8b336fd22562..da2072fc82dbaa 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -556,17 +556,46 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
-libgimp-2.0.so.0 libgimp-2.10.0_1
-libgimpwidgets-2.0.so.0 libgimp-2.10.0_1
-libgimpui-2.0.so.0 libgimp-2.10.0_1
-libgimpbase-2.0.so.0 libgimp-2.10.0_1
-libgimpthumb-2.0.so.0 libgimp-2.10.0_1
-libgimpconfig-2.0.so.0 libgimp-2.10.0_1
-libgimpmath-2.0.so.0 libgimp-2.10.0_1
-libgimpcolor-2.0.so.0 libgimp-2.10.0_1
-libgimpmodule-2.0.so.0 libgimp-2.10.0_1
+libgimp-3.0.so.0 libgimp-2.99.18_1
+libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
+libgimpui-3.0.so.0 libgimp-2.99.18_1
+libgimpbase-3.0.so.0 libgimp-2.99.18_1
+libgimpthumb-3.0.so.0 libgimp-2.99.18_1
+libgimpconfig-3.0.so.0 libgimp-2.99.18_1
+libgimpmath-3.0.so.0 libgimp-2.99.18_1
+libgimpcolor-3.0.so.0 libgimp-2.99.18_1
+libgimpmodule-3.0.so.0 libgimp-2.99.18_1
+libgimp-2.0.so.0 libgimp2-2.10.38_1
+libgimpwidgets-2.0.so.0 libgimp2-2.10.38_1
+libgimpui-2.0.so.0 libgimp2-2.10.38_1
+libgimpbase-2.0.so.0 libgimp2-2.10.38_1
+libgimpthumb-2.0.so.0 libgimp2-2.10.38_1
+libgimpconfig-2.0.so.0 libgimp2-2.10.38_1
+libgimpmath-2.0.so.0 libgimp2-2.10.38_1
+libgimpcolor-2.0.so.0 libgimp2-2.10.38_1
+libgimpmodule-2.0.so.0 libgimp2-2.10.38_1
+libgimp-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpwidgets-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpui-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpbase-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpthumb-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpconfig-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpmath-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpcolor-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpmodule-3.0.so.0 libgimp-3.0.0+rc1_1
libgmic.so.3 gmic-3.1.6_1
libcgmic.so.3 gmic-3.1.6_1
+libgimp-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpwidgets-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpui-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpbase-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpthumb-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpconfig-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpmath-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpcolor-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpmodule-3.0.so.0 libgimp-3.0.0+rc2_1
+libgmic.so.3 libgmic-3.5.2_1
+libcgmic.so.3 libgmic-3.5.2_1
libexiv2.so.28 exiv2-0.28.1_1
libKF5Holidays.so.5 kholidays-5.47.0_1
libPhabricatorHelpers.so.5 purpose-5.48.0_1
diff --git a/srcpkgs/gimp-python b/srcpkgs/gimp-python
deleted file mode 120000
index 92344a4bb4a963..00000000000000
--- a/srcpkgs/gimp-python
+++ /dev/null
@@ -1 +0,0 @@
-gimp
\ No newline at end of file
diff --git a/srcpkgs/gimp/INSTALL b/srcpkgs/gimp/INSTALL
index 87064d64438f00..daeff6b33cec0f 100644
--- a/srcpkgs/gimp/INSTALL
+++ b/srcpkgs/gimp/INSTALL
@@ -2,7 +2,7 @@
case "${ACTION}" in
pre)
if [ "$UPDATE" = "yes" ]; then
- xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm -f
fi
;;
esac
diff --git a/srcpkgs/gimp/INSTALL.msg b/srcpkgs/gimp/INSTALL.msg
new file mode 100644
index 00000000000000..24e3bddd8303ba
--- /dev/null
+++ b/srcpkgs/gimp/INSTALL.msg
@@ -0,0 +1,2 @@
+GIMP 3 breaks compatibility with many plugins. If you wish to continue
+using GIMP 2.x plugins, install gimp2.
diff --git a/srcpkgs/gimp/patches/atol.patch b/srcpkgs/gimp/patches/atol.patch
new file mode 100644
index 00000000000000..3d660783db053b
--- /dev/null
+++ b/srcpkgs/gimp/patches/atol.patch
@@ -0,0 +1,21 @@
+source: https://github.com/chimera-linux/cports/blob/master/main/gimp/patches/atol.patch
+
+commit f3237e747d854967a5333b5870dc7aae5cd19431
+Author: q66 <q66@chimera-linux.org>
+Date: Fri May 12 02:52:40 2023 +0200
+
+ don't use unsafe atol
+
+diff --git a/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c b/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
+index 5a3b68e..81e8b0d 100644
+--- a/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
++++ b/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
+@@ -1256,7 +1256,7 @@ static pointer mk_atom(scheme *sc, char *q) {
+ if(has_dec_point) {
+ return mk_real(sc,g_ascii_strtod(q,NULL));
+ }
+- return (mk_integer(sc, atol(q)));
++ return (mk_integer(sc, strtol(q, NULL, 10)));
+ }
+
+ /* make atom from sharp expr representing constant.
diff --git a/srcpkgs/gimp/patches/brushes.patch b/srcpkgs/gimp/patches/brushes.patch
new file mode 100644
index 00000000000000..47a7c225dd38ea
--- /dev/null
+++ b/srcpkgs/gimp/patches/brushes.patch
@@ -0,0 +1,15 @@
+source: https://github.com/chimera-linux/cports/blob/master/main/gimp/patches/brushes.patch
+
+diff --git a/meson.build b/meson.build
+index daae225..7744671 100644
+--- a/meson.build
++++ b/meson.build
+@@ -378,7 +378,7 @@ lcms_minver = '2.8'
+ lcms = dependency('lcms2', version: '>='+lcms_minver)
+ libmypaint_minver = '1.3.0'
+ libmypaint = dependency('libmypaint', version: '>='+libmypaint_minver)
+-mypaint_brushes = dependency('mypaint-brushes-1.0',version: '>='+libmypaint_minver)
++mypaint_brushes = dependency('mypaint-brushes-2.0',version: '>='+libmypaint_minver)
+ if not libmypaint.version().version_compare('>=1.4.0')
+ libmypaint_warning='''
+
diff --git a/srcpkgs/gimp/patches/fix-cross.patch b/srcpkgs/gimp/patches/fix-cross.patch
deleted file mode 100644
index 0ffcf9b650b987..00000000000000
--- a/srcpkgs/gimp/patches/fix-cross.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
-+++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
-@@ -14,6 +14,7 @@ else
- libm = -lm
- endif
-
-+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
- libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
- libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
- libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
-@@ -85,6 +86,7 @@ script_fu_SOURCES = \
- scheme-wrapper.h
-
- LDADD = \
-+ $(libgimpmodule) \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpconfig) \
diff --git a/srcpkgs/gimp/patches/fix-segfault.patch b/srcpkgs/gimp/patches/fix-segfault.patch
deleted file mode 100644
index 5f1a6a6d3fe977..00000000000000
--- a/srcpkgs/gimp/patches/fix-segfault.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
-index 064f2c4..b17d82f 100644
---- a/app/dialogs/dialogs.c
-+++ b/app/dialogs/dialogs.c
-@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
- menu_factory);
- gimp_dialog_factory_set_singleton (factory);
-
-- for (i = 0; i < G_N_ELEMENTS (entries); i++)
-+ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
-+ char *name, *blurb;
-+ name = entries[i].name ? gettext(entries[i].name) : NULL;
-+ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
-+
- gimp_dialog_factory_register_entry (factory,
- entries[i].identifier,
-- gettext (entries[i].name),
-- gettext (entries[i].blurb),
-+ name,
-+ blurb,
- entries[i].icon_name,
- entries[i].help_id,
- entries[i].new_func,
-@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
- entries[i].hideable,
- entries[i].image_window,
- entries[i].dockable);
-+ }
-
- global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
- }
-diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
-index 04bd1b6..12eff51 100644
---- a/app/widgets/gimpactiongroup.c
-+++ b/app/widgets/gimpactiongroup.c
-@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_action_impl_new (entries[i].name, label, tooltip,
-@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_toggle_action_new (entries[i].name, label, tooltip,
-@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_radio_action_new (entries[i].name, label, tooltip,
-@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpEnumAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_enum_action_new (entries[i].name, label, tooltip,
-@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp/patches/gcc14.patch b/srcpkgs/gimp/patches/gcc14.patch
deleted file mode 100644
index ceae92fa154c82..00000000000000
--- a/srcpkgs/gimp/patches/gcc14.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Fri, 13 Jan 2023 13:29:07 +0100
-Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
-
-Do not call the undeclared exit function. Implicit function
-declarations are likely not going to be supported by future compilers
-by default, changing the outcome of this configure probe with
-such compilers.
----
- configure.ac | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 03047899841..b8718955471 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
- ]])],
- [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
-diff --git a/configure b/configure
-index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
---- a/configure
-+++ b/configure
-@@ -28898,17 +28898,17 @@ else $as_nop
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
-
- _ACEOF
diff --git a/srcpkgs/gimp/patches/libheif-1.18-compat.patch b/srcpkgs/gimp/patches/libheif-1.18-compat.patch
deleted file mode 100644
index e714d25f2bab6b..00000000000000
--- a/srcpkgs/gimp/patches/libheif-1.18-compat.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/configure.ac 2024-08-29 18:28:19.457012043 -0500
-+++ b/configure.ac 2024-08-29 18:28:29.154953488 -0500
-@@ -1843,13 +1843,13 @@
- can_import_avif=no
- can_export_avif=no
- if test "x$have_libheif" = xyes; then
-- can_import_heic=`$PKG_CONFIG --variable=builtin_h265_decoder libheif`
-- can_export_heic=`$PKG_CONFIG --variable=builtin_h265_encoder libheif`
-+ can_import_heic=yes
-+ can_export_heic=yes
- if test "x$can_import_heic" = xyes; then
- MIME_TYPES="$MIME_TYPES;image/heif;image/heic"
- fi
-- can_import_avif=`$PKG_CONFIG --variable=builtin_avif_decoder libheif`
-- can_export_avif=`$PKG_CONFIG --variable=builtin_avif_encoder libheif`
-+ can_import_avif=yes
-+ can_export_avif=yes
- if test "x$can_import_avif" = xyes; then
- MIME_TYPES="$MIME_TYPES;image/avif"
- fi
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index a50409d5ce5af1..99e7a5931214db 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -1,34 +1,36 @@
# Template file for 'gimp'
pkgname=gimp
-version=2.10.38
-revision=3
-build_style=gnu-configure
-configure_args="--disable-check-update --datadir=/usr/share --disable-python"
-hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
- libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
-makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
- ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
- libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
- libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
- poppler-glib-devel glib-networking libwebp-devel
- libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
-depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+version=3.0.0+rc2
+revision=1
+build_style=meson
+build_helper="gir qemu"
+configure_args="-Dcheck-update=no -Drevision=$revision -Denable-default-bin=enabled
+ -Dbug-report-url=https://github.com/void-linux/void-packages/issues/new/choose"
+hostmakedepends="pkg-config xdg-utils perl libxslt gjs LuaJIT desktop-file-utils
+ AppStream gettext gi-docgen gobject-introspection
+ yelp-tools librsvg-devel glib-devel"
+makedepends="babl-devel gtk+3-devel gegl-devel libgexiv2-devel libgirepository-devel
+ libmypaint-devel mypaint-brushes librsvg-devel glib-networking appstream-glib-devel
+ libXmu-devel ghostscript-devel libmng-devel aalib-devel libXpm-devel libopenexr-devel
+ libwebp-devel libheif-devel poppler-glib-devel libwmf-devel libopenjpeg2-devel
+ libjxl-devel alsa-lib-devel cfitsio-devel python3-gobject-devel libgomp-devel
+ libunwind-devel lua51-lgi"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes python3-gobject"
+checkdepends="xvfb-run dbus"
short_desc="GNU image manipulation program"
conf_files="/etc/gimp/${version%%.*}.0/*"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-only"
homepage="https://www.gimp.org"
-changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
-distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
-checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+distfiles="https://download.gimp.org/gimp/v${version%.*}/gimp-${version/+rc/-RC}.tar.xz"
+checksum=f4d2f96df180ce5543f8b2b35707b9bf11459f00f726ca73da2f406d686d9db7
lib32disabled=yes
-no_generic_pkgconfig_link=yes
-pre_configure() {
- NOCONFIGURE=1 autoreconf -fi
- # don't allow configure to set DATADIRNAME=lib
- vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -Dheadless-tests=enabled"
+else
+ configure_args+=" -Dheadless-tests=disabled"
+fi
libgimp_package() {
short_desc+=" - runtime libraries"
@@ -38,13 +40,16 @@ libgimp_package() {
}
gimp-devel_package() {
- depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}"
+ depends="libgimp>=${version}_${revision} gegl-devel gtk+3-devel libgexiv2-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
- vmove usr/share/gtk-doc
- vmove usr/share/aclocal
vmove "usr/lib/*.so"
+ if [ -z "$CROSS_BUILD" ]; then
+ vmove usr/share/gir-1.0
+ vmove usr/share/vala
+ vmove usr/share/doc
+ fi
}
}
From 715f0aa6d0699a20b4e3ae579bdc46890036331b Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:09 -0400
Subject: [PATCH 04/10] gmic: update to 3.5.2.
---
.../patches/03-plugindir-and-no-wget.patch | 20 ++++++------
srcpkgs/gmic/template | 31 +++++++++++--------
srcpkgs/libgmic | 1 +
3 files changed, 28 insertions(+), 24 deletions(-)
create mode 120000 srcpkgs/libgmic
diff --git a/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch b/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch
index 5b403240efc919..6317fd24592c50 100644
--- a/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch
+++ b/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch
@@ -1,15 +1,13 @@
-Index: gmic-2.9.9/src/Makefile
-===================================================================
---- gmic-2.9.9.orig/src/Makefile
-+++ gmic-2.9.9/src/Makefile
-@@ -67,8 +67,8 @@ INCLUDE = include
- SO = .so
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -86,8 +86,8 @@
+ INCLUDE ?= include
PIC = -fPIC
EXE =
-WGET = wget --no-check-certificate --quiet -O
--PLUGINDIR = $(shell gimptool-2.0 --gimpplugindir)/plug-ins
+-PLUGIN = $(shell gimptool-2.0 --gimpplugindir)/plug-ins
+WGET = false
-+PLUGINDIR = /usr/lib/gimp/2.0/plug-ins
- VERSION = $(shell grep 'gmic_version\ ' gmic.h | tail -c4 | head -c3)
- VERSION1 = $(shell grep 'gmic_version\ ' gmic.h | tail -c4 | head -c1)
- VERSION2 = $(shell grep 'gmic_version\ ' gmic.h | tail -c3 | head -c1)
++PLUGIN = $(shell gimptool-3.0 --gimpplugindir)/plug-ins/gmic_gimp_qt
+ SHARE = $(PREFIX)/share
+ BASH_COMPLETIONSDIR = $(shell pkg-config --variable completionsdir bash-completion || echo $(SHARE)/bash-completion/completions)
+ VERSION = $(shell grep -F 'gmic_version ' gmic.h | tail -c4 | head -c3)
diff --git a/srcpkgs/gmic/template b/srcpkgs/gmic/template
index 24d10147e3abad..693bdcf5cf5cb0 100644
--- a/srcpkgs/gmic/template
+++ b/srcpkgs/gmic/template
@@ -1,48 +1,53 @@
# Template file for 'gmic'
pkgname=gmic
-version=3.1.6
-revision=6
-_zart_hash=34ebf6cce0bafb98abe57cec83c4a02cd1abeca0
-create_wrksrc=yes
+version=3.5.2
+revision=1
+_zart_hash=d014169343f835381ad232ee11e077326561c9eb
build_wrksrc="src"
build_style=gnu-makefile
build_helper=qmake
-make_build_args="NOSTRIP=yes"
+make_build_args="NOSTRIP=yes lib libc cli gmic_qt gimp_shared zart"
make_use_env=yes
hostmakedepends="pkg-config gimp qt5-host-tools qt5-qmake"
makedepends="fftw-devel imath-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel lcms2-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
- gtk+-devel gimp-devel qt5-devel"
+ gimp-devel qt5-devel libwebp-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="CECILL-2.1, CECILL-C"
homepage="https://gmic.eu/"
distfiles="https://gmic.eu/files/source/gmic_${version}.tar.gz
https://github.com/c-koi/zart/archive/${_zart_hash}.tar.gz"
-checksum="e73d63ba6520637c782b6e5e6805037a27b6255c011c9e2a60a56f9c28822ce4
- 257baa7e8b32ccfac0841c61ec317ad3ad1c2bfe2d44474b2ca879dc33f755f8"
+checksum="5893b6e87a52792e12af2b51121465d6202a2310c2a751c5c9785910ff55dc14
+ baebe339566993194f98a71895bff09520b08f38e66eae215758aaa260557bcf"
disable_parallel_build="yes"
+skip_extraction="zart-${_zart_hash}.tar.gz"
post_extract() {
- mv gmic-${version}/* .
- mv zart-${_zart_hash} zart
+ vsrcextract -C zart zart-${_zart_hash}.tar.gz
}
post_install() {
vlicense ../COPYING
}
+libgmic_package() {
+ short_desc+=" - libraries"
+ pkg_install() {
+ vmove "usr/lib/*.so.*"
+ }
+}
+
gmic-gimp_package() {
short_desc+=" - GIMP plugin"
- depends="gimp ${sourcepkg}>=${version}_${revision}"
+ depends="gimp"
pkg_install() {
- vmove usr/lib/gimp
+ vmove "usr/lib/gimp"
}
}
gmic-zart_package() {
short_desc+=" - ZArt tool"
- depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin/zart
vmove usr/share/applications/zart.desktop
diff --git a/srcpkgs/libgmic b/srcpkgs/libgmic
new file mode 120000
index 00000000000000..433883885ce6f3
--- /dev/null
+++ b/srcpkgs/libgmic
@@ -0,0 +1 @@
+gmic
\ No newline at end of file
From 9105eaeb53b6bdad0dbd717b8d7aaee64b04cd6b Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 03:22:14 -0400
Subject: [PATCH 05/10] resynthesizer: update to 2.0.3+4.
WIP gimp 3 port: https://github.com/bootchk/resynthesizer/issues/135
---
srcpkgs/resynthesizer/template | 29 +++++++++--------------------
1 file changed, 9 insertions(+), 20 deletions(-)
diff --git a/srcpkgs/resynthesizer/template b/srcpkgs/resynthesizer/template
index a58b0eec995854..69ed889aa12e31 100644
--- a/srcpkgs/resynthesizer/template
+++ b/srcpkgs/resynthesizer/template
@@ -1,26 +1,15 @@
# Template file for 'resynthesizer'
pkgname=resynthesizer
-version=2.0.3+1
+version=2.0.3+4
revision=1
-_commit=701e890d1d456e215e05daa7b4a88f5d9c6c03b3
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
+_commit=eed3bf8f0414d088b7401becf5f04a9a82d79b45
+build_style=meson
+hostmakedepends="pkg-config"
makedepends="gimp-devel glib-devel gettext-devel"
-short_desc="Suite of gimp plugins for texture healing and synthesis"
+depends="gimp"
+short_desc="Suite of GIMP plugins for texture healing and synthesis"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
-# FIXME: when gimp 3 is available, switch back to bootchk upstream
-#homepage="https://github.com/bootchk/resynthesizer"
-#distfiles="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${version}.tar.gz"
-homepage="https://github.com/itr-tert/gimp-resynthesizer-scm"
-distfiles="https://github.com/itr-tert/gimp-resynthesizer-scm/archive/${_commit}.tar.gz"
-checksum=298286386466fbd6d2da06f8a920c6e6e313db7ca0a094a36a355978a64cefc0
-
-if [ "$CROSS_BUILD" ];then
- hostmakedepends+=" glib-devel gettext-devel"
- AUTOGEN_CONFIGURE_ARGS+=" --host=${XBPS_MACHINE%-musl} --build=${XBPS_CROSS_TRIPLET}"
-fi
-
-pre_configure() {
- ./autogen.sh ${AUTOGEN_CONFIGURE_ARGS}
-}
+homepage="https://github.com/bootchk/resynthesizer"
+distfiles="https://github.com/bootchk/resynthesizer/archive/${_commit}.tar.gz"
+checksum=c0d2a2af2ddbae5c54ac3f686d0422e9aec7931c5482a8783bdd38f98a1e8211
From 44163f4246bb9bd398ad6345f3e190373c2fbf79 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 17:47:53 -0500
Subject: [PATCH 06/10] libjxl: disable gimp plugin
no longer needed, gimp 3 has native support
---
srcpkgs/libjxl/template | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template
index bdf38b2432761f..8159c04a1f4025 100644
--- a/srcpkgs/libjxl/template
+++ b/srcpkgs/libjxl/template
@@ -1,7 +1,7 @@
# Template file for 'libjxl'
pkgname=libjxl
version=0.10.3
-revision=2
+revision=3
_testdata_hash=ff8d743aaba05b3014f17e5475e576242fa979fc
build_style=cmake
configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
@@ -9,7 +9,7 @@ configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
-DJPEGXL_ENABLE_SKCMS=OFF"
hostmakedepends="tar pkg-config asciidoc"
makedepends="brotli-devel highway-devel libpng-devel giflib-devel libjpeg-turbo-devel
- libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp-devel lcms2-devel"
+ libopenexr-devel libwebp-devel gdk-pixbuf-devel lcms2-devel"
checkdepends="gtest-devel xdg-utils"
short_desc="JPEG XL image format reference implementation"
maintainer="Joshua Krämer <joshua@kraemer.link>"
@@ -64,7 +64,6 @@ libjxl-plugins_package() {
depends="desktop-file-utils"
pkg_install() {
vmove usr/lib/gdk-pixbuf-2.0
- vmove usr/lib/gimp
vmove usr/share/mime
vmove usr/share/thumbnailers
}
From d4e980415d41abe3d4ccb71daaf695427c34ab4f Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 17:54:42 -0500
Subject: [PATCH 07/10] nufraw: remove gimp plugin
does not support gimp 3, no installs found in popcorn, upstream seems dead
---
srcpkgs/nufraw-gimp | 1 -
srcpkgs/nufraw/template | 25 ++++---------------------
srcpkgs/removed-packages/template | 18 ++++++++++--------
srcpkgs/ufraw-gimp | 1 -
4 files changed, 14 insertions(+), 31 deletions(-)
delete mode 120000 srcpkgs/nufraw-gimp
delete mode 120000 srcpkgs/ufraw-gimp
diff --git a/srcpkgs/nufraw-gimp b/srcpkgs/nufraw-gimp
deleted file mode 120000
index 0bd1459b2a16f5..00000000000000
--- a/srcpkgs/nufraw-gimp
+++ /dev/null
@@ -1 +0,0 @@
-nufraw
\ No newline at end of file
diff --git a/srcpkgs/nufraw/template b/srcpkgs/nufraw/template
index 89f197cffc4b1a..a82d28818d02e7 100644
--- a/srcpkgs/nufraw/template
+++ b/srcpkgs/nufraw/template
@@ -1,16 +1,13 @@
# Template file for 'nufraw'
pkgname=nufraw
version=0.43.3
-revision=2
+revision=3
_ver="${version%.*}-${version##*.}"
build_style=gnu-configure
-configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
- --enable-extras"
+configure_args="--enable-contrast --enable-mime --enable-openmp --enable-extras"
hostmakedepends="pkg-config automake libtool glib-devel"
-# libgexiv2-devel is only here to fix build order, remove on next template
-# change
-makedepends="exiv2-devel gimp-devel glib-devel gtkimageview-devel lcms2-devel
- lensfun-devel jasper-devel libgexiv2-devel"
+makedepends="exiv2-devel glib-devel gtkimageview-devel lcms2-devel
+ lensfun-devel jasper-devel"
depends="desktop-file-utils"
short_desc="Utility to read and manipulate raw images from digital cameras"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -35,22 +32,8 @@ pre_build() {
chmod +x generate_schemas.sh
}
-nufraw-gimp_package() {
- depends="${sourcepkg}>=${version}_${revision}"
- short_desc+=" - gimp plugin"
- pkg_install() {
- vmove usr/lib/gimp
- }
-}
-
ufraw_package() {
depends="${sourcepkg}>=${version}_${revision}"
build_style=meta
short_desc+=" (transitional dummy package)"
}
-
-ufraw-gimp_package() {
- depends="nufraw-gimp>=${version}_${revision}"
- build_style=meta
- short_desc+=" - gimp plugin (transitional dummy package)"
-}
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index a5ca51952f9741..f06f44dfb6c808 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -23,6 +23,7 @@ replaces="
PolyMC<=7.2_1
PrusaSlicer<=2.5.2_5
Pyrex<=0.9.9_5
+ Rocket.Chat-Desktop<=3.8.7_3
SMC<=1.9_9
Slic3rPE<=2.5.2_5
Twisted<=17.9.0_2
@@ -335,11 +336,9 @@ replaces="
kmediaplayer<=5.115.0_1
kmime<=23.08.5_1
kpty<=5.115.0_1
- ksanecore<=24.08.3_1
- ksanecore-devel<=24.08.3_1
- libksane<=24.08.3_1
- libksane-devel<=24.08.3_1
kquickcharts<=5.115.0_1
+ ksanecore-devel<=24.08.3_1
+ ksanecore<=24.08.3_1
kxmlrpcclient<5.115.0_1
ladish-devel<=1_11
ladish<=1_11
@@ -405,6 +404,8 @@ replaces="
libgnome-keyring<=3.12.0_5
libgroff<=1.22.4_3
libgtkhtml<=4.10.0_1
+ libksane-devel<=24.08.3_1
+ libksane<=24.08.3_1
libkscreen<=5.27.11_3
libllvm10<=10.0.0_8
libllvm11<=11.0.0_2
@@ -530,6 +531,7 @@ replaces="
neofetch<=7.1.0_2
newt-python<=0.52.21_5
nodejs-lts-10<=10.24.0_2
+ nufraw-gimp<=0.43.3_2
nvidia340-dkms<=340.108_4
nvidia340-libs<=340.108_4
nvidia340-opencl<=340.108_4
@@ -736,8 +738,8 @@ replaces="
python3-jsonrpc-server<=0.4.0_2
python3-keepalive<=0.5_6
python3-lockfile<=0.12.2_7
- python3-nose<=1.3.7_10
python3-nose-random<=1.0.0_6
+ python3-nose<=1.3.7_10
python3-pgpdump<=1.5_10
python3-pyPEG2<=2.15.2_7
python3-pyenet<=5.15.0_2
@@ -783,9 +785,9 @@ replaces="
qucs<=0.0.19_2
qupzilla1<=1.8.9_16
qupzilla<=3.0.1_1
- rand48_r<=0.2_1
- rand48_r-devel<=0.2_1
r2-bindings<=1.0.1_2
+ rand48_r-devel<=0.2_1
+ rand48_r<=0.2_1
raul-devel<=0.8.0_6
raul<=0.8.0_6
redkite<=1.3.1_1
@@ -798,7 +800,6 @@ replaces="
rkt-stage1-fly<=1.30.0_3
rkt<=1.30.0_3
rmapi<=0.0.25_4
- Rocket.Chat-Desktop<=3.8.7_3
rpi-userland-devel<=20230920_1
rundird<=0.2.0_1
scantailor<=0.9.12.1_2
@@ -839,6 +840,7 @@ replaces="
traverso<=0.49.6_2
ttyload-git<=20141117_4
tuxc<=1.1_3
+ ufraw-gimp<=0.43.3_2
ulozto-downloader<=3.5.2_2
unicorn-python<=1.0.2_2
upwork<=5.6.10.0_1
diff --git a/srcpkgs/ufraw-gimp b/srcpkgs/ufraw-gimp
deleted file mode 120000
index 0bd1459b2a16f5..00000000000000
--- a/srcpkgs/ufraw-gimp
+++ /dev/null
@@ -1 +0,0 @@
-nufraw
\ No newline at end of file
From 1264e6a0e0127b1f324b8f9ca02b1c74ac67c8a6 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 18:00:27 -0500
Subject: [PATCH 08/10] xsane: remove gimp plugin, clean up template
does not support gimp 3 (yet?)
https://gitlab.com/sane-project/frontend/xsane/-/issues/66
---
srcpkgs/removed-packages/template | 1 +
srcpkgs/xsane-gimp | 1 -
srcpkgs/xsane/template | 33 ++++---------------------------
3 files changed, 5 insertions(+), 30 deletions(-)
delete mode 120000 srcpkgs/xsane-gimp
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index f06f44dfb6c808..5d2376b0e79ba4 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -878,6 +878,7 @@ replaces="
xnoise-devel<=0.2.21_4
xnoise<=0.2.21_4
xnp2<=0.86_2
+ xsane-gimp<=0.999_5
xsetmode<=1.0.0_5
xsetpointer<=1.0.1_4
yabause-gtk<=0.9.15_2
diff --git a/srcpkgs/xsane-gimp b/srcpkgs/xsane-gimp
deleted file mode 120000
index aec7cacadda279..00000000000000
--- a/srcpkgs/xsane-gimp
+++ /dev/null
@@ -1 +0,0 @@
-xsane
\ No newline at end of file
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 7dde32af2b674c..f75bd7888b15fa 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -1,9 +1,11 @@
# Template file for 'xsane'
pkgname=xsane
version=0.999
-revision=5
+revision=6
+build_style="gnu-configure"
+configure_args="--disable-gimp"
hostmakedepends="pkg-config sane-devel gettext"
-makedepends="gtk+-devel lcms-devel sane-devel gimp-devel"
+makedepends="gtk+-devel lcms-devel sane-devel"
depends="sane"
short_desc="GTK-based X11 frontend for SANE"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -17,30 +19,3 @@ post_patch() {
-e 's,/usr/local/include,/usr/include,' \
configure
}
-
-do_build() {
- local _args="--prefix=/usr --sbindir=/usr/bin --mandir=/usr/share/man
- --target=${XBPS_CROSS_TRIPLET} --host=${XBPS_CROSS_TRIPLET}
- --build=${XBPS_TRIPLET}"
- ./configure ${_args} --enable-gimp
- make ${makejobs}
- mv src/xsane{,-gimp}
- make clean
- echo "=== ./configure ${_args} --disable-gimp"
- ./configure ${_args} --disable-gimp
- make ${makejobs}
-}
-
-do_install() {
- make DESTDIR="${DESTDIR}" install
-}
-
-xsane-gimp_package() {
- short_desc+=" - plugin for GIMP"
- depends="${sourcepkg}>=${version}_${revision}"
- pkg_install() {
- vbin src/xsane-gimp
- vmkdir usr/lib/gimp/2.0/plug-ins
- ln -s /usr/bin/xsane-gimp ${PKGDESTDIR}/usr/lib/gimp/2.0/plug-ins/xsane
- }
-}
From 58de829e42805bdd37ed16486a592cc0b0787738 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 18:06:52 -0500
Subject: [PATCH 09/10] gimp-lqr-plugin: remove
does not support gimp 3, project seems mostly dead
https://github.com/carlobaldassi/gimp-lqr-plugin/issues/17
---
srcpkgs/gimp-lqr-plugin/template | 19 -------------------
srcpkgs/removed-packages/template | 1 +
2 files changed, 1 insertion(+), 19 deletions(-)
delete mode 100644 srcpkgs/gimp-lqr-plugin/template
diff --git a/srcpkgs/gimp-lqr-plugin/template b/srcpkgs/gimp-lqr-plugin/template
deleted file mode 100644
index 7878f6cb795d24..00000000000000
--- a/srcpkgs/gimp-lqr-plugin/template
+++ /dev/null
@@ -1,19 +0,0 @@
-# Template file for 'gimp-lqr-plugin'
-pkgname=gimp-lqr-plugin
-version=0.7.2
-revision=2
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
-makedepends="gimp-devel glib-devel gettext-devel liblqr-devel"
-short_desc="Gimp plugins for image resizing through seam carving"
-maintainer="CoolOhm <micvlas@gmail.com>"
-license="GPL-2.0-or-later"
-homepage="http://liquidrescale.wikidot.com/"
-distfiles="http://liquidrescale.wdfiles.com/local--files/en:download-page-sources/gimp-lqr-plugin-${version}.tar.bz2"
-checksum=169e11164e4fe4e93a0f06e545748bd77b206b7a471bdebf7dd3bc8a008e647a
-
-CFLAGS="-fcommon"
-
-post_patch() {
- vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index 5d2376b0e79ba4..d977238575b937 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -166,6 +166,7 @@ replaces="
getmail<=5.14_2
gfbgraph<=0.2.5_1
gfm<=1.08_1
+ gimp-lqr-plugin<=0.7.2_2
gimp-python<=2.10.32_4
giti<=1.0.0_1
gksu<=2.0.2_4
From c6608276c9a7a45f7942ac0fc50e361f4ac4e7b6 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 18:08:35 -0500
Subject: [PATCH 10/10] removed-packages: update to 0.1.20250209.
---
srcpkgs/removed-packages/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index d977238575b937..cde760d79b6d73 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -1,6 +1,6 @@
# Template file for 'removed-packages'
pkgname=removed-packages
-version=0.1.20250110
+version=0.1.20250209
revision=1
build_style=meta
short_desc="Uninstalls packages removed from repository"
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PR PATCH] [Updated] GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
` (14 preceding siblings ...)
2025-02-10 0:15 ` classabbyamp
@ 2025-02-10 1:18 ` classabbyamp
2025-02-10 2:21 ` classabbyamp
16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2025-02-10 1:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
There is an updated pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages gimp3
https://github.com/void-linux/void-packages/pull/49890
GIMP 3
WIP until at minimum the full GIMP 3 release, expected in about a month: https://gitlab.gnome.org/GNOME/gimp/-/issues/10373
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
#### Plugins
- [ ] nufraw - not (yet) compatible
- [x] resynthesizer - compatible on in-dev branch
- [ ] gmic - not (yet) compatible
- [ ] xsane
- [ ] gimp-lqr-plugin - not (yet) compatible)
- [x] libjxl - disable because gimp supports it directly now
A patch file from https://github.com/void-linux/void-packages/pull/49890.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gimp3-49890.patch --]
[-- Type: text/x-diff, Size: 42178 bytes --]
From 6ff0ac09e662b8d9c806e29dafa82230c647d5fa Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:35 -0400
Subject: [PATCH 01/10] gegl: update to 0.4.52.
---
common/shlibs | 6 +++---
srcpkgs/gegl/template | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/common/shlibs b/common/shlibs
index d402931a0fe9a4..7e034b09e162a1 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -2406,9 +2406,9 @@ libopenrawgnome.so.7 libopenraw-0.1.0_1
libclutter-gst-3.0.so.0 clutter-gst3-3.0.4_1
libgsound.so.0 gsound-1.0.1_1
libproc2.so.0 procps-ng-4.0.3_1
-libgegl-0.4.so.0 gegl-0.4.16_1
-libgegl-npd-0.4.so gegl-0.4.16_1
-libgegl-sc-0.4.so gegl-0.4.16_1
+libgegl-0.4.so.0 gegl-0.4.52_1
+libgegl-npd-0.4.so gegl-0.4.52_1
+libgegl-sc-0.4.so gegl-0.4.52_1
libgnunettransportmonitor.so.0 gnunet-0.12.2_1
libgnunettransporttesting.so.0 gnunet-0.12.2_1
libgnunettransporttesting2.so.0 gnunet-0.12.2_1
diff --git a/srcpkgs/gegl/template b/srcpkgs/gegl/template
index d8fe9c9c5964b3..b3a0dc44c1695d 100644
--- a/srcpkgs/gegl/template
+++ b/srcpkgs/gegl/template
@@ -1,7 +1,7 @@
# Template file for 'gegl'
pkgname=gegl
-version=0.4.46
-revision=3
+version=0.4.52
+revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dintrospection=true -Dvapigen=enabled
@@ -18,7 +18,7 @@ license="GPL-3.0-only, LGPL-3.0-only"
homepage="https://gegl.org/"
changelog="https://gitlab.gnome.org/GNOME/gegl/-/raw/master/docs/NEWS.adoc"
distfiles="https://download.gimp.org/pub/gegl/${version%.*}/gegl-${version}.tar.xz"
-checksum=d0b3b2481bc8774c5f3d0a487611910166d18eef823a859fb91e781ab7b1e892
+checksum=ca212a0fc3e0448c5058c51ca6a0d30fdfb02971f21f28820da2b4901396000a
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From 4e098eda9e8e0b6786f037f8cca18f4cde95c09f Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Wed, 6 Nov 2024 12:41:45 -0500
Subject: [PATCH 02/10] babl: update to 0.1.110.
---
common/shlibs | 2 +-
srcpkgs/babl/template | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/common/shlibs b/common/shlibs
index 7e034b09e162a1..ba8b336fd22562 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -532,7 +532,7 @@ libkImageAnnotator.so.0 kImageAnnotator-0.7.1_1
libkImageAnnotator-Qt5.so.0 kImageAnnotator-qt5-0.7.1_1
libkColorPicker.so.0 kColorPicker-0.3.1_1
libkColorPicker-Qt5.so.0 kColorPicker-qt5-0.3.1_1
-libbabl-0.1.so.0 babl-0.1.16_1
+libbabl-0.1.so.0 babl-0.1.106_1
libbamf3.so.2 bamf-0.5.1_1
libicuio.so.73 icu-libs-73.2_1
libicui18n.so.73 icu-libs-73.2_1
diff --git a/srcpkgs/babl/template b/srcpkgs/babl/template
index a635b6b485feca..a4c0df506a804f 100644
--- a/srcpkgs/babl/template
+++ b/srcpkgs/babl/template
@@ -1,6 +1,6 @@
# Template file for 'babl'
pkgname=babl
-version=0.1.106
+version=0.1.110
revision=1
build_style=meson
build_helper=gir
@@ -13,7 +13,7 @@ license="LGPL-3.0-only"
homepage="https://gegl.org/babl/"
changelog="https://gitlab.gnome.org/GNOME/babl/-/raw/master/NEWS"
distfiles="https://download.gimp.org/pub/babl/${version%.*}/babl-${version}.tar.xz"
-checksum=d325135d3304f088c134cc620013acf035de2e5d125a50a2d91054e7377c415f
+checksum=bf47be7540d6275389f66431ef03064df5376315e243d0bab448c6aa713f5743
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From 5b7bc24c131cdf8e92b08574817be9bfc462c542 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:29 -0400
Subject: [PATCH 03/10] gimp: update to 3.0.0+rc2.
---
common/shlibs | 47 ++++-
srcpkgs/gimp-python | 1 -
srcpkgs/gimp/INSTALL | 2 +-
srcpkgs/gimp/INSTALL.msg | 2 +
srcpkgs/gimp/patches/atol.patch | 21 +++
srcpkgs/gimp/patches/brushes.patch | 15 ++
srcpkgs/gimp/patches/fix-cross.patch | 18 --
srcpkgs/gimp/patches/fix-segfault.patch | 169 ------------------
srcpkgs/gimp/patches/gcc14.patch | 63 -------
.../gimp/patches/libheif-1.18-compat.patch | 20 ---
srcpkgs/gimp/template | 59 +++---
11 files changed, 111 insertions(+), 306 deletions(-)
delete mode 120000 srcpkgs/gimp-python
create mode 100644 srcpkgs/gimp/INSTALL.msg
create mode 100644 srcpkgs/gimp/patches/atol.patch
create mode 100644 srcpkgs/gimp/patches/brushes.patch
delete mode 100644 srcpkgs/gimp/patches/fix-cross.patch
delete mode 100644 srcpkgs/gimp/patches/fix-segfault.patch
delete mode 100644 srcpkgs/gimp/patches/gcc14.patch
delete mode 100644 srcpkgs/gimp/patches/libheif-1.18-compat.patch
diff --git a/common/shlibs b/common/shlibs
index ba8b336fd22562..da2072fc82dbaa 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -556,17 +556,46 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
-libgimp-2.0.so.0 libgimp-2.10.0_1
-libgimpwidgets-2.0.so.0 libgimp-2.10.0_1
-libgimpui-2.0.so.0 libgimp-2.10.0_1
-libgimpbase-2.0.so.0 libgimp-2.10.0_1
-libgimpthumb-2.0.so.0 libgimp-2.10.0_1
-libgimpconfig-2.0.so.0 libgimp-2.10.0_1
-libgimpmath-2.0.so.0 libgimp-2.10.0_1
-libgimpcolor-2.0.so.0 libgimp-2.10.0_1
-libgimpmodule-2.0.so.0 libgimp-2.10.0_1
+libgimp-3.0.so.0 libgimp-2.99.18_1
+libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
+libgimpui-3.0.so.0 libgimp-2.99.18_1
+libgimpbase-3.0.so.0 libgimp-2.99.18_1
+libgimpthumb-3.0.so.0 libgimp-2.99.18_1
+libgimpconfig-3.0.so.0 libgimp-2.99.18_1
+libgimpmath-3.0.so.0 libgimp-2.99.18_1
+libgimpcolor-3.0.so.0 libgimp-2.99.18_1
+libgimpmodule-3.0.so.0 libgimp-2.99.18_1
+libgimp-2.0.so.0 libgimp2-2.10.38_1
+libgimpwidgets-2.0.so.0 libgimp2-2.10.38_1
+libgimpui-2.0.so.0 libgimp2-2.10.38_1
+libgimpbase-2.0.so.0 libgimp2-2.10.38_1
+libgimpthumb-2.0.so.0 libgimp2-2.10.38_1
+libgimpconfig-2.0.so.0 libgimp2-2.10.38_1
+libgimpmath-2.0.so.0 libgimp2-2.10.38_1
+libgimpcolor-2.0.so.0 libgimp2-2.10.38_1
+libgimpmodule-2.0.so.0 libgimp2-2.10.38_1
+libgimp-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpwidgets-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpui-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpbase-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpthumb-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpconfig-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpmath-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpcolor-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpmodule-3.0.so.0 libgimp-3.0.0+rc1_1
libgmic.so.3 gmic-3.1.6_1
libcgmic.so.3 gmic-3.1.6_1
+libgimp-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpwidgets-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpui-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpbase-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpthumb-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpconfig-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpmath-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpcolor-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpmodule-3.0.so.0 libgimp-3.0.0+rc2_1
+libgmic.so.3 libgmic-3.5.2_1
+libcgmic.so.3 libgmic-3.5.2_1
libexiv2.so.28 exiv2-0.28.1_1
libKF5Holidays.so.5 kholidays-5.47.0_1
libPhabricatorHelpers.so.5 purpose-5.48.0_1
diff --git a/srcpkgs/gimp-python b/srcpkgs/gimp-python
deleted file mode 120000
index 92344a4bb4a963..00000000000000
--- a/srcpkgs/gimp-python
+++ /dev/null
@@ -1 +0,0 @@
-gimp
\ No newline at end of file
diff --git a/srcpkgs/gimp/INSTALL b/srcpkgs/gimp/INSTALL
index 87064d64438f00..daeff6b33cec0f 100644
--- a/srcpkgs/gimp/INSTALL
+++ b/srcpkgs/gimp/INSTALL
@@ -2,7 +2,7 @@
case "${ACTION}" in
pre)
if [ "$UPDATE" = "yes" ]; then
- xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm -f
fi
;;
esac
diff --git a/srcpkgs/gimp/INSTALL.msg b/srcpkgs/gimp/INSTALL.msg
new file mode 100644
index 00000000000000..24e3bddd8303ba
--- /dev/null
+++ b/srcpkgs/gimp/INSTALL.msg
@@ -0,0 +1,2 @@
+GIMP 3 breaks compatibility with many plugins. If you wish to continue
+using GIMP 2.x plugins, install gimp2.
diff --git a/srcpkgs/gimp/patches/atol.patch b/srcpkgs/gimp/patches/atol.patch
new file mode 100644
index 00000000000000..3d660783db053b
--- /dev/null
+++ b/srcpkgs/gimp/patches/atol.patch
@@ -0,0 +1,21 @@
+source: https://github.com/chimera-linux/cports/blob/master/main/gimp/patches/atol.patch
+
+commit f3237e747d854967a5333b5870dc7aae5cd19431
+Author: q66 <q66@chimera-linux.org>
+Date: Fri May 12 02:52:40 2023 +0200
+
+ don't use unsafe atol
+
+diff --git a/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c b/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
+index 5a3b68e..81e8b0d 100644
+--- a/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
++++ b/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
+@@ -1256,7 +1256,7 @@ static pointer mk_atom(scheme *sc, char *q) {
+ if(has_dec_point) {
+ return mk_real(sc,g_ascii_strtod(q,NULL));
+ }
+- return (mk_integer(sc, atol(q)));
++ return (mk_integer(sc, strtol(q, NULL, 10)));
+ }
+
+ /* make atom from sharp expr representing constant.
diff --git a/srcpkgs/gimp/patches/brushes.patch b/srcpkgs/gimp/patches/brushes.patch
new file mode 100644
index 00000000000000..47a7c225dd38ea
--- /dev/null
+++ b/srcpkgs/gimp/patches/brushes.patch
@@ -0,0 +1,15 @@
+source: https://github.com/chimera-linux/cports/blob/master/main/gimp/patches/brushes.patch
+
+diff --git a/meson.build b/meson.build
+index daae225..7744671 100644
+--- a/meson.build
++++ b/meson.build
+@@ -378,7 +378,7 @@ lcms_minver = '2.8'
+ lcms = dependency('lcms2', version: '>='+lcms_minver)
+ libmypaint_minver = '1.3.0'
+ libmypaint = dependency('libmypaint', version: '>='+libmypaint_minver)
+-mypaint_brushes = dependency('mypaint-brushes-1.0',version: '>='+libmypaint_minver)
++mypaint_brushes = dependency('mypaint-brushes-2.0',version: '>='+libmypaint_minver)
+ if not libmypaint.version().version_compare('>=1.4.0')
+ libmypaint_warning='''
+
diff --git a/srcpkgs/gimp/patches/fix-cross.patch b/srcpkgs/gimp/patches/fix-cross.patch
deleted file mode 100644
index 0ffcf9b650b987..00000000000000
--- a/srcpkgs/gimp/patches/fix-cross.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
-+++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
-@@ -14,6 +14,7 @@ else
- libm = -lm
- endif
-
-+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
- libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
- libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
- libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
-@@ -85,6 +86,7 @@ script_fu_SOURCES = \
- scheme-wrapper.h
-
- LDADD = \
-+ $(libgimpmodule) \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpconfig) \
diff --git a/srcpkgs/gimp/patches/fix-segfault.patch b/srcpkgs/gimp/patches/fix-segfault.patch
deleted file mode 100644
index 5f1a6a6d3fe977..00000000000000
--- a/srcpkgs/gimp/patches/fix-segfault.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
-index 064f2c4..b17d82f 100644
---- a/app/dialogs/dialogs.c
-+++ b/app/dialogs/dialogs.c
-@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
- menu_factory);
- gimp_dialog_factory_set_singleton (factory);
-
-- for (i = 0; i < G_N_ELEMENTS (entries); i++)
-+ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
-+ char *name, *blurb;
-+ name = entries[i].name ? gettext(entries[i].name) : NULL;
-+ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
-+
- gimp_dialog_factory_register_entry (factory,
- entries[i].identifier,
-- gettext (entries[i].name),
-- gettext (entries[i].blurb),
-+ name,
-+ blurb,
- entries[i].icon_name,
- entries[i].help_id,
- entries[i].new_func,
-@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
- entries[i].hideable,
- entries[i].image_window,
- entries[i].dockable);
-+ }
-
- global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
- }
-diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
-index 04bd1b6..12eff51 100644
---- a/app/widgets/gimpactiongroup.c
-+++ b/app/widgets/gimpactiongroup.c
-@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_action_impl_new (entries[i].name, label, tooltip,
-@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_toggle_action_new (entries[i].name, label, tooltip,
-@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_radio_action_new (entries[i].name, label, tooltip,
-@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpEnumAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_enum_action_new (entries[i].name, label, tooltip,
-@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp/patches/gcc14.patch b/srcpkgs/gimp/patches/gcc14.patch
deleted file mode 100644
index ceae92fa154c82..00000000000000
--- a/srcpkgs/gimp/patches/gcc14.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Fri, 13 Jan 2023 13:29:07 +0100
-Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
-
-Do not call the undeclared exit function. Implicit function
-declarations are likely not going to be supported by future compilers
-by default, changing the outcome of this configure probe with
-such compilers.
----
- configure.ac | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 03047899841..b8718955471 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
- ]])],
- [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
-diff --git a/configure b/configure
-index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
---- a/configure
-+++ b/configure
-@@ -28898,17 +28898,17 @@ else $as_nop
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
-
- _ACEOF
diff --git a/srcpkgs/gimp/patches/libheif-1.18-compat.patch b/srcpkgs/gimp/patches/libheif-1.18-compat.patch
deleted file mode 100644
index e714d25f2bab6b..00000000000000
--- a/srcpkgs/gimp/patches/libheif-1.18-compat.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/configure.ac 2024-08-29 18:28:19.457012043 -0500
-+++ b/configure.ac 2024-08-29 18:28:29.154953488 -0500
-@@ -1843,13 +1843,13 @@
- can_import_avif=no
- can_export_avif=no
- if test "x$have_libheif" = xyes; then
-- can_import_heic=`$PKG_CONFIG --variable=builtin_h265_decoder libheif`
-- can_export_heic=`$PKG_CONFIG --variable=builtin_h265_encoder libheif`
-+ can_import_heic=yes
-+ can_export_heic=yes
- if test "x$can_import_heic" = xyes; then
- MIME_TYPES="$MIME_TYPES;image/heif;image/heic"
- fi
-- can_import_avif=`$PKG_CONFIG --variable=builtin_avif_decoder libheif`
-- can_export_avif=`$PKG_CONFIG --variable=builtin_avif_encoder libheif`
-+ can_import_avif=yes
-+ can_export_avif=yes
- if test "x$can_import_avif" = xyes; then
- MIME_TYPES="$MIME_TYPES;image/avif"
- fi
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index a50409d5ce5af1..d0180ad325c927 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -1,34 +1,40 @@
# Template file for 'gimp'
pkgname=gimp
-version=2.10.38
-revision=3
-build_style=gnu-configure
-configure_args="--disable-check-update --datadir=/usr/share --disable-python"
-hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
- libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
-makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
- ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
- libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
- libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
- poppler-glib-devel glib-networking libwebp-devel
- libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
-depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+version=3.0.0+rc2
+revision=1
+build_style=meson
+build_helper="gir qemu"
+configure_args="-Dcheck-update=no -Drevision=$revision -Denable-default-bin=enabled
+ -Dbug-report-url=https://github.com/void-linux/void-packages/issues/new/choose"
+hostmakedepends="pkg-config xdg-utils perl libxslt gjs LuaJIT desktop-file-utils
+ AppStream gettext gi-docgen gobject-introspection
+ yelp-tools librsvg-devel glib-devel"
+makedepends="babl-devel gtk+3-devel gegl-devel libgexiv2-devel libgirepository-devel
+ libmypaint-devel mypaint-brushes librsvg-devel glib-networking appstream-glib-devel
+ libXmu-devel ghostscript-devel libmng-devel aalib-devel libXpm-devel libopenexr-devel
+ libwebp-devel libheif-devel poppler-glib-devel libwmf-devel libopenjpeg2-devel
+ libjxl-devel alsa-lib-devel cfitsio-devel python3-gobject-devel libgomp-devel
+ libunwind-devel lua51-lgi"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes python3-gobject"
+checkdepends="xvfb-run dbus"
short_desc="GNU image manipulation program"
conf_files="/etc/gimp/${version%%.*}.0/*"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-only"
homepage="https://www.gimp.org"
-changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
-distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
-checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+distfiles="https://download.gimp.org/gimp/v${version%.*}/gimp-${version/+rc/-RC}.tar.xz"
+checksum=f4d2f96df180ce5543f8b2b35707b9bf11459f00f726ca73da2f406d686d9db7
lib32disabled=yes
-no_generic_pkgconfig_link=yes
-pre_configure() {
- NOCONFIGURE=1 autoreconf -fi
- # don't allow configure to set DATADIRNAME=lib
- vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
+if [ "$CROSS_BUILD" ]; then
+ hostmakedepends+=" gimp"
+fi
+
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -Dheadless-tests=enabled"
+else
+ configure_args+=" -Dheadless-tests=disabled"
+fi
libgimp_package() {
short_desc+=" - runtime libraries"
@@ -38,13 +44,16 @@ libgimp_package() {
}
gimp-devel_package() {
- depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}"
+ depends="libgimp>=${version}_${revision} gegl-devel gtk+3-devel libgexiv2-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
- vmove usr/share/gtk-doc
- vmove usr/share/aclocal
vmove "usr/lib/*.so"
+ if [ -z "$CROSS_BUILD" ]; then
+ vmove usr/share/gir-1.0
+ vmove usr/share/vala
+ vmove usr/share/doc
+ fi
}
}
From 742f83d214e74b5bf9963fedcfad570ef23227e1 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:09 -0400
Subject: [PATCH 04/10] gmic: update to 3.5.2.
---
.../patches/03-plugindir-and-no-wget.patch | 20 +++++------
srcpkgs/gmic/template | 35 +++++++++++--------
srcpkgs/libgmic | 1 +
3 files changed, 30 insertions(+), 26 deletions(-)
create mode 120000 srcpkgs/libgmic
diff --git a/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch b/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch
index 5b403240efc919..6317fd24592c50 100644
--- a/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch
+++ b/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch
@@ -1,15 +1,13 @@
-Index: gmic-2.9.9/src/Makefile
-===================================================================
---- gmic-2.9.9.orig/src/Makefile
-+++ gmic-2.9.9/src/Makefile
-@@ -67,8 +67,8 @@ INCLUDE = include
- SO = .so
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -86,8 +86,8 @@
+ INCLUDE ?= include
PIC = -fPIC
EXE =
-WGET = wget --no-check-certificate --quiet -O
--PLUGINDIR = $(shell gimptool-2.0 --gimpplugindir)/plug-ins
+-PLUGIN = $(shell gimptool-2.0 --gimpplugindir)/plug-ins
+WGET = false
-+PLUGINDIR = /usr/lib/gimp/2.0/plug-ins
- VERSION = $(shell grep 'gmic_version\ ' gmic.h | tail -c4 | head -c3)
- VERSION1 = $(shell grep 'gmic_version\ ' gmic.h | tail -c4 | head -c1)
- VERSION2 = $(shell grep 'gmic_version\ ' gmic.h | tail -c3 | head -c1)
++PLUGIN = $(shell gimptool-3.0 --gimpplugindir)/plug-ins/gmic_gimp_qt
+ SHARE = $(PREFIX)/share
+ BASH_COMPLETIONSDIR = $(shell pkg-config --variable completionsdir bash-completion || echo $(SHARE)/bash-completion/completions)
+ VERSION = $(shell grep -F 'gmic_version ' gmic.h | tail -c4 | head -c3)
diff --git a/srcpkgs/gmic/template b/srcpkgs/gmic/template
index 24d10147e3abad..89146bf42d375d 100644
--- a/srcpkgs/gmic/template
+++ b/srcpkgs/gmic/template
@@ -1,48 +1,53 @@
# Template file for 'gmic'
pkgname=gmic
-version=3.1.6
-revision=6
-_zart_hash=34ebf6cce0bafb98abe57cec83c4a02cd1abeca0
-create_wrksrc=yes
+version=3.5.2
+revision=1
+_zart_hash=d014169343f835381ad232ee11e077326561c9eb
build_wrksrc="src"
build_style=gnu-makefile
build_helper=qmake
-make_build_args="NOSTRIP=yes"
+make_build_args="NOSTRIP=yes lib libc cli gmic_qt gimp_shared zart"
make_use_env=yes
hostmakedepends="pkg-config gimp qt5-host-tools qt5-qmake"
makedepends="fftw-devel imath-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel lcms2-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
- gtk+-devel gimp-devel qt5-devel"
+ gimp-devel qt5-devel libwebp-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="CECILL-2.1, CECILL-C"
homepage="https://gmic.eu/"
distfiles="https://gmic.eu/files/source/gmic_${version}.tar.gz
- https://github.com/c-koi/zart/archive/${_zart_hash}.tar.gz"
-checksum="e73d63ba6520637c782b6e5e6805037a27b6255c011c9e2a60a56f9c28822ce4
- 257baa7e8b32ccfac0841c61ec317ad3ad1c2bfe2d44474b2ca879dc33f755f8"
-disable_parallel_build="yes"
+ https://github.com/c-koi/zart/archive/${_zart_hash}.tar.gz>zart-${_zart_hash}.tar.gz"
+checksum="5893b6e87a52792e12af2b51121465d6202a2310c2a751c5c9785910ff55dc14
+ baebe339566993194f98a71895bff09520b08f38e66eae215758aaa260557bcf"
+disable_parallel_build=yes
+skip_extraction="zart-${_zart_hash}.tar.gz"
post_extract() {
- mv gmic-${version}/* .
- mv zart-${_zart_hash} zart
+ vsrcextract -C zart zart-${_zart_hash}.tar.gz
}
post_install() {
vlicense ../COPYING
}
+libgmic_package() {
+ short_desc+=" - libraries"
+ pkg_install() {
+ vmove "usr/lib/*.so.*"
+ }
+}
+
gmic-gimp_package() {
short_desc+=" - GIMP plugin"
- depends="gimp ${sourcepkg}>=${version}_${revision}"
+ depends="gimp"
pkg_install() {
- vmove usr/lib/gimp
+ vmove "usr/lib/gimp"
}
}
gmic-zart_package() {
short_desc+=" - ZArt tool"
- depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin/zart
vmove usr/share/applications/zart.desktop
diff --git a/srcpkgs/libgmic b/srcpkgs/libgmic
new file mode 120000
index 00000000000000..433883885ce6f3
--- /dev/null
+++ b/srcpkgs/libgmic
@@ -0,0 +1 @@
+gmic
\ No newline at end of file
From af60e61f6b9b025450127d737037adf2264364e2 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 03:22:14 -0400
Subject: [PATCH 05/10] resynthesizer: update to 2.0.3+4.
WIP gimp 3 port: https://github.com/bootchk/resynthesizer/issues/135
---
srcpkgs/resynthesizer/template | 29 +++++++++--------------------
1 file changed, 9 insertions(+), 20 deletions(-)
diff --git a/srcpkgs/resynthesizer/template b/srcpkgs/resynthesizer/template
index a58b0eec995854..69ed889aa12e31 100644
--- a/srcpkgs/resynthesizer/template
+++ b/srcpkgs/resynthesizer/template
@@ -1,26 +1,15 @@
# Template file for 'resynthesizer'
pkgname=resynthesizer
-version=2.0.3+1
+version=2.0.3+4
revision=1
-_commit=701e890d1d456e215e05daa7b4a88f5d9c6c03b3
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
+_commit=eed3bf8f0414d088b7401becf5f04a9a82d79b45
+build_style=meson
+hostmakedepends="pkg-config"
makedepends="gimp-devel glib-devel gettext-devel"
-short_desc="Suite of gimp plugins for texture healing and synthesis"
+depends="gimp"
+short_desc="Suite of GIMP plugins for texture healing and synthesis"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
-# FIXME: when gimp 3 is available, switch back to bootchk upstream
-#homepage="https://github.com/bootchk/resynthesizer"
-#distfiles="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${version}.tar.gz"
-homepage="https://github.com/itr-tert/gimp-resynthesizer-scm"
-distfiles="https://github.com/itr-tert/gimp-resynthesizer-scm/archive/${_commit}.tar.gz"
-checksum=298286386466fbd6d2da06f8a920c6e6e313db7ca0a094a36a355978a64cefc0
-
-if [ "$CROSS_BUILD" ];then
- hostmakedepends+=" glib-devel gettext-devel"
- AUTOGEN_CONFIGURE_ARGS+=" --host=${XBPS_MACHINE%-musl} --build=${XBPS_CROSS_TRIPLET}"
-fi
-
-pre_configure() {
- ./autogen.sh ${AUTOGEN_CONFIGURE_ARGS}
-}
+homepage="https://github.com/bootchk/resynthesizer"
+distfiles="https://github.com/bootchk/resynthesizer/archive/${_commit}.tar.gz"
+checksum=c0d2a2af2ddbae5c54ac3f686d0422e9aec7931c5482a8783bdd38f98a1e8211
From 1ae004d3b34dff82536ee951165fcc0893e6f760 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 17:47:53 -0500
Subject: [PATCH 06/10] libjxl: disable gimp plugin
no longer needed, gimp 3 has native support
---
srcpkgs/libjxl/template | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template
index bdf38b2432761f..8159c04a1f4025 100644
--- a/srcpkgs/libjxl/template
+++ b/srcpkgs/libjxl/template
@@ -1,7 +1,7 @@
# Template file for 'libjxl'
pkgname=libjxl
version=0.10.3
-revision=2
+revision=3
_testdata_hash=ff8d743aaba05b3014f17e5475e576242fa979fc
build_style=cmake
configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
@@ -9,7 +9,7 @@ configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
-DJPEGXL_ENABLE_SKCMS=OFF"
hostmakedepends="tar pkg-config asciidoc"
makedepends="brotli-devel highway-devel libpng-devel giflib-devel libjpeg-turbo-devel
- libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp-devel lcms2-devel"
+ libopenexr-devel libwebp-devel gdk-pixbuf-devel lcms2-devel"
checkdepends="gtest-devel xdg-utils"
short_desc="JPEG XL image format reference implementation"
maintainer="Joshua Krämer <joshua@kraemer.link>"
@@ -64,7 +64,6 @@ libjxl-plugins_package() {
depends="desktop-file-utils"
pkg_install() {
vmove usr/lib/gdk-pixbuf-2.0
- vmove usr/lib/gimp
vmove usr/share/mime
vmove usr/share/thumbnailers
}
From 84685d60907257295ba2ad5231700e98d264b4a8 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 17:54:42 -0500
Subject: [PATCH 07/10] nufraw: remove gimp plugin
does not support gimp 3, no installs found in popcorn, upstream seems dead
---
srcpkgs/nufraw-gimp | 1 -
srcpkgs/nufraw/template | 25 ++++---------------------
srcpkgs/removed-packages/template | 18 ++++++++++--------
srcpkgs/ufraw-gimp | 1 -
4 files changed, 14 insertions(+), 31 deletions(-)
delete mode 120000 srcpkgs/nufraw-gimp
delete mode 120000 srcpkgs/ufraw-gimp
diff --git a/srcpkgs/nufraw-gimp b/srcpkgs/nufraw-gimp
deleted file mode 120000
index 0bd1459b2a16f5..00000000000000
--- a/srcpkgs/nufraw-gimp
+++ /dev/null
@@ -1 +0,0 @@
-nufraw
\ No newline at end of file
diff --git a/srcpkgs/nufraw/template b/srcpkgs/nufraw/template
index 89f197cffc4b1a..a82d28818d02e7 100644
--- a/srcpkgs/nufraw/template
+++ b/srcpkgs/nufraw/template
@@ -1,16 +1,13 @@
# Template file for 'nufraw'
pkgname=nufraw
version=0.43.3
-revision=2
+revision=3
_ver="${version%.*}-${version##*.}"
build_style=gnu-configure
-configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
- --enable-extras"
+configure_args="--enable-contrast --enable-mime --enable-openmp --enable-extras"
hostmakedepends="pkg-config automake libtool glib-devel"
-# libgexiv2-devel is only here to fix build order, remove on next template
-# change
-makedepends="exiv2-devel gimp-devel glib-devel gtkimageview-devel lcms2-devel
- lensfun-devel jasper-devel libgexiv2-devel"
+makedepends="exiv2-devel glib-devel gtkimageview-devel lcms2-devel
+ lensfun-devel jasper-devel"
depends="desktop-file-utils"
short_desc="Utility to read and manipulate raw images from digital cameras"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -35,22 +32,8 @@ pre_build() {
chmod +x generate_schemas.sh
}
-nufraw-gimp_package() {
- depends="${sourcepkg}>=${version}_${revision}"
- short_desc+=" - gimp plugin"
- pkg_install() {
- vmove usr/lib/gimp
- }
-}
-
ufraw_package() {
depends="${sourcepkg}>=${version}_${revision}"
build_style=meta
short_desc+=" (transitional dummy package)"
}
-
-ufraw-gimp_package() {
- depends="nufraw-gimp>=${version}_${revision}"
- build_style=meta
- short_desc+=" - gimp plugin (transitional dummy package)"
-}
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index a5ca51952f9741..f06f44dfb6c808 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -23,6 +23,7 @@ replaces="
PolyMC<=7.2_1
PrusaSlicer<=2.5.2_5
Pyrex<=0.9.9_5
+ Rocket.Chat-Desktop<=3.8.7_3
SMC<=1.9_9
Slic3rPE<=2.5.2_5
Twisted<=17.9.0_2
@@ -335,11 +336,9 @@ replaces="
kmediaplayer<=5.115.0_1
kmime<=23.08.5_1
kpty<=5.115.0_1
- ksanecore<=24.08.3_1
- ksanecore-devel<=24.08.3_1
- libksane<=24.08.3_1
- libksane-devel<=24.08.3_1
kquickcharts<=5.115.0_1
+ ksanecore-devel<=24.08.3_1
+ ksanecore<=24.08.3_1
kxmlrpcclient<5.115.0_1
ladish-devel<=1_11
ladish<=1_11
@@ -405,6 +404,8 @@ replaces="
libgnome-keyring<=3.12.0_5
libgroff<=1.22.4_3
libgtkhtml<=4.10.0_1
+ libksane-devel<=24.08.3_1
+ libksane<=24.08.3_1
libkscreen<=5.27.11_3
libllvm10<=10.0.0_8
libllvm11<=11.0.0_2
@@ -530,6 +531,7 @@ replaces="
neofetch<=7.1.0_2
newt-python<=0.52.21_5
nodejs-lts-10<=10.24.0_2
+ nufraw-gimp<=0.43.3_2
nvidia340-dkms<=340.108_4
nvidia340-libs<=340.108_4
nvidia340-opencl<=340.108_4
@@ -736,8 +738,8 @@ replaces="
python3-jsonrpc-server<=0.4.0_2
python3-keepalive<=0.5_6
python3-lockfile<=0.12.2_7
- python3-nose<=1.3.7_10
python3-nose-random<=1.0.0_6
+ python3-nose<=1.3.7_10
python3-pgpdump<=1.5_10
python3-pyPEG2<=2.15.2_7
python3-pyenet<=5.15.0_2
@@ -783,9 +785,9 @@ replaces="
qucs<=0.0.19_2
qupzilla1<=1.8.9_16
qupzilla<=3.0.1_1
- rand48_r<=0.2_1
- rand48_r-devel<=0.2_1
r2-bindings<=1.0.1_2
+ rand48_r-devel<=0.2_1
+ rand48_r<=0.2_1
raul-devel<=0.8.0_6
raul<=0.8.0_6
redkite<=1.3.1_1
@@ -798,7 +800,6 @@ replaces="
rkt-stage1-fly<=1.30.0_3
rkt<=1.30.0_3
rmapi<=0.0.25_4
- Rocket.Chat-Desktop<=3.8.7_3
rpi-userland-devel<=20230920_1
rundird<=0.2.0_1
scantailor<=0.9.12.1_2
@@ -839,6 +840,7 @@ replaces="
traverso<=0.49.6_2
ttyload-git<=20141117_4
tuxc<=1.1_3
+ ufraw-gimp<=0.43.3_2
ulozto-downloader<=3.5.2_2
unicorn-python<=1.0.2_2
upwork<=5.6.10.0_1
diff --git a/srcpkgs/ufraw-gimp b/srcpkgs/ufraw-gimp
deleted file mode 120000
index 0bd1459b2a16f5..00000000000000
--- a/srcpkgs/ufraw-gimp
+++ /dev/null
@@ -1 +0,0 @@
-nufraw
\ No newline at end of file
From c0ca3e4e294090b6e66b960d8254682361b0e235 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 18:00:27 -0500
Subject: [PATCH 08/10] xsane: remove gimp plugin, clean up template
does not support gimp 3 (yet?)
https://gitlab.com/sane-project/frontend/xsane/-/issues/66
---
srcpkgs/removed-packages/template | 1 +
srcpkgs/xsane-gimp | 1 -
srcpkgs/xsane/template | 33 ++++---------------------------
3 files changed, 5 insertions(+), 30 deletions(-)
delete mode 120000 srcpkgs/xsane-gimp
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index f06f44dfb6c808..5d2376b0e79ba4 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -878,6 +878,7 @@ replaces="
xnoise-devel<=0.2.21_4
xnoise<=0.2.21_4
xnp2<=0.86_2
+ xsane-gimp<=0.999_5
xsetmode<=1.0.0_5
xsetpointer<=1.0.1_4
yabause-gtk<=0.9.15_2
diff --git a/srcpkgs/xsane-gimp b/srcpkgs/xsane-gimp
deleted file mode 120000
index aec7cacadda279..00000000000000
--- a/srcpkgs/xsane-gimp
+++ /dev/null
@@ -1 +0,0 @@
-xsane
\ No newline at end of file
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 7dde32af2b674c..f75bd7888b15fa 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -1,9 +1,11 @@
# Template file for 'xsane'
pkgname=xsane
version=0.999
-revision=5
+revision=6
+build_style="gnu-configure"
+configure_args="--disable-gimp"
hostmakedepends="pkg-config sane-devel gettext"
-makedepends="gtk+-devel lcms-devel sane-devel gimp-devel"
+makedepends="gtk+-devel lcms-devel sane-devel"
depends="sane"
short_desc="GTK-based X11 frontend for SANE"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -17,30 +19,3 @@ post_patch() {
-e 's,/usr/local/include,/usr/include,' \
configure
}
-
-do_build() {
- local _args="--prefix=/usr --sbindir=/usr/bin --mandir=/usr/share/man
- --target=${XBPS_CROSS_TRIPLET} --host=${XBPS_CROSS_TRIPLET}
- --build=${XBPS_TRIPLET}"
- ./configure ${_args} --enable-gimp
- make ${makejobs}
- mv src/xsane{,-gimp}
- make clean
- echo "=== ./configure ${_args} --disable-gimp"
- ./configure ${_args} --disable-gimp
- make ${makejobs}
-}
-
-do_install() {
- make DESTDIR="${DESTDIR}" install
-}
-
-xsane-gimp_package() {
- short_desc+=" - plugin for GIMP"
- depends="${sourcepkg}>=${version}_${revision}"
- pkg_install() {
- vbin src/xsane-gimp
- vmkdir usr/lib/gimp/2.0/plug-ins
- ln -s /usr/bin/xsane-gimp ${PKGDESTDIR}/usr/lib/gimp/2.0/plug-ins/xsane
- }
-}
From c22f084750915ad80d10985fda62a49f0c0da6ee Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 18:06:52 -0500
Subject: [PATCH 09/10] gimp-lqr-plugin: remove
does not support gimp 3, project seems mostly dead
https://github.com/carlobaldassi/gimp-lqr-plugin/issues/17
---
srcpkgs/gimp-lqr-plugin/template | 19 -------------------
srcpkgs/removed-packages/template | 1 +
2 files changed, 1 insertion(+), 19 deletions(-)
delete mode 100644 srcpkgs/gimp-lqr-plugin/template
diff --git a/srcpkgs/gimp-lqr-plugin/template b/srcpkgs/gimp-lqr-plugin/template
deleted file mode 100644
index 7878f6cb795d24..00000000000000
--- a/srcpkgs/gimp-lqr-plugin/template
+++ /dev/null
@@ -1,19 +0,0 @@
-# Template file for 'gimp-lqr-plugin'
-pkgname=gimp-lqr-plugin
-version=0.7.2
-revision=2
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
-makedepends="gimp-devel glib-devel gettext-devel liblqr-devel"
-short_desc="Gimp plugins for image resizing through seam carving"
-maintainer="CoolOhm <micvlas@gmail.com>"
-license="GPL-2.0-or-later"
-homepage="http://liquidrescale.wikidot.com/"
-distfiles="http://liquidrescale.wdfiles.com/local--files/en:download-page-sources/gimp-lqr-plugin-${version}.tar.bz2"
-checksum=169e11164e4fe4e93a0f06e545748bd77b206b7a471bdebf7dd3bc8a008e647a
-
-CFLAGS="-fcommon"
-
-post_patch() {
- vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index 5d2376b0e79ba4..d977238575b937 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -166,6 +166,7 @@ replaces="
getmail<=5.14_2
gfbgraph<=0.2.5_1
gfm<=1.08_1
+ gimp-lqr-plugin<=0.7.2_2
gimp-python<=2.10.32_4
giti<=1.0.0_1
gksu<=2.0.2_4
From c2ee8c36f81a291c9e12a59fa13f57c327db010b Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 18:08:35 -0500
Subject: [PATCH 10/10] removed-packages: update to 0.1.20250209.
---
srcpkgs/removed-packages/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index d977238575b937..cde760d79b6d73 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -1,6 +1,6 @@
# Template file for 'removed-packages'
pkgname=removed-packages
-version=0.1.20250110
+version=0.1.20250209
revision=1
build_style=meta
short_desc="Uninstalls packages removed from repository"
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PR PATCH] [Updated] GIMP 3
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
` (15 preceding siblings ...)
2025-02-10 1:18 ` classabbyamp
@ 2025-02-10 2:21 ` classabbyamp
16 siblings, 0 replies; 18+ messages in thread
From: classabbyamp @ 2025-02-10 2:21 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
There is an updated pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages gimp3
https://github.com/void-linux/void-packages/pull/49890
GIMP 3
WIP until at minimum the full GIMP 3 release, expected in about a month: https://gitlab.gnome.org/GNOME/gimp/-/issues/10373
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
#### Plugins
- [ ] nufraw - not (yet) compatible
- [x] resynthesizer - compatible on in-dev branch
- [ ] gmic - not (yet) compatible
- [ ] xsane
- [ ] gimp-lqr-plugin - not (yet) compatible)
- [x] libjxl - disable because gimp supports it directly now
A patch file from https://github.com/void-linux/void-packages/pull/49890.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gimp3-49890.patch --]
[-- Type: text/x-diff, Size: 42186 bytes --]
From 6ff0ac09e662b8d9c806e29dafa82230c647d5fa Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:35 -0400
Subject: [PATCH 01/10] gegl: update to 0.4.52.
---
common/shlibs | 6 +++---
srcpkgs/gegl/template | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/common/shlibs b/common/shlibs
index d402931a0fe9a4..7e034b09e162a1 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -2406,9 +2406,9 @@ libopenrawgnome.so.7 libopenraw-0.1.0_1
libclutter-gst-3.0.so.0 clutter-gst3-3.0.4_1
libgsound.so.0 gsound-1.0.1_1
libproc2.so.0 procps-ng-4.0.3_1
-libgegl-0.4.so.0 gegl-0.4.16_1
-libgegl-npd-0.4.so gegl-0.4.16_1
-libgegl-sc-0.4.so gegl-0.4.16_1
+libgegl-0.4.so.0 gegl-0.4.52_1
+libgegl-npd-0.4.so gegl-0.4.52_1
+libgegl-sc-0.4.so gegl-0.4.52_1
libgnunettransportmonitor.so.0 gnunet-0.12.2_1
libgnunettransporttesting.so.0 gnunet-0.12.2_1
libgnunettransporttesting2.so.0 gnunet-0.12.2_1
diff --git a/srcpkgs/gegl/template b/srcpkgs/gegl/template
index d8fe9c9c5964b3..b3a0dc44c1695d 100644
--- a/srcpkgs/gegl/template
+++ b/srcpkgs/gegl/template
@@ -1,7 +1,7 @@
# Template file for 'gegl'
pkgname=gegl
-version=0.4.46
-revision=3
+version=0.4.52
+revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dintrospection=true -Dvapigen=enabled
@@ -18,7 +18,7 @@ license="GPL-3.0-only, LGPL-3.0-only"
homepage="https://gegl.org/"
changelog="https://gitlab.gnome.org/GNOME/gegl/-/raw/master/docs/NEWS.adoc"
distfiles="https://download.gimp.org/pub/gegl/${version%.*}/gegl-${version}.tar.xz"
-checksum=d0b3b2481bc8774c5f3d0a487611910166d18eef823a859fb91e781ab7b1e892
+checksum=ca212a0fc3e0448c5058c51ca6a0d30fdfb02971f21f28820da2b4901396000a
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From 4e098eda9e8e0b6786f037f8cca18f4cde95c09f Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Wed, 6 Nov 2024 12:41:45 -0500
Subject: [PATCH 02/10] babl: update to 0.1.110.
---
common/shlibs | 2 +-
srcpkgs/babl/template | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/common/shlibs b/common/shlibs
index 7e034b09e162a1..ba8b336fd22562 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -532,7 +532,7 @@ libkImageAnnotator.so.0 kImageAnnotator-0.7.1_1
libkImageAnnotator-Qt5.so.0 kImageAnnotator-qt5-0.7.1_1
libkColorPicker.so.0 kColorPicker-0.3.1_1
libkColorPicker-Qt5.so.0 kColorPicker-qt5-0.3.1_1
-libbabl-0.1.so.0 babl-0.1.16_1
+libbabl-0.1.so.0 babl-0.1.106_1
libbamf3.so.2 bamf-0.5.1_1
libicuio.so.73 icu-libs-73.2_1
libicui18n.so.73 icu-libs-73.2_1
diff --git a/srcpkgs/babl/template b/srcpkgs/babl/template
index a635b6b485feca..a4c0df506a804f 100644
--- a/srcpkgs/babl/template
+++ b/srcpkgs/babl/template
@@ -1,6 +1,6 @@
# Template file for 'babl'
pkgname=babl
-version=0.1.106
+version=0.1.110
revision=1
build_style=meson
build_helper=gir
@@ -13,7 +13,7 @@ license="LGPL-3.0-only"
homepage="https://gegl.org/babl/"
changelog="https://gitlab.gnome.org/GNOME/babl/-/raw/master/NEWS"
distfiles="https://download.gimp.org/pub/babl/${version%.*}/babl-${version}.tar.xz"
-checksum=d325135d3304f088c134cc620013acf035de2e5d125a50a2d91054e7377c415f
+checksum=bf47be7540d6275389f66431ef03064df5376315e243d0bab448c6aa713f5743
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Db_lto=false"
From 325770d6b3c75352dffbad96c1ae7cf394607069 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:29 -0400
Subject: [PATCH 03/10] gimp: update to 3.0.0+rc2.
---
common/shlibs | 47 ++++-
srcpkgs/gimp-python | 1 -
srcpkgs/gimp/INSTALL | 2 +-
srcpkgs/gimp/INSTALL.msg | 2 +
srcpkgs/gimp/patches/atol.patch | 21 +++
srcpkgs/gimp/patches/brushes.patch | 15 ++
srcpkgs/gimp/patches/fix-cross.patch | 18 --
srcpkgs/gimp/patches/fix-segfault.patch | 169 ------------------
srcpkgs/gimp/patches/gcc14.patch | 63 -------
.../gimp/patches/libheif-1.18-compat.patch | 20 ---
srcpkgs/gimp/template | 59 +++---
11 files changed, 111 insertions(+), 306 deletions(-)
delete mode 120000 srcpkgs/gimp-python
create mode 100644 srcpkgs/gimp/INSTALL.msg
create mode 100644 srcpkgs/gimp/patches/atol.patch
create mode 100644 srcpkgs/gimp/patches/brushes.patch
delete mode 100644 srcpkgs/gimp/patches/fix-cross.patch
delete mode 100644 srcpkgs/gimp/patches/fix-segfault.patch
delete mode 100644 srcpkgs/gimp/patches/gcc14.patch
delete mode 100644 srcpkgs/gimp/patches/libheif-1.18-compat.patch
diff --git a/common/shlibs b/common/shlibs
index ba8b336fd22562..da2072fc82dbaa 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -556,17 +556,46 @@ libwebkit2gtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libjavascriptcoregtk-4.1.so.0 libwebkit2gtk41-2.38.0_1
libwebkitgtk-6.0.so.4 libwebkitgtk60-2.40.0_1
libjavascriptcoregtk-6.0.so.1 libwebkitgtk60-2.40.0_1
-libgimp-2.0.so.0 libgimp-2.10.0_1
-libgimpwidgets-2.0.so.0 libgimp-2.10.0_1
-libgimpui-2.0.so.0 libgimp-2.10.0_1
-libgimpbase-2.0.so.0 libgimp-2.10.0_1
-libgimpthumb-2.0.so.0 libgimp-2.10.0_1
-libgimpconfig-2.0.so.0 libgimp-2.10.0_1
-libgimpmath-2.0.so.0 libgimp-2.10.0_1
-libgimpcolor-2.0.so.0 libgimp-2.10.0_1
-libgimpmodule-2.0.so.0 libgimp-2.10.0_1
+libgimp-3.0.so.0 libgimp-2.99.18_1
+libgimpwidgets-3.0.so.0 libgimp-2.99.18_1
+libgimpui-3.0.so.0 libgimp-2.99.18_1
+libgimpbase-3.0.so.0 libgimp-2.99.18_1
+libgimpthumb-3.0.so.0 libgimp-2.99.18_1
+libgimpconfig-3.0.so.0 libgimp-2.99.18_1
+libgimpmath-3.0.so.0 libgimp-2.99.18_1
+libgimpcolor-3.0.so.0 libgimp-2.99.18_1
+libgimpmodule-3.0.so.0 libgimp-2.99.18_1
+libgimp-2.0.so.0 libgimp2-2.10.38_1
+libgimpwidgets-2.0.so.0 libgimp2-2.10.38_1
+libgimpui-2.0.so.0 libgimp2-2.10.38_1
+libgimpbase-2.0.so.0 libgimp2-2.10.38_1
+libgimpthumb-2.0.so.0 libgimp2-2.10.38_1
+libgimpconfig-2.0.so.0 libgimp2-2.10.38_1
+libgimpmath-2.0.so.0 libgimp2-2.10.38_1
+libgimpcolor-2.0.so.0 libgimp2-2.10.38_1
+libgimpmodule-2.0.so.0 libgimp2-2.10.38_1
+libgimp-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpwidgets-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpui-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpbase-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpthumb-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpconfig-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpmath-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpcolor-3.0.so.0 libgimp-3.0.0+rc1_1
+libgimpmodule-3.0.so.0 libgimp-3.0.0+rc1_1
libgmic.so.3 gmic-3.1.6_1
libcgmic.so.3 gmic-3.1.6_1
+libgimp-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpwidgets-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpui-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpbase-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpthumb-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpconfig-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpmath-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpcolor-3.0.so.0 libgimp-3.0.0+rc2_1
+libgimpmodule-3.0.so.0 libgimp-3.0.0+rc2_1
+libgmic.so.3 libgmic-3.5.2_1
+libcgmic.so.3 libgmic-3.5.2_1
libexiv2.so.28 exiv2-0.28.1_1
libKF5Holidays.so.5 kholidays-5.47.0_1
libPhabricatorHelpers.so.5 purpose-5.48.0_1
diff --git a/srcpkgs/gimp-python b/srcpkgs/gimp-python
deleted file mode 120000
index 92344a4bb4a963..00000000000000
--- a/srcpkgs/gimp-python
+++ /dev/null
@@ -1 +0,0 @@
-gimp
\ No newline at end of file
diff --git a/srcpkgs/gimp/INSTALL b/srcpkgs/gimp/INSTALL
index 87064d64438f00..daeff6b33cec0f 100644
--- a/srcpkgs/gimp/INSTALL
+++ b/srcpkgs/gimp/INSTALL
@@ -2,7 +2,7 @@
case "${ACTION}" in
pre)
if [ "$UPDATE" = "yes" ]; then
- xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm
+ xbps-query -f gimp | grep "usr/lib/gimp/2.0/plug-ins" | sed -e 's|/||' | xargs rm -f
fi
;;
esac
diff --git a/srcpkgs/gimp/INSTALL.msg b/srcpkgs/gimp/INSTALL.msg
new file mode 100644
index 00000000000000..24e3bddd8303ba
--- /dev/null
+++ b/srcpkgs/gimp/INSTALL.msg
@@ -0,0 +1,2 @@
+GIMP 3 breaks compatibility with many plugins. If you wish to continue
+using GIMP 2.x plugins, install gimp2.
diff --git a/srcpkgs/gimp/patches/atol.patch b/srcpkgs/gimp/patches/atol.patch
new file mode 100644
index 00000000000000..3d660783db053b
--- /dev/null
+++ b/srcpkgs/gimp/patches/atol.patch
@@ -0,0 +1,21 @@
+source: https://github.com/chimera-linux/cports/blob/master/main/gimp/patches/atol.patch
+
+commit f3237e747d854967a5333b5870dc7aae5cd19431
+Author: q66 <q66@chimera-linux.org>
+Date: Fri May 12 02:52:40 2023 +0200
+
+ don't use unsafe atol
+
+diff --git a/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c b/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
+index 5a3b68e..81e8b0d 100644
+--- a/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
++++ b/plug-ins/script-fu/libscriptfu/tinyscheme/scheme.c
+@@ -1256,7 +1256,7 @@ static pointer mk_atom(scheme *sc, char *q) {
+ if(has_dec_point) {
+ return mk_real(sc,g_ascii_strtod(q,NULL));
+ }
+- return (mk_integer(sc, atol(q)));
++ return (mk_integer(sc, strtol(q, NULL, 10)));
+ }
+
+ /* make atom from sharp expr representing constant.
diff --git a/srcpkgs/gimp/patches/brushes.patch b/srcpkgs/gimp/patches/brushes.patch
new file mode 100644
index 00000000000000..47a7c225dd38ea
--- /dev/null
+++ b/srcpkgs/gimp/patches/brushes.patch
@@ -0,0 +1,15 @@
+source: https://github.com/chimera-linux/cports/blob/master/main/gimp/patches/brushes.patch
+
+diff --git a/meson.build b/meson.build
+index daae225..7744671 100644
+--- a/meson.build
++++ b/meson.build
+@@ -378,7 +378,7 @@ lcms_minver = '2.8'
+ lcms = dependency('lcms2', version: '>='+lcms_minver)
+ libmypaint_minver = '1.3.0'
+ libmypaint = dependency('libmypaint', version: '>='+libmypaint_minver)
+-mypaint_brushes = dependency('mypaint-brushes-1.0',version: '>='+libmypaint_minver)
++mypaint_brushes = dependency('mypaint-brushes-2.0',version: '>='+libmypaint_minver)
+ if not libmypaint.version().version_compare('>=1.4.0')
+ libmypaint_warning='''
+
diff --git a/srcpkgs/gimp/patches/fix-cross.patch b/srcpkgs/gimp/patches/fix-cross.patch
deleted file mode 100644
index 0ffcf9b650b987..00000000000000
--- a/srcpkgs/gimp/patches/fix-cross.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/plug-ins/script-fu/Makefile.am 2018-05-18 00:03:53.095184079 +0200
-+++ b/plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
-@@ -14,6 +14,7 @@ else
- libm = -lm
- endif
-
-+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
- libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
- libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
- libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
-@@ -85,6 +86,7 @@ script_fu_SOURCES = \
- scheme-wrapper.h
-
- LDADD = \
-+ $(libgimpmodule) \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpconfig) \
diff --git a/srcpkgs/gimp/patches/fix-segfault.patch b/srcpkgs/gimp/patches/fix-segfault.patch
deleted file mode 100644
index 5f1a6a6d3fe977..00000000000000
--- a/srcpkgs/gimp/patches/fix-segfault.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-diff --git app/dialogs/dialogs.c app/dialogs/dialogs.c
-index 064f2c4..b17d82f 100644
---- a/app/dialogs/dialogs.c
-+++ b/app/dialogs/dialogs.c
-@@ -534,11 +534,15 @@ dialogs_init (Gimp *gimp,
- menu_factory);
- gimp_dialog_factory_set_singleton (factory);
-
-- for (i = 0; i < G_N_ELEMENTS (entries); i++)
-+ for (i = 0; i < G_N_ELEMENTS (entries); i++) {
-+ char *name, *blurb;
-+ name = entries[i].name ? gettext(entries[i].name) : NULL;
-+ blurb = entries[i].blurb ? gettext(entries[i].blurb) : NULL;
-+
- gimp_dialog_factory_register_entry (factory,
- entries[i].identifier,
-- gettext (entries[i].name),
-- gettext (entries[i].blurb),
-+ name,
-+ blurb,
- entries[i].icon_name,
- entries[i].help_id,
- entries[i].new_func,
-@@ -551,6 +555,7 @@ dialogs_init (Gimp *gimp,
- entries[i].hideable,
- entries[i].image_window,
- entries[i].dockable);
-+ }
-
- global_recent_docks = gimp_list_new (GIMP_TYPE_SESSION_INFO, FALSE);
- }
-diff --git app/widgets/gimpactiongroup.c app/widgets/gimpactiongroup.c
-index 04bd1b6..12eff51 100644
---- a/app/widgets/gimpactiongroup.c
-+++ b/app/widgets/gimpactiongroup.c
-@@ -393,7 +393,7 @@ gimp_action_group_add_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -401,15 +401,18 @@ gimp_action_group_add_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_action_impl_new (entries[i].name, label, tooltip,
-@@ -450,15 +453,18 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_toggle_action_new (entries[i].name, label, tooltip,
-@@ -504,17 +510,20 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_radio_action_new (entries[i].name, label, tooltip,
-@@ -560,7 +569,7 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
- for (i = 0; i < n_entries; i++)
- {
- GimpEnumAction *action;
-- const gchar *label;
-+ const gchar *label = NULL;
- const gchar *tooltip = NULL;
-
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
-@@ -568,15 +577,18 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
-
- if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_enum_action_new (entries[i].name, label, tooltip,
-@@ -618,17 +630,20 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
- if (! gimp_action_group_check_unique_action (group, entries[i].name))
- continue;
-
-- if (msg_context)
-+ if (msg_context)
- {
-- label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-+ if (entries[i].label)
-+ label = g_dpgettext2 (NULL, msg_context, entries[i].label);
-
- if (entries[i].tooltip)
- tooltip = g_dpgettext2 (NULL, msg_context, entries[i].tooltip);
- }
- else
- {
-- label = gettext (entries[i].label);
-- tooltip = gettext (entries[i].tooltip);
-+ if (entries[i].label)
-+ label = gettext (entries[i].label);
-+ if (entries[i].tooltip)
-+ tooltip = gettext (entries[i].tooltip);
- }
-
- action = gimp_string_action_new (entries[i].name, label, tooltip,
diff --git a/srcpkgs/gimp/patches/gcc14.patch b/srcpkgs/gimp/patches/gcc14.patch
deleted file mode 100644
index ceae92fa154c82..00000000000000
--- a/srcpkgs/gimp/patches/gcc14.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 99531e73e95bf6de4aed9bf64ac3f306e6dfb490 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Fri, 13 Jan 2023 13:29:07 +0100
-Subject: [PATCH] configure.ac: Improve C99 compatibility of IPC_RMID check
-
-Do not call the undeclared exit function. Implicit function
-declarations are likely not going to be supported by future compilers
-by default, changing the outcome of this configure probe with
-such compilers.
----
- configure.ac | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 03047899841..b8718955471 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1254,17 +1254,17 @@ elif test "x$shmtype" = "xsysv"; then
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
- ]])],
- [AC_DEFINE([IPC_RMID_DEFERRED_RELEASE],[1],
-diff --git a/configure b/configure
-index 6e62da8e3c164f82..f1c447baf7ff68f7 100755
---- a/configure
-+++ b/configure
-@@ -28898,17 +28898,17 @@ else $as_nop
- char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
- if (id == -1)
-- exit (2);
-+ return 2;
- shmaddr = shmat (id, 0, 0);
- shmctl (id, IPC_RMID, 0);
- if ((char*) shmat (id, 0, 0) == (char*) -1)
- {
- shmdt (shmaddr);
-- exit (1);
-+ return 1;
- }
- shmdt (shmaddr);
- shmdt (shmaddr);
-- exit (0);
-+ return 0;
- }
-
- _ACEOF
diff --git a/srcpkgs/gimp/patches/libheif-1.18-compat.patch b/srcpkgs/gimp/patches/libheif-1.18-compat.patch
deleted file mode 100644
index e714d25f2bab6b..00000000000000
--- a/srcpkgs/gimp/patches/libheif-1.18-compat.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/configure.ac 2024-08-29 18:28:19.457012043 -0500
-+++ b/configure.ac 2024-08-29 18:28:29.154953488 -0500
-@@ -1843,13 +1843,13 @@
- can_import_avif=no
- can_export_avif=no
- if test "x$have_libheif" = xyes; then
-- can_import_heic=`$PKG_CONFIG --variable=builtin_h265_decoder libheif`
-- can_export_heic=`$PKG_CONFIG --variable=builtin_h265_encoder libheif`
-+ can_import_heic=yes
-+ can_export_heic=yes
- if test "x$can_import_heic" = xyes; then
- MIME_TYPES="$MIME_TYPES;image/heif;image/heic"
- fi
-- can_import_avif=`$PKG_CONFIG --variable=builtin_avif_decoder libheif`
-- can_export_avif=`$PKG_CONFIG --variable=builtin_avif_encoder libheif`
-+ can_import_avif=yes
-+ can_export_avif=yes
- if test "x$can_import_avif" = xyes; then
- MIME_TYPES="$MIME_TYPES;image/avif"
- fi
diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template
index a50409d5ce5af1..6d4163a8a83c58 100644
--- a/srcpkgs/gimp/template
+++ b/srcpkgs/gimp/template
@@ -1,34 +1,40 @@
# Template file for 'gimp'
pkgname=gimp
-version=2.10.38
-revision=3
-build_style=gnu-configure
-configure_args="--disable-check-update --datadir=/usr/share --disable-python"
-hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
- libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
-makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
- ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
- libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
- libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
- poppler-glib-devel glib-networking libwebp-devel
- libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
-depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
+version=3.0.0+rc2
+revision=1
+build_style=meson
+build_helper="gir qemu"
+configure_args="-Dcheck-update=no -Drevision=$revision -Denable-default-bin=enabled
+ -Dbug-report-url=https://github.com/void-linux/void-packages/issues/new/choose"
+hostmakedepends="pkg-config xdg-utils perl libxslt gjs LuaJIT desktop-file-utils
+ AppStream gettext gi-docgen gobject-introspection
+ yelp-tools librsvg-devel glib-devel"
+makedepends="babl-devel gtk+3-devel gegl-devel libgexiv2-devel libgirepository-devel
+ libmypaint-devel mypaint-brushes librsvg-devel glib-networking appstream-glib-devel
+ libXmu-devel ghostscript-devel libmng-devel aalib-devel libXpm-devel libopenexr-devel
+ libwebp-devel libheif-devel poppler-glib-devel libwmf-devel libopenjpeg2-devel
+ libjxl-devel alsa-lib-devel cfitsio-devel python3-gobject-devel libgomp-devel
+ libunwind-devel lua51-lgi gettext"
+depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes python3-gobject"
+checkdepends="xvfb-run dbus"
short_desc="GNU image manipulation program"
conf_files="/etc/gimp/${version%%.*}.0/*"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-only"
homepage="https://www.gimp.org"
-changelog="https://gitlab.gnome.org/GNOME/gimp/-/raw/gimp-2-10/NEWS"
-distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
-checksum=50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
+distfiles="https://download.gimp.org/gimp/v${version%.*}/gimp-${version/+rc/-RC}.tar.xz"
+checksum=f4d2f96df180ce5543f8b2b35707b9bf11459f00f726ca73da2f406d686d9db7
lib32disabled=yes
-no_generic_pkgconfig_link=yes
-pre_configure() {
- NOCONFIGURE=1 autoreconf -fi
- # don't allow configure to set DATADIRNAME=lib
- vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
+if [ "$CROSS_BUILD" ]; then
+ hostmakedepends+=" gimp"
+fi
+
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -Dheadless-tests=enabled"
+else
+ configure_args+=" -Dheadless-tests=disabled"
+fi
libgimp_package() {
short_desc+=" - runtime libraries"
@@ -38,13 +44,16 @@ libgimp_package() {
}
gimp-devel_package() {
- depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}"
+ depends="libgimp>=${version}_${revision} gegl-devel gtk+3-devel libgexiv2-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
- vmove usr/share/gtk-doc
- vmove usr/share/aclocal
vmove "usr/lib/*.so"
+ if [ -z "$CROSS_BUILD" ]; then
+ vmove usr/share/gir-1.0
+ vmove usr/share/vala
+ vmove usr/share/doc
+ fi
}
}
From 512ec50ddaa746653ab12bbe75046b36a6fd906e Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 02:44:09 -0400
Subject: [PATCH 04/10] gmic: update to 3.5.2.
---
.../patches/03-plugindir-and-no-wget.patch | 20 +++++------
srcpkgs/gmic/template | 35 +++++++++++--------
srcpkgs/libgmic | 1 +
3 files changed, 30 insertions(+), 26 deletions(-)
create mode 120000 srcpkgs/libgmic
diff --git a/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch b/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch
index 5b403240efc919..6317fd24592c50 100644
--- a/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch
+++ b/srcpkgs/gmic/patches/03-plugindir-and-no-wget.patch
@@ -1,15 +1,13 @@
-Index: gmic-2.9.9/src/Makefile
-===================================================================
---- gmic-2.9.9.orig/src/Makefile
-+++ gmic-2.9.9/src/Makefile
-@@ -67,8 +67,8 @@ INCLUDE = include
- SO = .so
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -86,8 +86,8 @@
+ INCLUDE ?= include
PIC = -fPIC
EXE =
-WGET = wget --no-check-certificate --quiet -O
--PLUGINDIR = $(shell gimptool-2.0 --gimpplugindir)/plug-ins
+-PLUGIN = $(shell gimptool-2.0 --gimpplugindir)/plug-ins
+WGET = false
-+PLUGINDIR = /usr/lib/gimp/2.0/plug-ins
- VERSION = $(shell grep 'gmic_version\ ' gmic.h | tail -c4 | head -c3)
- VERSION1 = $(shell grep 'gmic_version\ ' gmic.h | tail -c4 | head -c1)
- VERSION2 = $(shell grep 'gmic_version\ ' gmic.h | tail -c3 | head -c1)
++PLUGIN = $(shell gimptool-3.0 --gimpplugindir)/plug-ins/gmic_gimp_qt
+ SHARE = $(PREFIX)/share
+ BASH_COMPLETIONSDIR = $(shell pkg-config --variable completionsdir bash-completion || echo $(SHARE)/bash-completion/completions)
+ VERSION = $(shell grep -F 'gmic_version ' gmic.h | tail -c4 | head -c3)
diff --git a/srcpkgs/gmic/template b/srcpkgs/gmic/template
index 24d10147e3abad..89146bf42d375d 100644
--- a/srcpkgs/gmic/template
+++ b/srcpkgs/gmic/template
@@ -1,48 +1,53 @@
# Template file for 'gmic'
pkgname=gmic
-version=3.1.6
-revision=6
-_zart_hash=34ebf6cce0bafb98abe57cec83c4a02cd1abeca0
-create_wrksrc=yes
+version=3.5.2
+revision=1
+_zart_hash=d014169343f835381ad232ee11e077326561c9eb
build_wrksrc="src"
build_style=gnu-makefile
build_helper=qmake
-make_build_args="NOSTRIP=yes"
+make_build_args="NOSTRIP=yes lib libc cli gmic_qt gimp_shared zart"
make_use_env=yes
hostmakedepends="pkg-config gimp qt5-host-tools qt5-qmake"
makedepends="fftw-devel imath-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel lcms2-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
- gtk+-devel gimp-devel qt5-devel"
+ gimp-devel qt5-devel libwebp-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="CECILL-2.1, CECILL-C"
homepage="https://gmic.eu/"
distfiles="https://gmic.eu/files/source/gmic_${version}.tar.gz
- https://github.com/c-koi/zart/archive/${_zart_hash}.tar.gz"
-checksum="e73d63ba6520637c782b6e5e6805037a27b6255c011c9e2a60a56f9c28822ce4
- 257baa7e8b32ccfac0841c61ec317ad3ad1c2bfe2d44474b2ca879dc33f755f8"
-disable_parallel_build="yes"
+ https://github.com/c-koi/zart/archive/${_zart_hash}.tar.gz>zart-${_zart_hash}.tar.gz"
+checksum="5893b6e87a52792e12af2b51121465d6202a2310c2a751c5c9785910ff55dc14
+ baebe339566993194f98a71895bff09520b08f38e66eae215758aaa260557bcf"
+disable_parallel_build=yes
+skip_extraction="zart-${_zart_hash}.tar.gz"
post_extract() {
- mv gmic-${version}/* .
- mv zart-${_zart_hash} zart
+ vsrcextract -C zart zart-${_zart_hash}.tar.gz
}
post_install() {
vlicense ../COPYING
}
+libgmic_package() {
+ short_desc+=" - libraries"
+ pkg_install() {
+ vmove "usr/lib/*.so.*"
+ }
+}
+
gmic-gimp_package() {
short_desc+=" - GIMP plugin"
- depends="gimp ${sourcepkg}>=${version}_${revision}"
+ depends="gimp"
pkg_install() {
- vmove usr/lib/gimp
+ vmove "usr/lib/gimp"
}
}
gmic-zart_package() {
short_desc+=" - ZArt tool"
- depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin/zart
vmove usr/share/applications/zart.desktop
diff --git a/srcpkgs/libgmic b/srcpkgs/libgmic
new file mode 120000
index 00000000000000..433883885ce6f3
--- /dev/null
+++ b/srcpkgs/libgmic
@@ -0,0 +1 @@
+gmic
\ No newline at end of file
From 7633387bc6aaaced54e9fdf502933c30a9c0d72c Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Thu, 18 Apr 2024 03:22:14 -0400
Subject: [PATCH 05/10] resynthesizer: update to 2.0.3+4.
WIP gimp 3 port: https://github.com/bootchk/resynthesizer/issues/135
---
srcpkgs/resynthesizer/template | 29 +++++++++--------------------
1 file changed, 9 insertions(+), 20 deletions(-)
diff --git a/srcpkgs/resynthesizer/template b/srcpkgs/resynthesizer/template
index a58b0eec995854..69ed889aa12e31 100644
--- a/srcpkgs/resynthesizer/template
+++ b/srcpkgs/resynthesizer/template
@@ -1,26 +1,15 @@
# Template file for 'resynthesizer'
pkgname=resynthesizer
-version=2.0.3+1
+version=2.0.3+4
revision=1
-_commit=701e890d1d456e215e05daa7b4a88f5d9c6c03b3
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
+_commit=eed3bf8f0414d088b7401becf5f04a9a82d79b45
+build_style=meson
+hostmakedepends="pkg-config"
makedepends="gimp-devel glib-devel gettext-devel"
-short_desc="Suite of gimp plugins for texture healing and synthesis"
+depends="gimp"
+short_desc="Suite of GIMP plugins for texture healing and synthesis"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
-# FIXME: when gimp 3 is available, switch back to bootchk upstream
-#homepage="https://github.com/bootchk/resynthesizer"
-#distfiles="https://github.com/bootchk/resynthesizer/archive/refs/tags/v${version}.tar.gz"
-homepage="https://github.com/itr-tert/gimp-resynthesizer-scm"
-distfiles="https://github.com/itr-tert/gimp-resynthesizer-scm/archive/${_commit}.tar.gz"
-checksum=298286386466fbd6d2da06f8a920c6e6e313db7ca0a094a36a355978a64cefc0
-
-if [ "$CROSS_BUILD" ];then
- hostmakedepends+=" glib-devel gettext-devel"
- AUTOGEN_CONFIGURE_ARGS+=" --host=${XBPS_MACHINE%-musl} --build=${XBPS_CROSS_TRIPLET}"
-fi
-
-pre_configure() {
- ./autogen.sh ${AUTOGEN_CONFIGURE_ARGS}
-}
+homepage="https://github.com/bootchk/resynthesizer"
+distfiles="https://github.com/bootchk/resynthesizer/archive/${_commit}.tar.gz"
+checksum=c0d2a2af2ddbae5c54ac3f686d0422e9aec7931c5482a8783bdd38f98a1e8211
From 9b6db184c4cfce8003efe76afdc23ec31065e0dd Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 17:47:53 -0500
Subject: [PATCH 06/10] libjxl: disable gimp plugin
no longer needed, gimp 3 has native support
---
srcpkgs/libjxl/template | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template
index bdf38b2432761f..8159c04a1f4025 100644
--- a/srcpkgs/libjxl/template
+++ b/srcpkgs/libjxl/template
@@ -1,7 +1,7 @@
# Template file for 'libjxl'
pkgname=libjxl
version=0.10.3
-revision=2
+revision=3
_testdata_hash=ff8d743aaba05b3014f17e5475e576242fa979fc
build_style=cmake
configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
@@ -9,7 +9,7 @@ configure_args="-DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF
-DJPEGXL_ENABLE_SKCMS=OFF"
hostmakedepends="tar pkg-config asciidoc"
makedepends="brotli-devel highway-devel libpng-devel giflib-devel libjpeg-turbo-devel
- libopenexr-devel libwebp-devel gdk-pixbuf-devel gimp-devel lcms2-devel"
+ libopenexr-devel libwebp-devel gdk-pixbuf-devel lcms2-devel"
checkdepends="gtest-devel xdg-utils"
short_desc="JPEG XL image format reference implementation"
maintainer="Joshua Krämer <joshua@kraemer.link>"
@@ -64,7 +64,6 @@ libjxl-plugins_package() {
depends="desktop-file-utils"
pkg_install() {
vmove usr/lib/gdk-pixbuf-2.0
- vmove usr/lib/gimp
vmove usr/share/mime
vmove usr/share/thumbnailers
}
From e386403634c37bd179ad9595fc6af028d4cd6040 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 17:54:42 -0500
Subject: [PATCH 07/10] nufraw: remove gimp plugin
does not support gimp 3, no installs found in popcorn, upstream seems dead
---
srcpkgs/nufraw-gimp | 1 -
srcpkgs/nufraw/template | 25 ++++---------------------
srcpkgs/removed-packages/template | 18 ++++++++++--------
srcpkgs/ufraw-gimp | 1 -
4 files changed, 14 insertions(+), 31 deletions(-)
delete mode 120000 srcpkgs/nufraw-gimp
delete mode 120000 srcpkgs/ufraw-gimp
diff --git a/srcpkgs/nufraw-gimp b/srcpkgs/nufraw-gimp
deleted file mode 120000
index 0bd1459b2a16f5..00000000000000
--- a/srcpkgs/nufraw-gimp
+++ /dev/null
@@ -1 +0,0 @@
-nufraw
\ No newline at end of file
diff --git a/srcpkgs/nufraw/template b/srcpkgs/nufraw/template
index 89f197cffc4b1a..a82d28818d02e7 100644
--- a/srcpkgs/nufraw/template
+++ b/srcpkgs/nufraw/template
@@ -1,16 +1,13 @@
# Template file for 'nufraw'
pkgname=nufraw
version=0.43.3
-revision=2
+revision=3
_ver="${version%.*}-${version##*.}"
build_style=gnu-configure
-configure_args="--enable-contrast --enable-mime --enable-openmp --with-gimp
- --enable-extras"
+configure_args="--enable-contrast --enable-mime --enable-openmp --enable-extras"
hostmakedepends="pkg-config automake libtool glib-devel"
-# libgexiv2-devel is only here to fix build order, remove on next template
-# change
-makedepends="exiv2-devel gimp-devel glib-devel gtkimageview-devel lcms2-devel
- lensfun-devel jasper-devel libgexiv2-devel"
+makedepends="exiv2-devel glib-devel gtkimageview-devel lcms2-devel
+ lensfun-devel jasper-devel"
depends="desktop-file-utils"
short_desc="Utility to read and manipulate raw images from digital cameras"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -35,22 +32,8 @@ pre_build() {
chmod +x generate_schemas.sh
}
-nufraw-gimp_package() {
- depends="${sourcepkg}>=${version}_${revision}"
- short_desc+=" - gimp plugin"
- pkg_install() {
- vmove usr/lib/gimp
- }
-}
-
ufraw_package() {
depends="${sourcepkg}>=${version}_${revision}"
build_style=meta
short_desc+=" (transitional dummy package)"
}
-
-ufraw-gimp_package() {
- depends="nufraw-gimp>=${version}_${revision}"
- build_style=meta
- short_desc+=" - gimp plugin (transitional dummy package)"
-}
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index a5ca51952f9741..f06f44dfb6c808 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -23,6 +23,7 @@ replaces="
PolyMC<=7.2_1
PrusaSlicer<=2.5.2_5
Pyrex<=0.9.9_5
+ Rocket.Chat-Desktop<=3.8.7_3
SMC<=1.9_9
Slic3rPE<=2.5.2_5
Twisted<=17.9.0_2
@@ -335,11 +336,9 @@ replaces="
kmediaplayer<=5.115.0_1
kmime<=23.08.5_1
kpty<=5.115.0_1
- ksanecore<=24.08.3_1
- ksanecore-devel<=24.08.3_1
- libksane<=24.08.3_1
- libksane-devel<=24.08.3_1
kquickcharts<=5.115.0_1
+ ksanecore-devel<=24.08.3_1
+ ksanecore<=24.08.3_1
kxmlrpcclient<5.115.0_1
ladish-devel<=1_11
ladish<=1_11
@@ -405,6 +404,8 @@ replaces="
libgnome-keyring<=3.12.0_5
libgroff<=1.22.4_3
libgtkhtml<=4.10.0_1
+ libksane-devel<=24.08.3_1
+ libksane<=24.08.3_1
libkscreen<=5.27.11_3
libllvm10<=10.0.0_8
libllvm11<=11.0.0_2
@@ -530,6 +531,7 @@ replaces="
neofetch<=7.1.0_2
newt-python<=0.52.21_5
nodejs-lts-10<=10.24.0_2
+ nufraw-gimp<=0.43.3_2
nvidia340-dkms<=340.108_4
nvidia340-libs<=340.108_4
nvidia340-opencl<=340.108_4
@@ -736,8 +738,8 @@ replaces="
python3-jsonrpc-server<=0.4.0_2
python3-keepalive<=0.5_6
python3-lockfile<=0.12.2_7
- python3-nose<=1.3.7_10
python3-nose-random<=1.0.0_6
+ python3-nose<=1.3.7_10
python3-pgpdump<=1.5_10
python3-pyPEG2<=2.15.2_7
python3-pyenet<=5.15.0_2
@@ -783,9 +785,9 @@ replaces="
qucs<=0.0.19_2
qupzilla1<=1.8.9_16
qupzilla<=3.0.1_1
- rand48_r<=0.2_1
- rand48_r-devel<=0.2_1
r2-bindings<=1.0.1_2
+ rand48_r-devel<=0.2_1
+ rand48_r<=0.2_1
raul-devel<=0.8.0_6
raul<=0.8.0_6
redkite<=1.3.1_1
@@ -798,7 +800,6 @@ replaces="
rkt-stage1-fly<=1.30.0_3
rkt<=1.30.0_3
rmapi<=0.0.25_4
- Rocket.Chat-Desktop<=3.8.7_3
rpi-userland-devel<=20230920_1
rundird<=0.2.0_1
scantailor<=0.9.12.1_2
@@ -839,6 +840,7 @@ replaces="
traverso<=0.49.6_2
ttyload-git<=20141117_4
tuxc<=1.1_3
+ ufraw-gimp<=0.43.3_2
ulozto-downloader<=3.5.2_2
unicorn-python<=1.0.2_2
upwork<=5.6.10.0_1
diff --git a/srcpkgs/ufraw-gimp b/srcpkgs/ufraw-gimp
deleted file mode 120000
index 0bd1459b2a16f5..00000000000000
--- a/srcpkgs/ufraw-gimp
+++ /dev/null
@@ -1 +0,0 @@
-nufraw
\ No newline at end of file
From 1eb2542f28e6a24fce90fa247355457aa4280344 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 18:00:27 -0500
Subject: [PATCH 08/10] xsane: remove gimp plugin, clean up template
does not support gimp 3 (yet?)
https://gitlab.com/sane-project/frontend/xsane/-/issues/66
---
srcpkgs/removed-packages/template | 1 +
srcpkgs/xsane-gimp | 1 -
srcpkgs/xsane/template | 33 ++++---------------------------
3 files changed, 5 insertions(+), 30 deletions(-)
delete mode 120000 srcpkgs/xsane-gimp
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index f06f44dfb6c808..5d2376b0e79ba4 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -878,6 +878,7 @@ replaces="
xnoise-devel<=0.2.21_4
xnoise<=0.2.21_4
xnp2<=0.86_2
+ xsane-gimp<=0.999_5
xsetmode<=1.0.0_5
xsetpointer<=1.0.1_4
yabause-gtk<=0.9.15_2
diff --git a/srcpkgs/xsane-gimp b/srcpkgs/xsane-gimp
deleted file mode 120000
index aec7cacadda279..00000000000000
--- a/srcpkgs/xsane-gimp
+++ /dev/null
@@ -1 +0,0 @@
-xsane
\ No newline at end of file
diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template
index 7dde32af2b674c..f75bd7888b15fa 100644
--- a/srcpkgs/xsane/template
+++ b/srcpkgs/xsane/template
@@ -1,9 +1,11 @@
# Template file for 'xsane'
pkgname=xsane
version=0.999
-revision=5
+revision=6
+build_style="gnu-configure"
+configure_args="--disable-gimp"
hostmakedepends="pkg-config sane-devel gettext"
-makedepends="gtk+-devel lcms-devel sane-devel gimp-devel"
+makedepends="gtk+-devel lcms-devel sane-devel"
depends="sane"
short_desc="GTK-based X11 frontend for SANE"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -17,30 +19,3 @@ post_patch() {
-e 's,/usr/local/include,/usr/include,' \
configure
}
-
-do_build() {
- local _args="--prefix=/usr --sbindir=/usr/bin --mandir=/usr/share/man
- --target=${XBPS_CROSS_TRIPLET} --host=${XBPS_CROSS_TRIPLET}
- --build=${XBPS_TRIPLET}"
- ./configure ${_args} --enable-gimp
- make ${makejobs}
- mv src/xsane{,-gimp}
- make clean
- echo "=== ./configure ${_args} --disable-gimp"
- ./configure ${_args} --disable-gimp
- make ${makejobs}
-}
-
-do_install() {
- make DESTDIR="${DESTDIR}" install
-}
-
-xsane-gimp_package() {
- short_desc+=" - plugin for GIMP"
- depends="${sourcepkg}>=${version}_${revision}"
- pkg_install() {
- vbin src/xsane-gimp
- vmkdir usr/lib/gimp/2.0/plug-ins
- ln -s /usr/bin/xsane-gimp ${PKGDESTDIR}/usr/lib/gimp/2.0/plug-ins/xsane
- }
-}
From 6ac6bac8670d06dea127d442ef71b969da1048a5 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 18:06:52 -0500
Subject: [PATCH 09/10] gimp-lqr-plugin: remove
does not support gimp 3, project seems mostly dead
https://github.com/carlobaldassi/gimp-lqr-plugin/issues/17
---
srcpkgs/gimp-lqr-plugin/template | 19 -------------------
srcpkgs/removed-packages/template | 1 +
2 files changed, 1 insertion(+), 19 deletions(-)
delete mode 100644 srcpkgs/gimp-lqr-plugin/template
diff --git a/srcpkgs/gimp-lqr-plugin/template b/srcpkgs/gimp-lqr-plugin/template
deleted file mode 100644
index 7878f6cb795d24..00000000000000
--- a/srcpkgs/gimp-lqr-plugin/template
+++ /dev/null
@@ -1,19 +0,0 @@
-# Template file for 'gimp-lqr-plugin'
-pkgname=gimp-lqr-plugin
-version=0.7.2
-revision=2
-build_style=gnu-configure
-hostmakedepends="automake intltool pkg-config"
-makedepends="gimp-devel glib-devel gettext-devel liblqr-devel"
-short_desc="Gimp plugins for image resizing through seam carving"
-maintainer="CoolOhm <micvlas@gmail.com>"
-license="GPL-2.0-or-later"
-homepage="http://liquidrescale.wikidot.com/"
-distfiles="http://liquidrescale.wdfiles.com/local--files/en:download-page-sources/gimp-lqr-plugin-${version}.tar.bz2"
-checksum=169e11164e4fe4e93a0f06e545748bd77b206b7a471bdebf7dd3bc8a008e647a
-
-CFLAGS="-fcommon"
-
-post_patch() {
- vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
-}
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index 5d2376b0e79ba4..d977238575b937 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -166,6 +166,7 @@ replaces="
getmail<=5.14_2
gfbgraph<=0.2.5_1
gfm<=1.08_1
+ gimp-lqr-plugin<=0.7.2_2
gimp-python<=2.10.32_4
giti<=1.0.0_1
gksu<=2.0.2_4
From ce29b9ca14f2e9821d2b829d6e66c3cc0ddd0f76 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 9 Feb 2025 18:08:35 -0500
Subject: [PATCH 10/10] removed-packages: update to 0.1.20250209.
---
srcpkgs/removed-packages/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index d977238575b937..cde760d79b6d73 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -1,6 +1,6 @@
# Template file for 'removed-packages'
pkgname=removed-packages
-version=0.1.20250110
+version=0.1.20250209
revision=1
build_style=meta
short_desc="Uninstalls packages removed from repository"
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2025-02-10 2:21 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-18 7:24 [PR PATCH] GIMP 3 classabbyamp
2024-04-18 7:26 ` [PR REVIEW] " classabbyamp
2024-04-18 7:26 ` classabbyamp
2024-04-21 20:02 ` [PR PATCH] [Updated] " classabbyamp
2024-06-12 2:23 ` classabbyamp
2024-06-12 2:28 ` classabbyamp
2024-06-12 5:21 ` classabbyamp
2024-06-12 6:50 ` classabbyamp
2024-09-11 1:56 ` github-actions
2024-10-26 4:39 ` [PR PATCH] [Updated] " classabbyamp
2024-10-26 4:48 ` classabbyamp
2024-10-26 11:53 ` classabbyamp
2024-11-07 20:54 ` classabbyamp
2024-12-14 22:54 ` classabbyamp
2025-02-09 23:08 ` classabbyamp
2025-02-10 0:15 ` classabbyamp
2025-02-10 1:18 ` classabbyamp
2025-02-10 2:21 ` classabbyamp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).