[bug#77564,1/2] gnu: Make GIMP 3 the new gimp.

Message ID c7ee5fb9f4d18138146c8c2eb1277bd0f04eff5d.1743891590.git.liliana.prikler@gmail.com
State New
Headers
Series Make GIMP 3 the new GIMP |

Commit Message

Liliana Marie Prikler April 5, 2025, 9:44 p.m. UTC
  * gnu/packages/gimp.scm (gimp-2, gimp-3): New variables.
(gimp): Move old definition to gimp-2, point to gimp-3.
(gimp-next): Deprecate in favor of gimp-3.
---
 gnu/packages/gimp.scm | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)
  

Patch

diff --git a/gnu/packages/gimp.scm b/gnu/packages/gimp.scm
index 6e4916600f..ef03992f2d 100644
--- a/gnu/packages/gimp.scm
+++ b/gnu/packages/gimp.scm
@@ -335,7 +335,7 @@  (define-public gegl-0.4.44
      (modify-inputs (package-propagated-inputs gegl)
        (replace "babl" babl-0.1.96)))))
 
-(define-public gimp
+(define-public gimp-2
   (package
     (name "gimp")
     (version "2.10.38")
@@ -421,10 +421,10 @@  (define-public gimp
 that is extensible via a plugin system.")
     (license license:gpl3+))) ; some files are lgplv3
 
-(define-public gimp-next
+(define-public gimp-3
   (package
-    (inherit gimp)
-    (name "gimp-next")
+    (inherit gimp-2)
+    (name "gimp")
     (version "3.0.0")
     (source
      (origin
@@ -455,16 +455,20 @@  (define-public gimp-next
                    (mkdir-p (string-append #$output:doc "/share"))
                    (rename-file (string-append #$output "/share/doc")
                                 (string-append #$output:doc "/share/doc")))))))
-    (inputs (modify-inputs (package-inputs gimp)
+    (inputs (modify-inputs (package-inputs gimp-2)
               (replace "gtk+" gtk+)
               (prepend libxmu libxt)
               (prepend python python-pygobject gjs)
               (prepend libxslt)))
-    (native-inputs (modify-inputs (package-native-inputs gimp)
+    (native-inputs (modify-inputs (package-native-inputs gimp-2)
                      (prepend appstream-glib
                               gi-docgen
                               libarchive)))))
 
+(define-public gimp gimp-3)
+(define-public gimp-next
+  (deprecated-package "gimp-next" gimp-3))
+
 (define-public gimp-fourier
   (package
     (name "gimp-fourier")