diff options
Diffstat (limited to 'gnu/packages/plotutils.scm')
| -rw-r--r-- | gnu/packages/plotutils.scm | 60 |
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/") |
