[bug#43360,1/2] gnu: Add libgda.
diff mbox series

Message ID 20200912183533.5793-1-leo.prikler@student.tugraz.at
State New
Headers show
Series
  • Add gtranslator
Related show

Checks

Context Check Description
cbaines/applying patch fail View Laminar job

Commit Message

Leo Prikler Sept. 12, 2020, 6:35 p.m. UTC
* gnu/packages/gnome.scm (libgda): New variable.
---
 gnu/packages/gnome.scm | 66 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)

Comments

Ludovic Courtès Sept. 15, 2020, 12:30 p.m. UTC | #1
Hi!

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

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

[...]

> +         (add-after 'unpack 'remove-broken-tests
> +           (lambda _
> +             (substitute* "tests/multi-threading/Makefile.am"
> +               ((,(string-join
> +                   '("mutex" "parser" "cnc_lock" "threaded_cnc" "wrapper")
> +                   " check_"
> +                   'prefix))

Please use a literal string for the regexp.

It’d also be nice to add a short comment explaining what’s wrong with
those tests.

The rest LGTM, thanks!

Ludo’.

Patch
diff mbox series

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index ed2915e05a..01279aa882 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -11445,3 +11445,69 @@  integrated profiler via Sysprof, debugging support, and more.")
     (description "Komikku is an online/offline manga reader for GNOME,
 developed with the aim of being used with the Librem 5 phone.")
     (license license:gpl3+)))
+
+(define-public libgda
+  (package
+    (name "libgda")
+    (version "5.2.9")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://gitlab.gnome.org/GNOME/libgda.git/")
+             (commit "LIBGDA_5_2_9")))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "122anbk15vj2dfxrw7s48b6zwlpp7cyppshxizynvf3zmc0ygw3j"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'remove-broken-tests
+           (lambda _
+             (substitute* "tests/multi-threading/Makefile.am"
+               ((,(string-join
+                   '("mutex" "parser" "cnc_lock" "threaded_cnc" "wrapper")
+                   " check_"
+                   'prefix))
+                (string-join
+                 '("mutex" "parser" "wrapper")
+                 " check_"
+                 'prefix)))
+             #t))
+         (add-before 'check 'pre-check
+           (lambda* (#:key inputs #:allow-other-keys)
+             ;; Tests require a running X server.
+             (system "Xvfb :1 &")
+             (setenv "DISPLAY" ":1")
+             #t)))))
+    (propagated-inputs
+     `(("libxml2" ,libxml2)))           ; required by libgda-5.0.pc
+    (inputs
+     `(("glib" ,glib)
+       ("gtk+" ,gtk+)
+       ("libxslt" ,libxslt)
+       ("openssl" ,openssl)))
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("glib:bin" ,glib "bin")
+       ("gnome-common" ,gnome-common)
+       ("gobject-introspection" ,gobject-introspection)
+       ("gtk-doc" ,gtk-doc)
+       ("intltool" ,intltool)
+       ("libtool" ,libtool)
+       ("pkg-config" ,pkg-config)
+       ("vala" ,vala)
+       ("which" ,which)
+       ("xorg-server" ,xorg-server-for-tests)
+       ("yelp-tools" ,yelp-tools)))
+    (home-page "https://gitlab.gnome.org/GNOME/libgda")
+    (synopsis "Uniform data access")
+    (description
+     "GNU Data Access (GDA) is an attempt to provide uniform access to
+different kinds of data sources (databases, information servers, mail spools,
+etc).  It is a complete architecture that provides all you need to access
+your data.")
+    (license license:lgpl2.1+)))