unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#42177] [PATCH 0/3] Add GNOME Builder
@ 2020-07-03 10:34 Leo Prikler
  2020-07-03 10:37 ` [bug#42177] [PATCH 1/3] gnu: Add sysprof Leo Prikler
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Leo Prikler @ 2020-07-03 10:34 UTC (permalink / raw)
  To: 42177

Hi Guix,

seeing how this has been long on the Guix wishlist, I've decided to
package GNOME Builder.  I don't yet have the complete package; support
for clang, flatpak and glade is currently missing, but the basics
should work to some extent.  Bear in mind, that I only did some light
usage testing, so there may be bugs I'm missing.

Regards, Leo





^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#42177] [PATCH 1/3] gnu: Add sysprof.
  2020-07-03 10:34 [bug#42177] [PATCH 0/3] Add GNOME Builder Leo Prikler
@ 2020-07-03 10:37 ` Leo Prikler
  2020-07-10 21:14   ` Ludovic Courtès
  2020-07-03 10:37 ` [bug#42177] [PATCH 2/3] gnu: Add template-glib Leo Prikler
  2020-07-03 10:37 ` [bug#42177] [PATCH 3/3] gnu: Add gnome-builder Leo Prikler
  2 siblings, 1 reply; 7+ messages in thread
From: Leo Prikler @ 2020-07-03 10:37 UTC (permalink / raw)
  To: 42177

* gnu/packages/gnome.scm (sysprof): New variable.
---
 gnu/packages/gnome.scm | 46 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index d2e452d8f2..520129618c 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -10465,3 +10465,49 @@ GObject introspection bindings.")
      (home-page "https://source.puri.sm/Librem5/feedbackd")
      (license (list license:lgpl2.1+   ; libfeedbackd
                     license:lgpl3+)))) ; the rest
+
+(define-public sysprof
+  (package
+    (name "sysprof")
+    (version "3.34.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://gnome/sources/" name "/"
+                                  (version-major+minor version) "/"
+                                  name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "1l4kr1av7933vb4zql9c5lgzivlw64hyky4nr8xin1v5if6vnjw4"))))
+    (build-system meson-build-system)
+    (arguments
+     `(#:configure-flags
+       (list (string-append "-Dsystemdunitdir="
+                            %output
+                            "/share/systemd"))
+       #:tests? #f ; 3/4 test-model-filter barfs some dbus nonsense
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-install-script
+           (lambda _
+             (substitute* "build-aux/meson/post_install.sh"
+               (("gtk-update-icon-cache") "true")
+               (("update-desktop-database") "true"))
+             #t)))))
+    (inputs
+     `(("glib" ,glib)
+       ("gtk+" ,gtk+)
+       ("libdazzle" ,libdazzle)
+       ("polkit" ,polkit)))
+    (native-inputs
+     `(("gettext" ,gettext-minimal)
+       ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
+       ("itstool" ,itstool)
+       ("pkg-config" ,pkg-config)
+       ("xmllint" ,libxml2)))
+    (home-page "http://www.sysprof.com/")
+    (synopsis "System-wide Performance Profiler")
+    (description "Sysprof is a sampling profiler that uses a kernel module
+to generate stacktraces which are then interpreted by the userspace program
+``sysprof''.")
+    (license (list license:gpl2+
+                   license:gpl3+))))
-- 
2.27.0





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#42177] [PATCH 2/3] gnu: Add template-glib.
  2020-07-03 10:34 [bug#42177] [PATCH 0/3] Add GNOME Builder Leo Prikler
  2020-07-03 10:37 ` [bug#42177] [PATCH 1/3] gnu: Add sysprof Leo Prikler
@ 2020-07-03 10:37 ` Leo Prikler
  2020-07-10 21:21   ` Ludovic Courtès
  2020-07-03 10:37 ` [bug#42177] [PATCH 3/3] gnu: Add gnome-builder Leo Prikler
  2 siblings, 1 reply; 7+ messages in thread
From: Leo Prikler @ 2020-07-03 10:37 UTC (permalink / raw)
  To: 42177

* gnu/packages/gnome.scm (template-glib): New variable.
---
 gnu/packages/gnome.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 520129618c..c0517a5421 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -10511,3 +10511,32 @@ to generate stacktraces which are then interpreted by the userspace program
 ``sysprof''.")
     (license (list license:gpl2+
                    license:gpl3+))))
+
+(define-public template-glib
+  (package
+    (name "template-glib")
+    (version "3.34.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://gnome/sources/" name "/"
+                                  (version-major+minor version) "/"
+                                  name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "1z9xkin5fyfh071ma9y045jcw83hgx33dfbjraw6cxk0qdmfysr1"))))
+    (build-system meson-build-system)
+    (inputs
+     `(("bison" ,bison)
+       ("flex" ,flex)
+       ("glib" ,glib)
+       ("gobject-introspection" ,gobject-introspection)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("glib:bin" ,glib "bin")
+       ("vala" ,vala)))
+    (home-page "https://gitlab.gnome.org/GNOME/template-glib")
+    (synopsis "Library for template expansion")
+    (description "Template-GLib is a library to help you generate text based
+on a template and user defined state.  Template-GLib does not use a language
+runtime, so it is safe to use from any GObject-Introspectable language.")
+    (license license:lgpl2.1+)))
-- 
2.27.0





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#42177] [PATCH 3/3] gnu: Add gnome-builder.
  2020-07-03 10:34 [bug#42177] [PATCH 0/3] Add GNOME Builder Leo Prikler
  2020-07-03 10:37 ` [bug#42177] [PATCH 1/3] gnu: Add sysprof Leo Prikler
  2020-07-03 10:37 ` [bug#42177] [PATCH 2/3] gnu: Add template-glib Leo Prikler
@ 2020-07-03 10:37 ` Leo Prikler
  2020-07-10 21:22   ` bug#42177: " Ludovic Courtès
  2 siblings, 1 reply; 7+ messages in thread
From: Leo Prikler @ 2020-07-03 10:37 UTC (permalink / raw)
  To: 42177

* gnu/packages/gnome.scm (gnome-builder): New variable.
---
 gnu/packages/gnome.scm | 66 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index c0517a5421..2ea608d9bb 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -10540,3 +10540,69 @@ to generate stacktraces which are then interpreted by the userspace program
 on a template and user defined state.  Template-GLib does not use a language
 runtime, so it is safe to use from any GObject-Introspectable language.")
     (license license:lgpl2.1+)))
+
+(define-public gnome-builder
+  (package
+    (name "gnome-builder")
+    (version "3.36.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://gnome/sources/" name "/"
+                                  (version-major+minor version) "/"
+                                  name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "17pvmd5jypar8dkr6w56hvf7jnq4l1wih2wwgkrv7sblr7rkkar2"))))
+    (build-system meson-build-system)
+    (arguments
+     `(#:configure-flags (list "-Dnetwork_tests=false"
+                               ;; TODO: Enable all plugins...
+                               "-Dplugin_clang=false"
+                               "-Dplugin_flatpak=false"
+                               "-Dplugin_glade=false"
+                               ;; ... except this one.
+                               "-Dplugin_update_manager=false")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-meson
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "build-aux/meson/post_install.py"
+               (("gtk-update-icon-cache") "true")
+               (("update-desktop-database") "true"))
+             (substitute* "src/libide/meson.build"
+               (("/usr/lib")
+                (string-append (assoc-ref inputs "python-pygobject")
+                               "/lib")))
+             #t))
+         (add-before 'check 'pre-check
+           (lambda _
+             (system "Xvfb :1 &")
+             (setenv "DISPLAY" ":1")
+             #t)))))
+    (inputs
+     `(("devhelp" ,devhelp)
+       ("gspell" ,gspell)
+       ("gtk+" ,gtk+)
+       ("json-glib" ,json-glib)
+       ("jsonrpc-glib" ,jsonrpc-glib)
+       ("libdazzle" ,libdazzle)
+       ("libgit2-glib" ,libgit2-glib)
+       ("libpeas" ,libpeas)
+       ("python-pygobject" ,python-pygobject)
+       ("sysprof" ,sysprof)
+       ("template-glib" ,template-glib)
+       ("vte" ,vte)
+       ("webkitgtk" ,webkitgtk)))
+    (propagated-inputs
+     `(("gtksourceview" ,gtksourceview))) ; needed for settings
+    (native-inputs
+     `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
+       ("glib:bin" ,glib "bin")
+       ("gettext" ,gettext-minimal)
+       ("pkg-config" ,pkg-config)
+       ("vala" ,vala)
+       ("xorg-server" ,xorg-server-for-tests)))
+    (home-page "https://wiki.gnome.org/Apps/Builder")
+    (synopsis "Toolsmith for GNOME-based applications")
+    (description "Builder aims to be an IDE for writing GNOME-based software.")
+    (license license:gpl3+)))
-- 
2.27.0





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#42177] [PATCH 1/3] gnu: Add sysprof.
  2020-07-03 10:37 ` [bug#42177] [PATCH 1/3] gnu: Add sysprof Leo Prikler
@ 2020-07-10 21:14   ` Ludovic Courtès
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2020-07-10 21:14 UTC (permalink / raw)
  To: Leo Prikler; +Cc: 42177

[-- Attachment #1: Type: text/plain, Size: 145 bytes --]

Hi,

Leo Prikler <leo.prikler@student.tugraz.at> skribis:

> * gnu/packages/gnome.scm (sysprof): New variable.

Applied with the changes below:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 718 bytes --]

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 2d3270782c..3c9596cc1d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -10486,9 +10486,8 @@ GObject introspection bindings.")
        ("pkg-config" ,pkg-config)
        ("xmllint" ,libxml2)))
     (home-page "http://www.sysprof.com/")
-    (synopsis "System-wide Performance Profiler")
+    (synopsis "System-wide performance profiler")
     (description "Sysprof is a sampling profiler that uses a kernel module
 to generate stacktraces which are then interpreted by the userspace program
-``sysprof''.")
-    (license (list license:gpl2+
-                   license:gpl3+))))
+@command{sysprof}.")
+    (license license:gpl3+)))

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#42177] [PATCH 2/3] gnu: Add template-glib.
  2020-07-03 10:37 ` [bug#42177] [PATCH 2/3] gnu: Add template-glib Leo Prikler
@ 2020-07-10 21:21   ` Ludovic Courtès
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2020-07-10 21:21 UTC (permalink / raw)
  To: Leo Prikler; +Cc: 42177

Leo Prikler <leo.prikler@student.tugraz.at> skribis:

> * gnu/packages/gnome.scm (template-glib): New variable.

This one was unnecessary: we already have it.  :-)




^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#42177: [PATCH 3/3] gnu: Add gnome-builder.
  2020-07-03 10:37 ` [bug#42177] [PATCH 3/3] gnu: Add gnome-builder Leo Prikler
@ 2020-07-10 21:22   ` Ludovic Courtès
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2020-07-10 21:22 UTC (permalink / raw)
  To: Leo Prikler; +Cc: 42177-done

Leo Prikler <leo.prikler@student.tugraz.at> skribis:

> * gnu/packages/gnome.scm (gnome-builder): New variable.

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-07-10 21:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-03 10:34 [bug#42177] [PATCH 0/3] Add GNOME Builder Leo Prikler
2020-07-03 10:37 ` [bug#42177] [PATCH 1/3] gnu: Add sysprof Leo Prikler
2020-07-10 21:14   ` Ludovic Courtès
2020-07-03 10:37 ` [bug#42177] [PATCH 2/3] gnu: Add template-glib Leo Prikler
2020-07-10 21:21   ` Ludovic Courtès
2020-07-03 10:37 ` [bug#42177] [PATCH 3/3] gnu: Add gnome-builder Leo Prikler
2020-07-10 21:22   ` bug#42177: " Ludovic Courtès

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).