~ruther/guix-local

d34aff1f7e41d264709fa907cc0ff6f1bfb3d945 — Ludovic Courtès a month ago e422aad
gnu: ttf2pt1: Modernize.

* gnu/packages/fontutils.scm (ttf2pt1)[source, arguments]: Use gexps.

Change-Id: I1974419be8a95823e29c45bd4c25c16e099002e0
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #5826
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
1 files changed, 30 insertions(+), 30 deletions(-)

M gnu/packages/fontutils.scm
M gnu/packages/fontutils.scm => gnu/packages/fontutils.scm +30 -30
@@ 1316,38 1316,38 @@ TTF (TrueType/OpenType Font) files.")
                "1l718n4k4widx49xz7qrj4mybzb8q67kp2jw7f47604ips4654mf"))
              (modules '((guix build utils)))
              (snippet
               '(begin
                  ;; Include <unistd.h> for the 'getopt' declaration.
                  (substitute* "t1asm.c"
                    (("#include <stdio.h>" all)
                     (string-append all "\n"
                                    "#include <unistd.h>\n")))

                  ;; Remove trailing backslashes in the sed expression of the
                  ;; 'install' rule since sed would otherwise fail.
                  (substitute* "Makefile"
                    (("\\|;\\\\[[:space:]]*$") "|; "))
                  #t))))
               #~(begin
                   ;; Include <unistd.h> for the 'getopt' declaration.
                   (substitute* "t1asm.c"
                     (("#include <stdio.h>" all)
                      (string-append all "\n"
                                     "#include <unistd.h>\n")))

                   ;; Remove trailing backslashes in the sed expression of the
                   ;; 'install' rule since sed would otherwise fail.
                   (substitute* "Makefile"
                     (("\\|;\\\\[[:space:]]*$") "|; "))
                   #t))))
    (build-system gnu-build-system)
    (arguments
     '(#:tests? #f                                ;no tests
       #:phases (modify-phases %standard-phases
                  (replace 'configure
                    (lambda* (#:key outputs #:allow-other-keys)
                      (let ((out (assoc-ref outputs "out")))
                        (substitute* "Makefile"
                          (("INSTDIR =.*")
                           (string-append "INSTDIR = " out "\n"))
                          (("OWNER = .*")
                           "OWNER = `id -un`\n")
                          (("GROUP = .*")
                           "GROUP = `id -g`\n"))
                        #t)))
                  (replace 'build
                    (lambda _
                      (invoke "make" "-j"
                              (number->string (parallel-job-count))
                              "all" "CC=gcc"))))))
     (list #:tests? #f ;no tests
           #:phases
           #~(modify-phases %standard-phases
               (replace 'configure
                 (lambda* (#:key outputs #:allow-other-keys)
                   (let ((out (assoc-ref outputs "out")))
                     (substitute* "Makefile"
                       (("INSTDIR =.*")
                        (string-append "INSTDIR = " out "\n"))
                       (("OWNER = .*")
                        "OWNER = `id -un`\n")
                       (("GROUP = .*")
                        "GROUP = `id -g`\n")) #t)))
               (replace 'build
                 (lambda _
                   (invoke "make" "-j"
                           (number->string (parallel-job-count))
                           "all" "CC=gcc"))))))
    (inputs (list perl))
    (synopsis "Convert TrueType fonts to Postscript Type 1")
    (description