diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-28 22:58:55 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-31 14:26:17 +0000 |
| commit | c2f8f669170a0e3e22cef96e53788487d0579b69 (patch) | |
| tree | 856bab9fcf92c78c62f1b8804dfc6197c10ce587 | |
| parent | d9e834bd3e7dee2f4db07086706cba626cd364dc (diff) | |
gnu: impressive: Switch to pyproject.
* gnu/packages/pdf.scm (impressive):
[build-system]: Switch to pyproject-build-system.
[arguments]<#:tests?, phases>: Improve style.
[native-inputs]: Add python-setuptools.
Change-Id: I0a9d0515c5758b871a27968edd63ac26e5b4d9dc
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/pdf.scm | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index a5446a6daee..c3a97fee525 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm | |||
| @@ -1299,26 +1299,28 @@ vector formats.") | |||
| 1299 | (base32 | 1299 | (base32 |
| 1300 | ;; "0d1d2jxfl9vmy4swcdz660xd4wx91w1i3n07k522pccapwxig294")))) | 1300 | ;; "0d1d2jxfl9vmy4swcdz660xd4wx91w1i3n07k522pccapwxig294")))) |
| 1301 | "0g15q67f992prkjndrk75hhd601iypfmkafhdx7hijs2byr26c83")))) | 1301 | "0g15q67f992prkjndrk75hhd601iypfmkafhdx7hijs2byr26c83")))) |
| 1302 | (build-system python-build-system) | 1302 | (build-system pyproject-build-system) |
| 1303 | (arguments | 1303 | (arguments |
| 1304 | (list | 1304 | (list |
| 1305 | #:phases #~(modify-phases %standard-phases | 1305 | #:tests? #f ;No tests. |
| 1306 | (delete 'build) | 1306 | #:phases |
| 1307 | (delete 'configure) | 1307 | #~(modify-phases %standard-phases |
| 1308 | (delete 'check) | 1308 | (delete 'build) |
| 1309 | (replace 'install | 1309 | (delete 'configure) |
| 1310 | (lambda* (#:key inputs #:allow-other-keys) | 1310 | (replace 'install |
| 1311 | ;; There's no 'setup.py' so install things manually. | 1311 | (lambda* (#:key inputs #:allow-other-keys) |
| 1312 | (let* ((bin (string-append #$output "/bin")) | 1312 | ;; There's no 'setup.py' so install things manually. |
| 1313 | (impressive (string-append bin "/impressive")) | 1313 | (let* ((bin (string-append #$output "/bin")) |
| 1314 | (man1 (string-append #$output "/share/man/man1"))) | 1314 | (impressive (string-append bin "/impressive")) |
| 1315 | (mkdir-p bin) | 1315 | (man1 (string-append #$output "/share/man/man1"))) |
| 1316 | (copy-file "impressive.py" impressive) | 1316 | (mkdir-p bin) |
| 1317 | (chmod impressive #o755) | 1317 | (copy-file "impressive.py" impressive) |
| 1318 | (wrap-program (string-append bin "/impressive") | 1318 | (chmod impressive #o755) |
| 1319 | `("PATH" ":" prefix ;for pdftoppm | 1319 | (wrap-program (string-append bin "/impressive") |
| 1320 | (,(search-input-file inputs "bin/xpdf")))) | 1320 | `("PATH" ":" prefix ;for pdftoppm |
| 1321 | (install-file "impressive.1" man1))))))) | 1321 | (,(search-input-file inputs "bin/xpdf")))) |
| 1322 | (install-file "impressive.1" man1))))))) | ||
| 1323 | (native-inputs (list python-setuptools)) | ||
| 1322 | ;; TODO: Add dependency on pdftk. | 1324 | ;; TODO: Add dependency on pdftk. |
| 1323 | (inputs (list bash-minimal python-pygame python-pillow sdl xpdf)) | 1325 | (inputs (list bash-minimal python-pygame python-pillow sdl xpdf)) |
| 1324 | (home-page "https://impressive.sourceforge.net") | 1326 | (home-page "https://impressive.sourceforge.net") |
