unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add dzen.
@ 2017-02-13 23:28 Mekeor Melire
  2017-02-14  0:41 ` Leo Famulari
  0 siblings, 1 reply; 7+ messages in thread
From: Mekeor Melire @ 2017-02-13 23:28 UTC (permalink / raw)
  To: guix-devel

From 04f94c306f99a7bacc96b60ed60e9bb83a9cf767 Mon Sep 17 00:00:00 2001
From: Mekeor Melire <mekeor.melire@gmail.com>
Date: Tue, 14 Feb 2017 00:21:08 +0100
Subject: [PATCH] gnu: Add dzen.

* gnu/packages/xdisorg.scm (dzen): New variable.
---
 gnu/packages/xdisorg.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 510684a6c..7835c3660 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -16,6 +16,7 @@
 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
 ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
 ;;; Copyright © 2016 Petter <petter@mykolab.ch>
+;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -36,6 +37,7 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module (guix utils)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
@@ -1030,6 +1032,52 @@ border, and background.  It also supports multihead setups, customized mouse
 actions, a built-in clock, a battery monitor and a system tray.")
     (license license:gpl2)))
 
+(define-public dzen (package
+  (name "dzen")
+  (version "0.9.5")
+  (synopsis "General purpose messaging, notification and menuing program for X11")
+  (description "Dzen is a general purpose messaging, notification and menuing
+program for X11.  It was designed to be fast, tiny and scriptable in any language.")
+  (home-page "https://github.com/robm/dzen")
+  (license license:x11)
+  (source (origin
+      (method git-fetch)
+      (uri (git-reference
+          (url "https://github.com/robm/dzen.git")
+          (commit "488ab66019f475e35e067646621827c18a879ba1")))
+      (file-name (string-append name "-" version))
+      (sha256 (base32
+          "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
+  (build-system gnu-build-system)
+  (native-inputs `(("pkg-config" ,pkg-config)))
+  (inputs `(
+      ("libx11"      ,libx11)
+      ("libxft"      ,libxft)
+      ("libxpm"      ,libxpm)
+      ("libxinerama" ,libxinerama)))
+  (arguments `(
+      #:tests? #f
+      ; use our make-flags instead of `config.mk`
+      #:make-flags (list
+          (string-append "VERSION = " ,version)
+          (string-append "PREFIX = " %output)
+          "MANPREFIX = ${PREFIX}/share/man"
+          "INCS = -I."
+          "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
+          "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
+              -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
+          "LDFLAGS = ${LIBS}"
+          "CC = gcc"
+          "LD = ${CC}")
+      #:phases (modify-phases
+          %standard-phases
+          ; do not `./configure`
+          (delete 'configure)
+          ; do not `include config.mk` in `Makefile`
+          (add-before 'build 'dont-include-config-mk
+              (lambda* (#:key outputs #:allow-other-keys)
+                  (substitute* "Makefile" (("include config.mk") "")))))))))
+
 (define-public xcb-util-xrm
   (package
     (name "xcb-util-xrm")
-- 
2.11.0

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

end of thread, other threads:[~2017-03-02 23:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-13 23:28 [PATCH] gnu: Add dzen Mekeor Melire
2017-02-14  0:41 ` Leo Famulari
2017-02-22  0:10   ` Mekeor Melire
2017-03-02  2:34     ` Leo Famulari
2017-03-02  2:35       ` Leo Famulari
2017-03-02 23:25         ` Mekeor Melire
2017-03-02 23:51           ` Leo Famulari

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