gnu: opencv: Fix installation.
This is a follow-up to commit 5894b1210d
.
* gnu/packages/image-processing.scm (opencv)[arguments]: Add build phase
'do-not-install-3rdparty-file.
master
parent
2bbc3864c3
commit
21219307fe
|
@ -498,15 +498,19 @@ integrates with various databases on GUI toolkits such as Qt and Tk.")
|
||||||
"../opencv-extra")
|
"../opencv-extra")
|
||||||
(copy-recursively (assoc-ref inputs "opencv-contrib")
|
(copy-recursively (assoc-ref inputs "opencv-contrib")
|
||||||
"../opencv-contrib")))
|
"../opencv-contrib")))
|
||||||
(add-before 'check 'start-xserver
|
(add-after 'build 'do-not-install-3rdparty-file
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda _
|
||||||
(let ((xorg-server (assoc-ref inputs "xorg-server"))
|
(substitute* "cmake_install.cmake"
|
||||||
(disp ":1"))
|
(("file\\(INSTALL .*source/3rdparty/include/opencl/LICENSE.txt.*") "\n"))))
|
||||||
(setenv "HOME" (getcwd))
|
(add-before 'check 'start-xserver
|
||||||
(setenv "DISPLAY" disp)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
;; There must be a running X server and make check doesn't start one.
|
(let ((xorg-server (assoc-ref inputs "xorg-server"))
|
||||||
;; Therefore we must do it.
|
(disp ":1"))
|
||||||
(zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp)))))))))
|
(setenv "HOME" (getcwd))
|
||||||
|
(setenv "DISPLAY" disp)
|
||||||
|
;; There must be a running X server and make check doesn't start one.
|
||||||
|
;; Therefore we must do it.
|
||||||
|
(zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp)))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)
|
`(("pkg-config" ,pkg-config)
|
||||||
("xorg-server" ,xorg-server-for-tests) ; For running the tests
|
("xorg-server" ,xorg-server-for-tests) ; For running the tests
|
||||||
|
|
Reference in New Issue