* [bug#50445] GtkSourceView
@ 2021-09-07 0:59 Raghav Gururajan via Guix-patches via
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 1/4] gnu: gtksourceview: Update to 4.8.1 and change build-system Raghav Gururajan via Guix-patches via
2021-09-07 19:23 ` bug#50445: GtkSourceView Raghav Gururajan via Guix-patches via
0 siblings, 2 replies; 8+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2021-09-07 0:59 UTC (permalink / raw)
To: 50445
[-- Attachment #1.1.1: Type: text/plain, Size: 97 bytes --]
Hello Guix!
I am opening this thread for patch-set regarding gtksourceview.
Regards,
RG.
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2649 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#50445] [PATCHES wip-gnome v1 1/4] gnu: gtksourceview: Update to 4.8.1 and change build-system.
2021-09-07 0:59 [bug#50445] GtkSourceView Raghav Gururajan via Guix-patches via
@ 2021-09-07 1:02 ` Raghav Gururajan via Guix-patches via
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 2/4] gnu: gtksourceview: Add missing input as per pkg-config file Raghav Gururajan via Guix-patches via
` (2 more replies)
2021-09-07 19:23 ` bug#50445: GtkSourceView Raghav Gururajan via Guix-patches via
1 sibling, 3 replies; 8+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2021-09-07 1:02 UTC (permalink / raw)
To: 50445; +Cc: Raghav Gururajan
* gnu/packages/gtk.scm (gtksourceview)[version]: Update to 4.8.1.
[build-system]: Change from gnu to meson.
---
gnu/packages/gtk.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index 1bdd6a2ac0..b05529ac98 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -538,7 +538,7 @@ printing and other features typical of a source code editor.")
(define-public gtksourceview
(package
(name "gtksourceview")
- (version "4.2.0")
+ (version "4.8.1")
(source (origin
(method url-fetch)
(uri (string-append "mirror://gnome/sources/gtksourceview/"
@@ -546,8 +546,8 @@ printing and other features typical of a source code editor.")
"gtksourceview-" version ".tar.xz"))
(sha256
(base32
- "0xgnjj7jd56wbl99s76sa1vjq9bkz4mdsxwgwlcphg689liyncf4"))))
- (build-system gnu-build-system)
+ "1hcswszqnsyqzzf5zk8iflxdvkfvvcg89pf6xsqwbyyabwdxfqyi"))))
+ (build-system meson-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
--
2.33.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#50445] [PATCHES wip-gnome v1 2/4] gnu: gtksourceview: Add missing input as per pkg-config file.
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 1/4] gnu: gtksourceview: Update to 4.8.1 and change build-system Raghav Gururajan via Guix-patches via
@ 2021-09-07 1:02 ` Raghav Gururajan via Guix-patches via
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 3/4] gnu: gtksourceview: Enable documentation Raghav Gururajan via Guix-patches via
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 4/4] gnu: gtksourceview@3: Adjust inherited fields and update to 3.24.11 Raghav Gururajan via Guix-patches via
2 siblings, 0 replies; 8+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2021-09-07 1:02 UTC (permalink / raw)
To: 50445; +Cc: Raghav Gururajan
* gnu/packages/gtk.scm (gtksourceview)[propagated-inputs]: Add fribidi.
---
gnu/packages/gtk.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index b05529ac98..fa3a69d46d 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -573,7 +573,8 @@ printing and other features typical of a source code editor.")
("shared-mime-info" ,shared-mime-info)))
(propagated-inputs
;; gtksourceview-3.0.pc refers to all these.
- `(("glib" ,glib)
+ `(("fribidi" ,fribidi)
+ ("glib" ,glib)
("gtk+" ,gtk+)
("libxml2" ,libxml2)))
(home-page "https://wiki.gnome.org/Projects/GtkSourceView")
--
2.33.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#50445] [PATCHES wip-gnome v1 3/4] gnu: gtksourceview: Enable documentation.
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 1/4] gnu: gtksourceview: Update to 4.8.1 and change build-system Raghav Gururajan via Guix-patches via
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 2/4] gnu: gtksourceview: Add missing input as per pkg-config file Raghav Gururajan via Guix-patches via
@ 2021-09-07 1:02 ` Raghav Gururajan via Guix-patches via
2021-09-07 14:05 ` Maxime Devos
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 4/4] gnu: gtksourceview@3: Adjust inherited fields and update to 3.24.11 Raghav Gururajan via Guix-patches via
2 siblings, 1 reply; 8+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2021-09-07 1:02 UTC (permalink / raw)
To: 50445; +Cc: Raghav Gururajan
* gnu/packages/gtk.scm (gtksourceview)[outputs]: New output "doc".
[configure-flags](gtk-doc): New flag.
[phases](patch-docbook-xml,move-doc): New phases.
[native-inputs]: Add docbook-xml-4.3, docbook-xsl, gtk-doc and libxslt.
---
gnu/packages/gtk.scm | 33 ++++++++++++++++++++++++++++++---
1 file changed, 30 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index fa3a69d46d..0a80671629 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -548,9 +548,24 @@ printing and other features typical of a source code editor.")
(base32
"1hcswszqnsyqzzf5zk8iflxdvkfvvcg89pf6xsqwbyyabwdxfqyi"))))
(build-system meson-build-system)
+ (outputs '("out" "doc"))
(arguments
- '(#:phases
+ `(#:configure-flags
+ (list
+ ,@(if (%current-target-system)
+ ;; If true, gtkdoc-scangobj will try to execute a
+ ;; cross-compiled binary.
+ '("-Dgtk_doc=false")
+ '("-Dgtk_doc=true")))
+ #:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs native-inputs outputs #:allow-other-keys)
+ (substitute* (find-files "docs" "\\.xml\\.in$")
+ (("http://www.oasis-open.org/docbook/xml/4.3/")
+ (string-append
+ (assoc-ref (or native-inputs inputs) "docbook-xml-4.3")
+ "/xml/dtd/docbook/")))))
(add-before
'check 'pre-check
(lambda* (#:key inputs #:allow-other-keys)
@@ -560,12 +575,24 @@ printing and other features typical of a source code editor.")
(setenv "DISPLAY" ":1")
;; For the missing /etc/machine-id.
(setenv "DBUS_FATAL_WARNINGS" "0")
- #t))))))
+ #t)))
+ (add-after 'install 'move-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (assoc-ref outputs "doc")))
+ (mkdir-p (string-append doc "/share/gtk-doc"))
+ (rename-file
+ (string-append out "/share/gtk-doc")
+ (string-append doc "/share/gtk-doc"))))))))
(native-inputs
- `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
+ `(("docbook-xml-4.3" ,docbook-xml-4.3)
+ ("docbook-xsl" ,docbook-xsl)
+ ("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
+ ("gtk-doc" ,gtk-doc)
("intltool" ,intltool)
("itstool" ,itstool)
("gobject-introspection" ,gobject-introspection)
+ ("libxslt" ,libxslt)
("pkg-config" ,pkg-config)
("vala" ,vala)
;; For testing.
--
2.33.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#50445] [PATCHES wip-gnome v1 4/4] gnu: gtksourceview@3: Adjust inherited fields and update to 3.24.11.
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 1/4] gnu: gtksourceview: Update to 4.8.1 and change build-system Raghav Gururajan via Guix-patches via
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 2/4] gnu: gtksourceview: Add missing input as per pkg-config file Raghav Gururajan via Guix-patches via
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 3/4] gnu: gtksourceview: Enable documentation Raghav Gururajan via Guix-patches via
@ 2021-09-07 1:02 ` Raghav Gururajan via Guix-patches via
2 siblings, 0 replies; 8+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2021-09-07 1:02 UTC (permalink / raw)
To: 50445; +Cc: Raghav Gururajan
* gnu/packages/gtk.scm (gtksourceview-3)[version]: Update to 3.24.11.
[build-system]: New field.
[arguments]: New field.
---
gnu/packages/gtk.scm | 36 ++++++++++++++++++++++++++++++++++--
1 file changed, 34 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index 0a80671629..c12ac512bc 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -614,7 +614,7 @@ highlighting and other features typical of a source code editor.")
(define-public gtksourceview-3
(package (inherit gtksourceview)
(name "gtksourceview")
- (version "3.24.10")
+ (version "3.24.11")
(source (origin
(method url-fetch)
(uri (string-append "mirror://gnome/sources/" name "/"
@@ -622,7 +622,39 @@ highlighting and other features typical of a source code editor.")
name "-" version ".tar.xz"))
(sha256
(base32
- "16ym7jwiki4s1pilwr4incx0yg7ll94f1cajrnpndkxxs36hcm5b"))))))
+ "1zbpj283b5ycz767hqz5kdq02wzsga65pp4fykvhg8xj6x50f6v9"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:configure-flags
+ (list
+ ,@(if (%current-target-system)
+ ;; If true, gtkdoc-scangobj will try to execute a
+ ;; cross-compiled binary.
+ '("--disable-gtk-doc")
+ '("--enable-gtk-doc"))
+ (string-append "--with-html-dir="
+ (assoc-ref %outputs "doc")
+ "/share/gtk-doc/html"))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs native-inputs outputs #:allow-other-keys)
+ (substitute* (find-files "docs" "\\.xml\\.in$")
+ (("http://www.oasis-open.org/docbook/xml/4.3/")
+ (string-append
+ (assoc-ref (or native-inputs inputs) "docbook-xml-4.3")
+ "/xml/dtd/docbook/")))))
+ (add-before 'check 'pre-check
+ (lambda _
+ ;; Tests require a running X server.
+ (system "Xvfb :1 +extension GLX &")
+ (setenv "DISPLAY" ":1")
+ ;; Tests write to $HOME.
+ (setenv "HOME" (getcwd))
+ ;; Tests look for $XDG_RUNTIME_DIR.
+ (setenv "XDG_RUNTIME_DIR" (getcwd))
+ ;; For missing '/etc/machine-id'.
+ (setenv "DBUS_FATAL_WARNINGS" "0"))))))))
(define-public gdk-pixbuf
(package
--
2.33.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#50445] [PATCHES wip-gnome v1 3/4] gnu: gtksourceview: Enable documentation.
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 3/4] gnu: gtksourceview: Enable documentation Raghav Gururajan via Guix-patches via
@ 2021-09-07 14:05 ` Maxime Devos
2021-09-07 19:21 ` Raghav Gururajan via Guix-patches via
0 siblings, 1 reply; 8+ messages in thread
From: Maxime Devos @ 2021-09-07 14:05 UTC (permalink / raw)
To: Raghav Gururajan, 50445
[-- Attachment #1: Type: text/plain, Size: 416 bytes --]
Hi,
> - '(#:phases
> + `(#:configure-flags
> + (list
> + ,@(if (%current-target-system)
> + ;; If true, gtkdoc-scangobj will try to execute a
> + ;; cross-compiled binary.
> + '("-Dgtk_doc=false")
> + '("-Dgtk_doc=true")))
These two lines above need to be indented.
Otherwise, this patch series looks good to me, but I didn't test it.
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#50445] [PATCHES wip-gnome v1 3/4] gnu: gtksourceview: Enable documentation.
2021-09-07 14:05 ` Maxime Devos
@ 2021-09-07 19:21 ` Raghav Gururajan via Guix-patches via
0 siblings, 0 replies; 8+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2021-09-07 19:21 UTC (permalink / raw)
To: Maxime Devos, 50445
[-- Attachment #1.1.1: Type: text/plain, Size: 164 bytes --]
Hi Maxime!
> These two lines above need to be indented.
>
> Otherwise, this patch series looks good to me, but I didn't test it.
Thanks.
Regards,
RG.
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2649 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#50445: GtkSourceView
2021-09-07 0:59 [bug#50445] GtkSourceView Raghav Gururajan via Guix-patches via
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 1/4] gnu: gtksourceview: Update to 4.8.1 and change build-system Raghav Gururajan via Guix-patches via
@ 2021-09-07 19:23 ` Raghav Gururajan via Guix-patches via
1 sibling, 0 replies; 8+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2021-09-07 19:23 UTC (permalink / raw)
To: 50445-done
[-- Attachment #1.1.1: Type: text/plain, Size: 48 bytes --]
Pushed to wip-gnome as dadb7f7fb2..3856817ede.
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2649 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-09-07 19:24 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-07 0:59 [bug#50445] GtkSourceView Raghav Gururajan via Guix-patches via
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 1/4] gnu: gtksourceview: Update to 4.8.1 and change build-system Raghav Gururajan via Guix-patches via
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 2/4] gnu: gtksourceview: Add missing input as per pkg-config file Raghav Gururajan via Guix-patches via
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 3/4] gnu: gtksourceview: Enable documentation Raghav Gururajan via Guix-patches via
2021-09-07 14:05 ` Maxime Devos
2021-09-07 19:21 ` Raghav Gururajan via Guix-patches via
2021-09-07 1:02 ` [bug#50445] [PATCHES wip-gnome v1 4/4] gnu: gtksourceview@3: Adjust inherited fields and update to 3.24.11 Raghav Gururajan via Guix-patches via
2021-09-07 19:23 ` bug#50445: GtkSourceView Raghav Gururajan via Guix-patches via
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).