summary refs log tree commit diff
diff options
context:
space:
mode:
authorKei Kebreau <kkebreau@posteo.net>2020-04-21 19:28:12 -0400
committerKei Kebreau <kkebreau@posteo.net>2020-05-12 10:49:53 -0400
commit2791c39c264be4684c682e722c1c308d630e94ee (patch)
tree0d73eaef19fe24e762673a8ba66b9e5ecfbd8a00
parente930a9ae87a4ea4b379e299a5ad681f01a71e61d (diff)
downloadguix-2791c39c264be4684c682e722c1c308d630e94ee.tar.gz
gnu: Add tepl.
* gnu/packages/gnome.scm (tepl): New variable.
-rw-r--r--gnu/packages/gnome.scm54
1 files changed, 54 insertions, 0 deletions
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 59922cdf8c..28e7bda71b 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -6031,6 +6031,60 @@ javascript engine and the GObject introspection framework.")
 powerful general purpose text editor.")
     (license license:gpl2+)))
 
+(define-public tepl
+  (package
+    (name "tepl")
+    (version "4.4.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://gnome/sources/tepl/"
+                                  (version-major+minor version) "/"
+                                  "tepl-" version ".tar.xz"))
+              (sha256
+               (base32
+                "0mm2z849hnni7597an05mrv0dckrxjngpf2xfa0g5s17i8x6gxp6"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'disable-failing-test
+           (lambda _
+             ;; FIXME: test-file-metadata fails with
+             ;; (./test-file-metadata:11481): Tepl-WARNING **: 22:04:30.659:
+             ;; GVfs metadata is not supported. Fallback to TeplMetadataManager.
+             ;; Either GVfs is not correctly installed or GVfs metadata are not
+             ;; supported on this platform. In the latter case, you should
+             ;; configure Tepl with --disable-gvfs-metadata.
+             (substitute* "testsuite/Makefile.in"
+               (("test-file-metadata") ""))
+             #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)))))
+    (native-inputs
+     `(("glib:bin" ,glib "bin")
+       ("gobject-introspection" ,gobject-introspection)
+       ("gtk-doc" ,gtk-doc)
+       ("pkg-config" ,pkg-config)
+       ("vala" ,vala)
+       ("xorg-server" ,xorg-server-for-tests)))
+    (propagated-inputs
+     `(;; tepl-4.pc refers to these
+       ("amtk" ,amtk)
+       ("glib" ,glib)
+       ("gtk+" ,gtk+)
+       ("gtksourceview" ,gtksourceview)
+       ("libxml2" ,libxml2)
+       ("uchardet" ,uchardet)))
+    (home-page "https://wiki.gnome.org/Projects/Tepl")
+    (synopsis "Library for the development of GtkSourceView-based text editors")
+    (description "Tepl is a library that eases the development of
+GtkSourceView-based text editors and IDEs.")
+    (license license:lgpl2.1+)))
+
 (define-public zenity
   (package
     (name "zenity")