summaryrefslogtreecommitdiff
path: root/gnu/packages/fontutils.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2026-01-22 16:49:56 +0100
committerRutherther <rutherther@ditigal.xyz>2026-01-25 21:30:58 +0100
commitd34aff1f7e41d264709fa907cc0ff6f1bfb3d945 (patch)
tree264e4af5d5ce5925ba50d291dfb81a00c0a42be5 /gnu/packages/fontutils.scm
parente422aad214a6f90162c52569ac318df852149525 (diff)
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>
Diffstat (limited to 'gnu/packages/fontutils.scm')
-rw-r--r--gnu/packages/fontutils.scm60
1 files changed, 30 insertions, 30 deletions
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index d6743c26fca..3f24ffc2cf3 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -1316,38 +1316,38 @@ TTF (TrueType/OpenType Font) files.")
1316 "1l718n4k4widx49xz7qrj4mybzb8q67kp2jw7f47604ips4654mf")) 1316 "1l718n4k4widx49xz7qrj4mybzb8q67kp2jw7f47604ips4654mf"))
1317 (modules '((guix build utils))) 1317 (modules '((guix build utils)))
1318 (snippet 1318 (snippet
1319 '(begin 1319 #~(begin
1320 ;; Include <unistd.h> for the 'getopt' declaration. 1320 ;; Include <unistd.h> for the 'getopt' declaration.
1321 (substitute* "t1asm.c" 1321 (substitute* "t1asm.c"
1322 (("#include <stdio.h>" all) 1322 (("#include <stdio.h>" all)
1323 (string-append all "\n" 1323 (string-append all "\n"
1324 "#include <unistd.h>\n"))) 1324 "#include <unistd.h>\n")))
1325 1325
1326 ;; Remove trailing backslashes in the sed expression of the 1326 ;; Remove trailing backslashes in the sed expression of the
1327 ;; 'install' rule since sed would otherwise fail. 1327 ;; 'install' rule since sed would otherwise fail.
1328 (substitute* "Makefile" 1328 (substitute* "Makefile"
1329 (("\\|;\\\\[[:space:]]*$") "|; ")) 1329 (("\\|;\\\\[[:space:]]*$") "|; "))
1330 #t)))) 1330 #t))))
1331 (build-system gnu-build-system) 1331 (build-system gnu-build-system)
1332 (arguments 1332 (arguments
1333 '(#:tests? #f ;no tests 1333 (list #:tests? #f ;no tests
1334 #:phases (modify-phases %standard-phases 1334 #:phases
1335 (replace 'configure 1335 #~(modify-phases %standard-phases
1336 (lambda* (#:key outputs #:allow-other-keys) 1336 (replace 'configure
1337 (let ((out (assoc-ref outputs "out"))) 1337 (lambda* (#:key outputs #:allow-other-keys)
1338 (substitute* "Makefile" 1338 (let ((out (assoc-ref outputs "out")))
1339 (("INSTDIR =.*") 1339 (substitute* "Makefile"
1340 (string-append "INSTDIR = " out "\n")) 1340 (("INSTDIR =.*")
1341 (("OWNER = .*") 1341 (string-append "INSTDIR = " out "\n"))
1342 "OWNER = `id -un`\n") 1342 (("OWNER = .*")
1343 (("GROUP = .*") 1343 "OWNER = `id -un`\n")
1344 "GROUP = `id -g`\n")) 1344 (("GROUP = .*")
1345 #t))) 1345 "GROUP = `id -g`\n")) #t)))
1346 (replace 'build 1346 (replace 'build
1347 (lambda _ 1347 (lambda _
1348 (invoke "make" "-j" 1348 (invoke "make" "-j"
1349 (number->string (parallel-job-count)) 1349 (number->string (parallel-job-count))
1350 "all" "CC=gcc")))))) 1350 "all" "CC=gcc"))))))
1351 (inputs (list perl)) 1351 (inputs (list perl))
1352 (synopsis "Convert TrueType fonts to Postscript Type 1") 1352 (synopsis "Convert TrueType fonts to Postscript Type 1")
1353 (description 1353 (description