guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: ncurses/gpm: Move to (gnu packages ncurses).


From: Mark H. Weaver
Subject: 01/01: gnu: ncurses/gpm: Move to (gnu packages ncurses).
Date: Sun, 23 Jul 2017 17:17:24 -0400 (EDT)

mhw pushed a commit to branch master
in repository guix.

commit c67d80563fc7021484602889454de534469f2785
Author: Mark H Weaver <address@hidden>
Date:   Sun Jul 23 17:04:51 2017 -0400

    gnu: ncurses/gpm: Move to (gnu packages ncurses).
    
    This is needed to avoid compilation problems caused by the cyclic dependency
    between (gnu packages ncurses) and (gnu packages linux).
    
    * gnu/packages/linux.scm (ncurses/gpm): Move to ...
    * gnu/packages/ncurses.scm (ncurses/gpm): ... here.  Fix misleading
    indentation.  Add (gnu packages linux) to the module imports.
---
 gnu/packages/linux.scm   | 12 ------------
 gnu/packages/ncurses.scm | 14 ++++++++++++++
 2 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index c116716..456909a 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3013,18 +3013,6 @@ applications running on the Linux console.  It allows 
users to select items
 and copy/paste text in the console and in xterm.")
     (license license:gpl2+)))
 
-(define-public ncurses/gpm
-  (package/inherit ncurses
-    (name "ncurses-with-gpm")
-    (arguments
-        (substitute-keyword-arguments (package-arguments ncurses)
-         ((#:configure-flags cf)
-          `(cons (string-append "--with-gpm="
-                                (assoc-ref %build-inputs "gpm")
-                                "/lib/libgpm.so.2") ,cf))))
-    (inputs
-     `(("gpm" ,gpm)))))
-
 (define-public btrfs-progs
   (package
     (name "btrfs-progs")
diff --git a/gnu/packages/ncurses.scm b/gnu/packages/ncurses.scm
index 0b23baf..7899f19 100644
--- a/gnu/packages/ncurses.scm
+++ b/gnu/packages/ncurses.scm
@@ -32,6 +32,7 @@
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages swig)
+  #:use-module (gnu packages linux)
   #:use-module (guix utils))
 
 (define-public ncurses
@@ -200,6 +201,19 @@ ncursesw library provides wide character support.")
             (origin-patches (package-source ncurses))
             (search-patches "ncurses-CVE-2017-10684-10685.patch")))))))
 
+(define-public ncurses/gpm
+  (package/inherit ncurses
+    (name "ncurses-with-gpm")
+    (arguments
+     (substitute-keyword-arguments (package-arguments ncurses)
+       ((#:configure-flags cf)
+        `(cons (string-append "--with-gpm="
+                              (assoc-ref %build-inputs "gpm")
+                              "/lib/libgpm.so.2")
+               ,cf))))
+    (inputs
+     `(("gpm" ,gpm)))))
+
 (define-public dialog
   (package
     (name "dialog")



reply via email to

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