[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/17: gnu: pd: Don't hard-code Tk version.
From: |
guix-commits |
Subject: |
14/17: gnu: pd: Don't hard-code Tk version. |
Date: |
Tue, 9 Jun 2020 22:38:17 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 98f08a99c6a0fefeca043cfac1fd89be8deebe5f
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Wed Jun 10 03:38:28 2020 +0200
gnu: pd: Don't hard-code Tk version.
* gnu/packages/music.scm (pd)[arguments]: Construct the wish file name from
the tk package version.
---
gnu/packages/music.scm | 30 ++++++++++++++++--------------
1 file changed, 16 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index f222075..beecdcc 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -1892,20 +1892,22 @@ export.")
"0dz6r6jy0zfs1xy1xspnrxxks8kddi9c7pxz4vpg2ygwv83ghpg5"))))
(build-system gnu-build-system)
(arguments
- `(#:tests? #f ; no "check" target
- #:configure-flags
- (list
- "--enable-jack"
- (string-append "--with-wish=" (string-append
- (assoc-ref %build-inputs "tk")
- "/bin/wish8.6")))
- #:phases
- (modify-phases %standard-phases
- (add-before 'configure 'fix-with-path
- (lambda _
- (substitute* "tcl/pd-gui.tcl"
- (("exec wish ") (string-append "exec " (which "wish8.6") " ")))
- #t)))))
+ (let ((wish (string-append "wish" (version-major+minor
+ (package-version tk)))))
+ `(#:tests? #f ; no "check" target
+ #:configure-flags
+ (list
+ "--enable-jack"
+ (string-append "--with-wish=" (string-append
+ (assoc-ref %build-inputs "tk")
+ "/bin/" ,wish)))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'fix-with-path
+ (lambda _
+ (substitute* "tcl/pd-gui.tcl"
+ (("exec wish ") (string-append "exec " (which ,wish) " ")))
+ #t))))))
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)
- 02/17: gnu: simple-scan: Update to 3.36.3., (continued)
- 02/17: gnu: simple-scan: Update to 3.36.3., guix-commits, 2020/06/09
- 04/17: gnu: mm-common: Update to 1.0.1., guix-commits, 2020/06/09
- 01/17: gnu: djview: Update to 4.11., guix-commits, 2020/06/09
- 03/17: gnu: mm-common: Don't use NAME in source URI., guix-commits, 2020/06/09
- 05/17: gnu: smb4k: Update to 3.0.6., guix-commits, 2020/06/09
- 06/17: gnu: gtkspell3: Update to 3.0.10., guix-commits, 2020/06/09
- 07/17: gnu: libnftnl: Update to 1.1.7., guix-commits, 2020/06/09
- 08/17: gnu: nftables: Update to 0.9.5., guix-commits, 2020/06/09
- 11/17: gnu: mpop: Update to 1.4.10., guix-commits, 2020/06/09
- 13/17: gnu: libnumbertext: Update to 1.0.6., guix-commits, 2020/06/09
- 14/17: gnu: pd: Don't hard-code Tk version.,
guix-commits <=
- 09/17: gnu: iptables: Update to 1.8.5., guix-commits, 2020/06/09
- 10/17: gnu: nvme-cli: Update to 1.11.2., guix-commits, 2020/06/09
- 12/17: gnu: msmtp: Update to 1.8.11., guix-commits, 2020/06/09
- 17/17: gnu: dlib: Update to 19.20., guix-commits, 2020/06/09
- 15/17: gnu: pd: Use HTTPS home page., guix-commits, 2020/06/09
- 16/17: gnu: pd: Update to 0.51-0., guix-commits, 2020/06/09