mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: gimp-resynthesizer: Update to 3.0, fix build.
* gnu/packages/gimp.scm (gimp-resynthesizer): Update to 3.0. [build-system]: Use meson-build-system. [arguments]: Enable tests. <#:phases>: Delete the 'set-env' and 'set-prefix' phases. [native-inputs]: Use modern format. Remove autoconf-wrapper, automake, glib:bin, intltool. [inputs]: Add gexiv2, gtk+, pango. Remove glib, gtk+-2. Order alphatically. Change-Id: I0ff842a7171882dde290981b0d41cba8049dc452
This commit is contained in:
parent
18008c9fc0
commit
9f780fa125
1 changed files with 10 additions and 39 deletions
|
@ -592,7 +592,7 @@ MyPaint.")
|
||||||
;; “Edit->Preferences->Folders->Plug Ins”.
|
;; “Edit->Preferences->Folders->Plug Ins”.
|
||||||
(package
|
(package
|
||||||
(name "gimp-resynthesizer")
|
(name "gimp-resynthesizer")
|
||||||
(version "2.0.3")
|
(version "3.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -601,48 +601,19 @@ MyPaint.")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1jwc8bhhm21xhrgw56nzbma6fwg59gc8anlmyns7jdiw83y0zx3j"))
|
"1w0mp8bpwlk6p2gwg9zqvckzyfc16djgmzjc8x9zp2biai3vkz7w"))
|
||||||
(file-name (git-file-name name version))))
|
(file-name (git-file-name name version))))
|
||||||
(build-system gnu-build-system)
|
(build-system meson-build-system)
|
||||||
(arguments
|
|
||||||
`( ;; Turn off tests to avoid:
|
|
||||||
;; make[1]: *** No rule to make target '../src/resynth-gui.c', needed by 'resynthesizer.pot'. Stop.
|
|
||||||
#:tests? #f
|
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
|
||||||
(add-after 'unpack 'set-env
|
|
||||||
(lambda _
|
|
||||||
(setenv "CONFIG_SHELL" (which "sh"))
|
|
||||||
#t))
|
|
||||||
(add-after 'configure 'set-prefix
|
|
||||||
;; Install plugin under $prefix, not under GIMP's libdir.
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
(let ((target (string-append (assoc-ref outputs "out")
|
|
||||||
"/lib/gimp/"
|
|
||||||
,(version-major
|
|
||||||
(package-version gimp))
|
|
||||||
".0")))
|
|
||||||
(substitute* (list "src/resynthesizer/Makefile"
|
|
||||||
"src/resynthesizer-gui/Makefile")
|
|
||||||
(("GIMP_LIBDIR = .*")
|
|
||||||
(string-append "GIMP_LIBDIR = " target "\n")))
|
|
||||||
(mkdir-p target)
|
|
||||||
#t))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
;; avoid ./autogen.sh: ./configure: /bin/sh: bad interpreter:
|
(list pkg-config))
|
||||||
;; No such file or directory
|
|
||||||
`(("autoconf" ,autoconf-wrapper)
|
|
||||||
("automake" ,automake)
|
|
||||||
("glib" ,glib "bin") ; glib-gettextize
|
|
||||||
("intltool" ,intltool)
|
|
||||||
("pkg-config" ,pkg-config)))
|
|
||||||
(inputs
|
(inputs
|
||||||
(list gimp
|
(list cairo
|
||||||
gdk-pixbuf ; needed by gimp-2.0.pc
|
gdk-pixbuf
|
||||||
cairo
|
|
||||||
gegl
|
gegl
|
||||||
gtk+-2 ; needed by gimpui-2.0.pc
|
gexiv2
|
||||||
glib))
|
gimp
|
||||||
|
gtk+
|
||||||
|
pango))
|
||||||
(home-page "https://github.com/bootchk/resynthesizer")
|
(home-page "https://github.com/bootchk/resynthesizer")
|
||||||
(synopsis "GIMP plugins for texture synthesis")
|
(synopsis "GIMP plugins for texture synthesis")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue