From 7079fabc8eee8913df79346cd5747837a3262825 Mon Sep 17 00:00:00 2001 From: ng0 Date: Wed, 3 Aug 2016 08:18:14 +0000 Subject: [PATCH] gnu: Add libunique. * gnu/packages/gnome.scm (libunique): New variable. --- gnu/packages/gnome.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 2038f8f..9df26ee 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -5420,3 +5420,40 @@ GLib/GObject code.") "Libgnomekbd is a keyboard configuration library for the GNOME desktop environment, which can notably display keyboard layouts.") (license license:lgpl2.0+))) + +(define-public libunique + (package + (name "libunique") + (version "3.0.2") + (source (origin + (method url-fetch) + (uri (string-append "mirror://gnome/sources/" name "/" + (version-major+minor version) "/" + name "-" version ".tar.xz")) + (sha256 + (base32 + "0f70lkw66v9cj72q0iw1s2546r6bwwcd8idcm3621fg2fgh2rw58")))) + ;;(build-system gnu-build-system) + (build-system glib-or-gtk-build-system) + (arguments + `(#:configure-flags '("--disable-static" + "--disable-dbus" ; use gdbus + "--enable-introspection"))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("gobject-introspection" ,gobject-introspection) + ("glib:bin" ,glib "bin") + ("gtk-doc" ,gtk-doc))) + (propagated-inputs + ;; Referred to in .h files and .pc. + `(("gtk+" ,gtk+))) + (home-page "https://wiki.gnome.org/Attic/LibUnique") + (synopsis "Library for writing single instance application") + (description + "Libunique is a library for writing single instance application. If you +launch a single instance application twice, the second instance will +either just quit or will send a message to the running instance. +Libunique makes it easy to write this kind of applications, by providing a +base class, taking care of all the IPC machinery needed to send messages +to a running instance, and also handling the startup notification side.") + (license license:lgpl2.1+))) -- 2.9.2