summaryrefslogtreecommitdiff
path: root/gnu/packages/plotutils.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-04-13 13:43:44 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-04-13 13:54:59 +0100
commit238e4ec73e4143f3a5a85b56ca00d395cdf60197 (patch)
tree225b46e1ffbe1d5875fe4478e8d1ba998a6864e2 /gnu/packages/plotutils.scm
parentd1146d8ecb9bd7e03d273dddb5562c0338dafdc7 (diff)
gnu: ploticus: Refresh package style.
* gnu/packages/plotutils.scm (ploticus): Apply G-expressions to refresh package style. Change-Id: Iabf465a9bd4e02c1087b117533dbbf0b4c1a3f14
Diffstat (limited to 'gnu/packages/plotutils.scm')
-rw-r--r--gnu/packages/plotutils.scm60
1 files changed, 27 insertions, 33 deletions
diff --git a/gnu/packages/plotutils.scm b/gnu/packages/plotutils.scm
index 84fb5fa7acd..d0cc1bc842f 100644
--- a/gnu/packages/plotutils.scm
+++ b/gnu/packages/plotutils.scm
@@ -310,41 +310,35 @@ went to university in the 1990s, this is the library for you.")
310 (modules '((guix build utils))) 310 (modules '((guix build utils)))
311 (snippet 311 (snippet
312 ;; Install binaries in the right place. 312 ;; Install binaries in the right place.
313 '(begin 313 #~(begin
314 (substitute* "src/Makefile" 314 (substitute* "src/Makefile"
315 (("INSTALLBIN =.*$") 315 (("INSTALLBIN =.*$")
316 (string-append "INSTALLBIN = $(out)/bin"))) 316 (string-append "INSTALLBIN = $(out)/bin")))))))
317 #t))))
318 (build-system gnu-build-system) 317 (build-system gnu-build-system)
319 (arguments 318 (arguments
320 '(#:tests? #f 319 (list
321 #:phases 320 #:tests? #f ; no tests
322 (modify-phases %standard-phases 321 #:phases
323 (replace 'configure (lambda _ (chdir "src"))) 322 #~(modify-phases %standard-phases
324 (add-before 'install 'make-target-directories 323 (replace 'configure (lambda _ (chdir "src")))
325 (lambda* (#:key outputs #:allow-other-keys) 324 (add-before 'install 'make-target-directories
326 (let ((out (assoc-ref outputs "out"))) 325 (lambda _
327 (mkdir-p (string-append out "/bin")) 326 (mkdir-p (string-append #$output "/bin"))))
328 #t))) 327 (add-after 'install 'install-prefabs
329 (add-after 'install 'install-prefabs 328 (lambda _
330 (lambda* (#:key outputs #:allow-other-keys) 329 (let* ((out #$output)
331 (let* ((out (assoc-ref outputs "out")) 330 (dir (string-append out "/share/ploticus/prefabs"))
332 (dir (string-append out 331 (bin (string-append out "/bin")))
333 "/share/ploticus/prefabs")) 332 (mkdir-p dir)
334 (bin (string-append out "/bin"))) 333 ;; Install "prefabs".
335 (mkdir-p dir) 334 (for-each
336 335 (lambda (file)
337 ;; Install "prefabs". 336 (let ((target (string-append dir "/" (basename file))))
338 (for-each (lambda (file) 337 (copy-file file target)))
339 (let ((target 338 (find-files "../prefabs" "."))
340 (string-append dir "/" 339 ;; Allow them to be found.
341 (basename file)))) 340 (wrap-program (string-append bin "/pl")
342 (copy-file file target))) 341 `("PLOTICUS_PREFABS" ":" = (,dir)))))))))
343 (find-files "../prefabs" "."))
344
345 ;; Allow them to be found.
346 (wrap-program (string-append bin "/pl")
347 `("PLOTICUS_PREFABS" ":" = (,dir)))))))))
348 (inputs 342 (inputs
349 (list libpng libx11 zlib)) 343 (list libpng libx11 zlib))
350 (home-page "https://ploticus.sourceforge.net/") 344 (home-page "https://ploticus.sourceforge.net/")