mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 23:06:59 +01:00
gnu: Unify webkitgtk and webkitgtk-next.
* gnu/packages/webkit.scm (%webkit-version): Update to 2.38.3. (webkitgtk)[source]: Update hash. [arguments]<#:phases>: Add ‘set-CC’. Remove ‘patch-gtk-doc-scan’. [native-inputs]: Remove gtk-doc/stable and docbook-xml. Add gi-docgen. (webkitgtk-next)[name]: Rename to ‘webkitgtk-next’. [source, native-inputs]: Inherit fully. [arguments]<#:phases>: Inherit fully. (wpewebkit)[source]: Update hash.
This commit is contained in:
parent
abdca6f9e0
commit
74e4896b37
1 changed files with 12 additions and 35 deletions
|
@ -124,18 +124,18 @@ (define-public wpebackend-fdo
|
||||||
engine that uses Wayland for graphics output.")
|
engine that uses Wayland for graphics output.")
|
||||||
(license license:bsd-2)))
|
(license license:bsd-2)))
|
||||||
|
|
||||||
(define %webkit-version "2.36.8") ;webkit2gtk4
|
(define %webkit-version "2.38.3")
|
||||||
|
|
||||||
(define-public webkitgtk
|
(define-public webkitgtk
|
||||||
(package
|
(package
|
||||||
(name "webkitgtk")
|
(name "webkitgtk") ; webkit2gtk4
|
||||||
(version %webkit-version)
|
(version %webkit-version)
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "https://www.webkitgtk.org/releases/"
|
(uri (string-append "https://www.webkitgtk.org/releases/"
|
||||||
name "-" version ".tar.xz"))
|
name "-" version ".tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0dq4s0rw3cmsxlv22pc38qdsq4wx2yyq9wgsi4wgw243y9mzpn8a"))
|
(base32 "0njac0878ksh53gn50phly1vzvj08q7g5aclncv6k324xp8h3w21"))
|
||||||
(patches (search-patches
|
(patches (search-patches
|
||||||
"webkitgtk-adjust-bubblewrap-paths.patch"))))
|
"webkitgtk-adjust-bubblewrap-paths.patch"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
|
@ -166,6 +166,11 @@ (define-public webkitgtk
|
||||||
#:make-flags #~(list "-j" (number->string (max 2 (parallel-job-count))))
|
#:make-flags #~(list "-j" (number->string (max 2 (parallel-job-count))))
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
|
(add-before 'build 'set-CC
|
||||||
|
(lambda _
|
||||||
|
;; Some Perl scripts check for the CC environment variable, else
|
||||||
|
;; use /usr/bin/gcc.
|
||||||
|
(setenv "CC" #$(cc-for-target))))
|
||||||
(add-after 'unpack 'configure-bubblewrap-store-directory
|
(add-after 'unpack 'configure-bubblewrap-store-directory
|
||||||
(lambda _
|
(lambda _
|
||||||
;; This phase works in tandem with
|
;; This phase works in tandem with
|
||||||
|
@ -189,12 +194,6 @@ (define-public webkitgtk
|
||||||
;; the pkg-config search to locate headers.
|
;; the pkg-config search to locate headers.
|
||||||
(("pkg_check_modules\\(PC_SYSTEMD QUIET libsystemd")
|
(("pkg_check_modules\\(PC_SYSTEMD QUIET libsystemd")
|
||||||
"pkg_check_modules(PC_SYSTEMD QUIET libelogind"))))
|
"pkg_check_modules(PC_SYSTEMD QUIET libelogind"))))
|
||||||
(add-after 'unpack 'patch-gtk-doc-scan
|
|
||||||
(lambda* (#:key native-inputs inputs #:allow-other-keys)
|
|
||||||
(substitute* (find-files "Source" "\\.sgml$")
|
|
||||||
(("http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd")
|
|
||||||
(search-input-file (or native-inputs inputs)
|
|
||||||
"xml/dtd/docbook/docbookx.dtd")))))
|
|
||||||
(add-after 'unpack 'embed-absolute-wpebackend-reference
|
(add-after 'unpack 'embed-absolute-wpebackend-reference
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(let ((wpebackend-fdo (assoc-ref inputs "wpebackend-fdo")))
|
(let ((wpebackend-fdo (assoc-ref inputs "wpebackend-fdo")))
|
||||||
|
@ -223,9 +222,7 @@ (define-public webkitgtk
|
||||||
perl
|
perl
|
||||||
pkg-config
|
pkg-config
|
||||||
python-wrapper
|
python-wrapper
|
||||||
;; These are required to build the documentation.
|
gi-docgen
|
||||||
gtk-doc/stable
|
|
||||||
docbook-xml
|
|
||||||
ruby))
|
ruby))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list gtk+ libsoup))
|
(list gtk+ libsoup))
|
||||||
|
@ -282,33 +279,13 @@ (define-public webkitgtk
|
||||||
(define-public webkitgtk-next
|
(define-public webkitgtk-next
|
||||||
(package
|
(package
|
||||||
(inherit webkitgtk)
|
(inherit webkitgtk)
|
||||||
(name "webkitgtk")
|
(name "webkitgtk-next") ; webkit2gtk5
|
||||||
(version "2.38.3") ;webkit2gtk5
|
|
||||||
(source (origin
|
|
||||||
(inherit (package-source webkitgtk))
|
|
||||||
(method url-fetch)
|
|
||||||
(uri (string-append "https://www.webkitgtk.org/releases/"
|
|
||||||
name "-" version ".tar.xz"))
|
|
||||||
(sha256
|
|
||||||
(base32 "0njac0878ksh53gn50phly1vzvj08q7g5aclncv6k324xp8h3w21"))))
|
|
||||||
(build-system cmake-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments webkitgtk)
|
(substitute-keyword-arguments (package-arguments webkitgtk)
|
||||||
((#:configure-flags flags)
|
((#:configure-flags flags)
|
||||||
#~(cons* "-DENABLE_INTROSPECTION=ON"
|
#~(cons* "-DENABLE_INTROSPECTION=ON"
|
||||||
"-DUSE_GTK4=ON"
|
"-DUSE_GTK4=ON"
|
||||||
(delete "-DENABLE_GTKDOC=ON" #$flags)))
|
(delete "-DENABLE_GTKDOC=ON" #$flags)))))
|
||||||
((#:phases phases)
|
|
||||||
#~(modify-phases #$phases
|
|
||||||
(add-before 'build 'set-CC
|
|
||||||
(lambda _
|
|
||||||
;; Some Perl scripts check for the CC environment variable, else
|
|
||||||
;; use /usr/bin/gcc.
|
|
||||||
(setenv "CC" "gcc")))))))
|
|
||||||
(native-inputs
|
|
||||||
(modify-inputs (package-native-inputs webkitgtk)
|
|
||||||
(delete "docbook-xml" "gtk-doc")
|
|
||||||
(append gi-docgen)))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(modify-inputs (package-propagated-inputs webkitgtk)
|
(modify-inputs (package-propagated-inputs webkitgtk)
|
||||||
(replace "gtk+" gtk)))
|
(replace "gtk+" gtk)))
|
||||||
|
@ -340,7 +317,7 @@ (define-public wpewebkit
|
||||||
(uri (string-append "https://wpewebkit.org/releases/"
|
(uri (string-append "https://wpewebkit.org/releases/"
|
||||||
name "-" version ".tar.xz"))
|
name "-" version ".tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1svmvj96c0lhdhs7fndgwchkvv4wyb7gwd4d3fbd1chhr54s6hld"))))
|
(base32 "160456k4yiml0zn2fxba9qwp94dvvn93z9rqs2qa2lvjxig0gn8x"))))
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments webkitgtk)
|
(substitute-keyword-arguments (package-arguments webkitgtk)
|
||||||
((#:configure-flags flags)
|
((#:configure-flags flags)
|
||||||
|
|
Loading…
Reference in a new issue