summaryrefslogtreecommitdiff
path: root/gnu/packages/plotutils.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-04-13 13:35:09 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-04-13 13:54:59 +0100
commit12095c0cc7d8d15d8d30e2a98bebd5d51afedd70 (patch)
tree90d7789a2656d2030b58fe48c96d5ca0642862af /gnu/packages/plotutils.scm
parente776d09962fe28ea78a2e55f7cce98552695454b (diff)
gnu: ploticus: Sort alphabetically.
* gnu/packages/plotutils.scm (ploticus): Sort alphabetically. Change-Id: I94a658af85c929d9b42d8b1b22166aba75c609c3
Diffstat (limited to 'gnu/packages/plotutils.scm')
-rw-r--r--gnu/packages/plotutils.scm122
1 files changed, 61 insertions, 61 deletions
diff --git a/gnu/packages/plotutils.scm b/gnu/packages/plotutils.scm
index ef88d07fe86..d950539fc5d 100644
--- a/gnu/packages/plotutils.scm
+++ b/gnu/packages/plotutils.scm
@@ -296,6 +296,67 @@ went to university in the 1990s, this is the library for you.")
296 (inputs (list guile-2.2)) 296 (inputs (list guile-2.2))
297 (propagated-inputs (list guile2.2-cairo)))) 297 (propagated-inputs (list guile2.2-cairo))))
298 298
299(define-public ploticus
300 (package
301 (name "ploticus")
302 (version "2.42")
303 (source (origin
304 (method url-fetch)
305 (uri (string-append "mirror://sourceforge/ploticus/ploticus/"
306 version "/ploticus242_src.tar.gz"))
307 (sha256
308 (base32
309 "1c70cvfvgjh83hj1x21130wb9qfr2rc0x47cxy9kl805yjwy8a9z"))
310 (modules '((guix build utils)))
311 (snippet
312 ;; Install binaries in the right place.
313 '(begin
314 (substitute* "src/Makefile"
315 (("INSTALLBIN =.*$")
316 (string-append "INSTALLBIN = $(out)/bin")))
317 #t))))
318 (build-system gnu-build-system)
319 (arguments
320 '(#:tests? #f
321 #:phases
322 (modify-phases %standard-phases
323 (replace 'configure (lambda _ (chdir "src")))
324 (add-before 'install 'make-target-directories
325 (lambda* (#:key outputs #:allow-other-keys)
326 (let ((out (assoc-ref outputs "out")))
327 (mkdir-p (string-append out "/bin"))
328 #t)))
329 (add-after 'install 'install-prefabs
330 (lambda* (#:key outputs #:allow-other-keys)
331 (let* ((out (assoc-ref outputs "out"))
332 (dir (string-append out
333 "/share/ploticus/prefabs"))
334 (bin (string-append out "/bin")))
335 (mkdir-p dir)
336
337 ;; Install "prefabs".
338 (for-each (lambda (file)
339 (let ((target
340 (string-append dir "/"
341 (basename file))))
342 (copy-file file target)))
343 (find-files "../prefabs" "."))
344
345 ;; Allow them to be found.
346 (wrap-program (string-append bin "/pl")
347 `("PLOTICUS_PREFABS" ":" = (,dir)))))))))
348 (inputs
349 (list libpng libx11 zlib))
350 (home-page "https://ploticus.sourceforge.net/")
351 (synopsis "Command-line tool for producing plots and charts")
352 (description
353 "Ploticus is a non-interactive software package for producing plots,
354charts, and graphics from data. Ploticus is good for automated or
355just-in-time graph generation, handles date and time data nicely, and has
356basic statistical capabilities. It allows significant user control over
357colors, styles, options and details.")
358 (license license:gpl2+)))
359
299(define-public plotutils 360(define-public plotutils
300 (package 361 (package
301 (name "plotutils") 362 (name "plotutils")
@@ -363,67 +424,6 @@ for 2D vector graphics animations. The package also contains command-line
363programs for plotting scientific data.") 424programs for plotting scientific data.")
364 (license license:gpl2+))) 425 (license license:gpl2+)))
365 426
366(define-public ploticus
367 (package
368 (name "ploticus")
369 (version "2.42")
370 (source (origin
371 (method url-fetch)
372 (uri (string-append "mirror://sourceforge/ploticus/ploticus/"
373 version "/ploticus242_src.tar.gz"))
374 (sha256
375 (base32
376 "1c70cvfvgjh83hj1x21130wb9qfr2rc0x47cxy9kl805yjwy8a9z"))
377 (modules '((guix build utils)))
378 (snippet
379 ;; Install binaries in the right place.
380 '(begin
381 (substitute* "src/Makefile"
382 (("INSTALLBIN =.*$")
383 (string-append "INSTALLBIN = $(out)/bin")))
384 #t))))
385 (build-system gnu-build-system)
386 (arguments
387 '(#:tests? #f
388 #:phases
389 (modify-phases %standard-phases
390 (replace 'configure (lambda _ (chdir "src")))
391 (add-before 'install 'make-target-directories
392 (lambda* (#:key outputs #:allow-other-keys)
393 (let ((out (assoc-ref outputs "out")))
394 (mkdir-p (string-append out "/bin"))
395 #t)))
396 (add-after 'install 'install-prefabs
397 (lambda* (#:key outputs #:allow-other-keys)
398 (let* ((out (assoc-ref outputs "out"))
399 (dir (string-append out
400 "/share/ploticus/prefabs"))
401 (bin (string-append out "/bin")))
402 (mkdir-p dir)
403
404 ;; Install "prefabs".
405 (for-each (lambda (file)
406 (let ((target
407 (string-append dir "/"
408 (basename file))))
409 (copy-file file target)))
410 (find-files "../prefabs" "."))
411
412 ;; Allow them to be found.
413 (wrap-program (string-append bin "/pl")
414 `("PLOTICUS_PREFABS" ":" = (,dir)))))))))
415 (inputs
416 (list libpng libx11 zlib))
417 (home-page "https://ploticus.sourceforge.net/")
418 (synopsis "Command-line tool for producing plots and charts")
419 (description
420 "Ploticus is a non-interactive software package for producing plots,
421charts, and graphics from data. Ploticus is good for automated or
422just-in-time graph generation, handles date and time data nicely, and has
423basic statistical capabilities. It allows significant user control over
424colors, styles, options and details.")
425 (license license:gpl2+)))
426
427(define-public ruby-unicode-plot 427(define-public ruby-unicode-plot
428 (package 428 (package
429 (name "ruby-unicode-plot") 429 (name "ruby-unicode-plot")