diff options
| author | Jonas Meeuws <jonas.meeuws@gmail.com> | 2026-08-06 12:20:34 +0200 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-08-22 16:49:16 +0200 |
| commit | 8e873ad446d695c50051572a05739092ec75aa87 (patch) | |
| tree | 5089361ef13b9774677e2f493f8ef1983ce97028 /gnu/packages/dlang.scm | |
| parent | ecd699e36b96e5dc0ab621067ac052d490d102e0 (diff) | |
gnu: gtkd: Use G-Expressions.
* gnu/packages/dlang.scm (gtkd)[arguments]: Convert to list of G-Expressions.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages/dlang.scm')
| -rw-r--r-- | gnu/packages/dlang.scm | 71 |
1 files changed, 36 insertions, 35 deletions
diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm index 41790845fac..d6362cc0321 100644 --- a/gnu/packages/dlang.scm +++ b/gnu/packages/dlang.scm | |||
| @@ -944,41 +944,42 @@ from lines) | |||
| 944 | "0vc5ssb3ar02mg2pngmdi1xg4qjaya8332a9mk0sv97x6b4ddy3g")))) | 944 | "0vc5ssb3ar02mg2pngmdi1xg4qjaya8332a9mk0sv97x6b4ddy3g")))) |
| 945 | (build-system gnu-build-system) | 945 | (build-system gnu-build-system) |
| 946 | (arguments | 946 | (arguments |
| 947 | `(#:test-target "test" | 947 | (list |
| 948 | #:make-flags | 948 | #:test-target "test" |
| 949 | `("DC=ldc2" | 949 | #:make-flags |
| 950 | ,(string-append "prefix=" (assoc-ref %outputs "out")) | 950 | #~(list "DC=ldc2" |
| 951 | ,(string-append "libdir=" (assoc-ref %outputs "out") "/lib") | 951 | (string-append "prefix=" (assoc-ref %outputs "out")) |
| 952 | "pkgconfigdir=lib/pkgconfig") | 952 | (string-append "libdir=" (assoc-ref %outputs "out") "/lib") |
| 953 | #:phases | 953 | "pkgconfigdir=lib/pkgconfig") |
| 954 | (modify-phases %standard-phases | 954 | #:phases |
| 955 | (add-after 'unpack 'patch-tests | 955 | #~(modify-phases %standard-phases |
| 956 | (lambda _ | 956 | (add-after 'unpack 'patch-tests |
| 957 | (for-each | 957 | (lambda _ |
| 958 | (lambda (file) | 958 | (for-each |
| 959 | (substitute* file (("debug\\(1\\)") "debug"))) | 959 | (lambda (file) |
| 960 | '("demos/gstreamer/mediaplayer/gst_mediaplayer.d" | 960 | (substitute* file (("debug\\(1\\)") "debug"))) |
| 961 | "demos/gstreamer/mediaplayer/gst_mediaplayer.d" | 961 | '("demos/gstreamer/mediaplayer/gst_mediaplayer.d" |
| 962 | "demos/gtkD/TestWindow/TestImage.d" | 962 | "demos/gstreamer/mediaplayer/gst_mediaplayer.d" |
| 963 | "demos/gtkD/TestWindow/TestStock.d" | 963 | "demos/gtkD/TestWindow/TestImage.d" |
| 964 | "demos/gtkD/TestWindow/TestText.d" | 964 | "demos/gtkD/TestWindow/TestStock.d" |
| 965 | "demos/gtkD/TestWindow/TestThemes.d" | 965 | "demos/gtkD/TestWindow/TestText.d" |
| 966 | "demos/gtkD/TestWindow/TestScales.d" | 966 | "demos/gtkD/TestWindow/TestThemes.d" |
| 967 | "demos/gtkD/TestWindow/TestIdle.d")))) | 967 | "demos/gtkD/TestWindow/TestScales.d" |
| 968 | (delete 'configure) | 968 | "demos/gtkD/TestWindow/TestIdle.d")))) |
| 969 | (add-before 'build 'patch-makefile | 969 | (delete 'configure) |
| 970 | (lambda* (#:key outputs #:allow-other-keys) | 970 | (add-before 'build 'patch-makefile |
| 971 | (substitute* "GNUmakefile" | 971 | (lambda* (#:key outputs #:allow-other-keys) |
| 972 | ;; We do the tests ourselves. | 972 | (substitute* "GNUmakefile" |
| 973 | (("default-goal: libs test") "default-goal: libs") | 973 | ;; We do the tests ourselves. |
| 974 | (("all: libs shared-libs test") "all: libs shared-libs") | 974 | (("default-goal: libs test") "default-goal: libs") |
| 975 | ;; Work around upstream bug. | 975 | (("all: libs shared-libs test") "all: libs shared-libs") |
| 976 | (("\\$\\(prefix\\)\\/\\$\\(libdir\\)") "$(libdir)")))) | 976 | ;; Work around upstream bug. |
| 977 | (add-before 'check 'pre-check | 977 | (("\\$\\(prefix\\)\\/\\$\\(libdir\\)") "$(libdir)")))) |
| 978 | (lambda _ | 978 | (add-before 'check 'pre-check |
| 979 | (system "Xvfb :1 &") | 979 | (lambda _ |
| 980 | (setenv "DISPLAY" ":1") | 980 | (system "Xvfb :1 &") |
| 981 | (setenv "CC" ,(cc-for-target))))))) | 981 | (setenv "DISPLAY" ":1") |
| 982 | (setenv "CC" #$(cc-for-target))))))) | ||
| 982 | (native-inputs | 983 | (native-inputs |
| 983 | (list unzip | 984 | (list unzip |
| 984 | ldc | 985 | ldc |
