guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: Add compton.


From: Ludovic Courtès
Subject: 01/02: gnu: Add compton.
Date: Sat, 21 Jan 2017 15:43:31 +0000 (UTC)

civodul pushed a commit to branch master
in repository guix.

commit cacf4e9db0b656759d0cac0badcd90897c7f50db
Author: José Miguel Sánchez García <address@hidden>
Date:   Fri Jan 20 11:59:15 2017 +0100

    gnu: Add compton.
    
    * gnu/packages/compton.scm: New file.
    * gnu/local.mk (GNU_SYSTEM_MODULES): Add compton.scm
    
    Signed-off-by: Ludovic Courtès <address@hidden>
---
 gnu/local.mk             |    1 +
 gnu/packages/compton.scm |  106 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 107 insertions(+)

diff --git a/gnu/local.mk b/gnu/local.mk
index 2da8b82..c2e7d49 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -78,6 +78,7 @@ GNU_SYSTEM_MODULES =                          \
   %D%/packages/code.scm                                \
   %D%/packages/commencement.scm                        \
   %D%/packages/compression.scm                 \
+  %D%/packages/compton.scm                     \
   %D%/packages/conkeror.scm                    \
   %D%/packages/conky.scm                       \
   %D%/packages/connman.scm                     \
diff --git a/gnu/packages/compton.scm b/gnu/packages/compton.scm
new file mode 100644
index 0000000..a0a644d
--- /dev/null
+++ b/gnu/packages/compton.scm
@@ -0,0 +1,106 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2017 José Miguel Sánchez García <address@hidden>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages compton)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix packages)
+  #:use-module (guix download)
+  #:use-module (guix build-system gnu)
+  #:use-module (gnu packages docbook)
+  #:use-module (gnu packages documentation)
+  #:use-module (gnu packages gl)
+  #:use-module (gnu packages glib)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages python)
+  #:use-module (gnu packages textutils)
+  #:use-module (gnu packages xdisorg)
+  #:use-module (gnu packages xml)
+  #:use-module (gnu packages xorg))
+
+(define-public compton
+  (let ((upstream-version "0.1_beta2"))
+    (package
+      (name "compton")
+      (version (string-filter (char-set-complement (char-set #\_))
+                              upstream-version))
+      (source (origin
+                (method url-fetch)
+                (uri (string-append
+                      "https://github.com/chjj/"; name "/archive/v"
+                      upstream-version ".tar.gz"))
+                (sha256
+                 (base32
+                  "02dhlqqcwnmlf2dxg7rd4lapgqahgndzixdkbpxicq9jawmdb73v"))
+                (file-name (string-append name "-" version "-checkout"))))
+      (build-system gnu-build-system)
+      (inputs
+       `(("dbus" ,dbus)
+         ("docbook-xml" ,docbook-xml)
+         ("libconfig" ,libconfig)
+         ("libx11" ,libx11)
+         ("libxcomposite" ,libxcomposite)
+         ("libxdamage" ,libxdamage)
+         ("libxext" ,libxext)
+         ("libxfixes" ,libxfixes)
+         ("libxinerama" ,libxinerama)
+         ("libxml2" ,libxml2)
+         ("libxrandr" ,libxrandr)
+         ("libxrender" ,libxrender)
+         ("libxslt" ,libxslt)
+         ("mesa" ,mesa)
+         ("xprop" ,xprop)
+         ("xwininfo" ,xwininfo)))
+      (native-inputs
+       `(("asciidoc" ,asciidoc)
+         ("libdrm" ,libdrm)
+         ("pkg-config" ,pkg-config)
+         ("python" ,python)
+         ("xproto" ,xproto)))
+      (arguments
+       `(#:make-flags (list
+                       "CC=gcc"
+                       "NO_REGEX_PCRE=1"          ; pcre makes build fail
+                       (string-append "PREFIX=" (assoc-ref %outputs "out")))
+         #:tests? #f                              ; no tests
+         #:phases
+         (modify-phases %standard-phases
+           (delete 'configure))))
+      (home-page "https://github.com/chjj/compton";)
+      (synopsis "Compositor for X11")
+      (description
+       "Compton is a compositor for the Xorg display server and a for of
+xcompmgr-dana, which implements some changes like:
+
address@hidden
address@hidden OpenGL backend (@command{--backend glx}), in addition to the old 
X Render
+backend.
address@hidden Inactive window transparency (@command{-i}) and dimming
+(@command{--inactive-dim}).
address@hidden Menu transparency (@command{-m}, thanks to Dana).
address@hidden Shadows are now enabled for argb windows, e.g terminals with 
transparency
address@hidden Removed serverside shadows (and simple compositing) to clean the 
code,
+the only option that remains is clientside shadows.
address@hidden Configuration files (see the man page for more details).
address@hidden Colored shadows (@command{--shadow-[red/green/blue]}).
address@hidden A new fade system.
address@hidden VSync support (not always working).
address@hidden Blur of background of transparent windows, window color 
inversion (bad in
+performance).
address@hidden Some more options...
address@hidden itemize\n")
+      (license license:expat))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]