mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-02 09:28:57 -05:00
gnu: gimp: Drop Python 2 support.
* gnu/packages/gimp.scm (gimp)[inputs]: Delete python-2 and python2-pygtk. [configure-flags]: Use gexps. Add "--disable-python". [phases]: Delete argument. [inputs, native-inputs]: Use new style.
This commit is contained in:
parent
faefd4d1db
commit
8d71e5b2a5
1 changed files with 45 additions and 59 deletions
|
@ -8,6 +8,7 @@
|
|||
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
|
||||
;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
|
||||
;;; Copyright © 2021 Vinicius Monego <monego@posteo.net>
|
||||
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -27,6 +28,7 @@
|
|||
(define-module (gnu packages gimp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (guix utils)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
|
@ -297,71 +299,55 @@ (define-public gimp
|
|||
(base32 "1p375gaw2daip6aiv1icrlpws5m1my5kalxkxrvl4zgdfsm5v0c8"))))
|
||||
(build-system gnu-build-system)
|
||||
(outputs '("out"
|
||||
"doc")) ; 9 MiB of gtk-doc HTML
|
||||
"doc")) ; 9 MiB of gtk-doc HTML
|
||||
(arguments
|
||||
'(#:configure-flags
|
||||
(list (string-append "--with-html-dir="
|
||||
(assoc-ref %outputs "doc")
|
||||
"/share/gtk-doc/html")
|
||||
(list
|
||||
#:configure-flags
|
||||
#~(list (string-append "--with-html-dir=" #$output "/share/gtk-doc/html")
|
||||
|
||||
;; Prevent the build system from running 'gtk-update-icon-cache'
|
||||
;; which is not needed during the build because Guix runs it at
|
||||
;; profile creation time.
|
||||
"ac_cv_path_GTK_UPDATE_ICON_CACHE=true"
|
||||
;; Prevent the build system from running 'gtk-update-icon-cache'
|
||||
;; which is not needed during the build because Guix runs it at
|
||||
;; profile creation time.
|
||||
"ac_cv_path_GTK_UPDATE_ICON_CACHE=true"
|
||||
|
||||
;; Disable automatic network request on startup to check for
|
||||
;; version updates.
|
||||
"--disable-check-update"
|
||||
;; Disable automatic network request on startup to check for
|
||||
;; version updates.
|
||||
"--disable-check-update"
|
||||
|
||||
;; ./configure requests not to annoy upstream with packaging bugs.
|
||||
"--with-bug-report-url=https://bugs.gnu.org/guix")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'install 'install-sitecustomize.py
|
||||
;; Install 'sitecustomize.py' into gimp's python directory to
|
||||
;; add pygobject and pygtk to pygimp's search path.
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((pythonpath (getenv "GUIX_PYTHONPATH"))
|
||||
(out (assoc-ref outputs "out"))
|
||||
(sitecustomize.py
|
||||
(string-append
|
||||
out "/lib/gimp/2.0/python/sitecustomize.py")))
|
||||
(call-with-output-file sitecustomize.py
|
||||
(lambda (port)
|
||||
(format port "import site~%")
|
||||
(format port "for dir in '~a'.split(':'):~%" pythonpath)
|
||||
(format port " site.addsitedir(dir)~%")))))))))
|
||||
;; Only Python 2 is supported; disable it.
|
||||
"--disable-python"
|
||||
|
||||
;; ./configure requests not to annoy upstream with packaging bugs.
|
||||
"--with-bug-report-url=https://bugs.gnu.org/guix")))
|
||||
(inputs
|
||||
`(("atk" ,atk)
|
||||
("babl" ,babl)
|
||||
("gegl" ,gegl)
|
||||
("gexiv2" ,gexiv2)
|
||||
("glib" ,glib)
|
||||
("glib-networking" ,glib-networking)
|
||||
("gtk+" ,gtk+-2)
|
||||
("libjpeg" ,libjpeg-turbo)
|
||||
("libmypaint" ,libmypaint)
|
||||
("libtiff" ,libtiff)
|
||||
("libwebp" ,libwebp)
|
||||
("mypaint-brushes" ,mypaint-brushes-1.3)
|
||||
("exif" ,libexif) ; optional, EXIF + XMP support
|
||||
("ghostscript" ,ghostscript) ; optional, EPS + PS support
|
||||
("lcms" ,lcms) ; optional, color management
|
||||
("libheif" ,libheif) ; optional, HEIF + AVIF support
|
||||
("libmng" ,libmng) ; optional, MNG support
|
||||
("librsvg" ,librsvg) ; optional, SVG support
|
||||
("libxcursor" ,libxcursor) ; optional, Mouse Cursor support
|
||||
("openexr" ,openexr-2) ; optional, EXR support
|
||||
("openjpeg" ,openjpeg) ; optional, JPEG 2000 support
|
||||
("poppler" ,poppler) ; optional, PDF support
|
||||
("poppler-data" ,poppler-data) ; optional, PDF support
|
||||
("python" ,python-2) ; optional, Python support
|
||||
("python2-pygtk" ,python2-pygtk))) ; optional, Python support
|
||||
(list atk
|
||||
babl
|
||||
gegl
|
||||
gexiv2
|
||||
glib
|
||||
glib-networking
|
||||
gtk+-2
|
||||
libjpeg-turbo
|
||||
libmypaint
|
||||
libtiff
|
||||
libwebp
|
||||
mypaint-brushes-1.3
|
||||
libexif ;optional, EXIF + XMP support
|
||||
ghostscript ;optional, EPS + PS support
|
||||
lcms ;optional, color management
|
||||
libheif ;optional, HEIF + AVIF support
|
||||
libmng ;optional, MNG support
|
||||
librsvg ;optional, SVG support
|
||||
libxcursor ;optional, Mouse Cursor support
|
||||
openexr-2 ;optional, EXR support
|
||||
openjpeg ;optional, JPEG 2000 support
|
||||
poppler ;optional, PDF support
|
||||
poppler-data)) ;optional, PDF support
|
||||
(native-inputs
|
||||
`(("desktop-file-utils" ,desktop-file-utils)
|
||||
("glib:bin" ,glib "bin") ; for glib-compile-resources and gdbus-codegen
|
||||
("intltool" ,intltool)
|
||||
("pkg-config" ,pkg-config)))
|
||||
(list desktop-file-utils
|
||||
`(,glib "bin") ;for glib-compile-resources and gdbus-codegen
|
||||
intltool
|
||||
pkg-config))
|
||||
(home-page "https://www.gimp.org")
|
||||
(synopsis "GNU Image Manipulation Program")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue