guix-commits
[Top][All Lists]
Advanced

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

05/05: gnu: scdoc: Set PREFIX instead of patching Makefile.


From: guix-commits
Subject: 05/05: gnu: scdoc: Set PREFIX instead of patching Makefile.
Date: Mon, 28 Oct 2019 18:05:42 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit 84836379cd63f427dedda619d97aee0b352b86cd
Author: Brendan Tildesley <address@hidden>
Date:   Tue Oct 29 00:46:33 2019 +0900

    gnu: scdoc: Set PREFIX instead of patching Makefile.
    
    * gnu/packages/man.scm (scdoc)[arguments]: Set PREFIX instead of patching
    Makefile with output path.
    
    Signed-off-by: Marius Bakke <address@hidden>
---
 gnu/packages/man.scm | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/man.scm b/gnu/packages/man.scm
index 86efe64..e7e14c5 100644
--- a/gnu/packages/man.scm
+++ b/gnu/packages/man.scm
@@ -251,15 +251,11 @@ automatically.")
        "00zc3rzj97gscby31djlqyczvqpyhrl66i44czwzmmn7rc5j03m1"))))
    (build-system gnu-build-system)
    (arguments
-    `(#:make-flags '("CC=gcc")
+    `(#:make-flags
+      (list "CC=gcc" (string-append "PREFIX=" (assoc-ref %outputs "out")))
       #:phases
       (modify-phases %standard-phases
-        (delete 'configure)
-        (add-before 'install 'hardcode-paths
-          (lambda* (#:key outputs #:allow-other-keys)
-            (substitute* "Makefile"
-                         (("/usr/local") (assoc-ref outputs "out")))
-            #t)))))
+        (delete 'configure))))
    (home-page "https://git.sr.ht/~sircmpwn/scdoc";)
    (synopsis "Simple man page generator")
    (description "scdoc is a simple man page generator written for POSIX systems



reply via email to

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