gnu: rapicorn: Fix tests.
* gnu/packages/graphics.scm (rapicorn)[arguments]: Add build phases "fix-tests" and "pre-check". Generalize "replace-/bin/ls" phase to "replace-fhs-paths". [propagated-inputs]: Add python2-enum34. [native-inputs]: Add xorg-server.
This commit is contained in:
parent
44877dcc66
commit
002528bca5
|
@ -295,15 +295,30 @@ visual effects work for film.")
|
||||||
"1y51yjrpsihas1jy905m9p3r8iiyhq6bwi2690c564i5dnix1f9d"))))
|
"1y51yjrpsihas1jy905m9p3r8iiyhq6bwi2690c564i5dnix1f9d"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(;; FIXME: At least "testrcore1" fails.
|
`(#:phases
|
||||||
#:tests? #f
|
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'replace-/bin/ls
|
(add-after 'unpack 'fix-tests
|
||||||
|
(lambda _
|
||||||
|
;; Our grep does not support perl regular expressions.
|
||||||
|
(substitute* "taptool.sh"
|
||||||
|
(("grep -P") "grep -E"))
|
||||||
|
;; Disable path tests because we cannot access /bin or /sbin.
|
||||||
|
(substitute* "rcore/tests/multitest.cc"
|
||||||
|
(("TCMP \\(Path::equals \\(\"/bin\"") "//"))
|
||||||
|
#t))
|
||||||
|
(add-before 'check 'pre-check
|
||||||
|
(lambda _
|
||||||
|
;; The test suite requires a running X server (with DISPLAY
|
||||||
|
;; number 99 or higher).
|
||||||
|
(system "Xvfb :99 &")
|
||||||
|
(setenv "DISPLAY" ":99")
|
||||||
|
#t))
|
||||||
|
(add-after 'unpack 'replace-fhs-paths
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* (cons "Makefile.decl"
|
(substitute* (cons "Makefile.decl"
|
||||||
(find-files "." "^Makefile\\.in$"))
|
(find-files "." "^Makefile\\.in$"))
|
||||||
(("/bin/ls") (which "ls")))
|
(("/bin/ls") (which "ls"))
|
||||||
|
(("/usr/bin/env") (which "env")))
|
||||||
#t)))))
|
#t)))))
|
||||||
;; These libraries are listed in the "Required" section of the pkg-config
|
;; These libraries are listed in the "Required" section of the pkg-config
|
||||||
;; file.
|
;; file.
|
||||||
|
@ -311,7 +326,8 @@ visual effects work for film.")
|
||||||
`(("librsvg" ,librsvg)
|
`(("librsvg" ,librsvg)
|
||||||
("cairo" ,cairo)
|
("cairo" ,cairo)
|
||||||
("pango" ,pango)
|
("pango" ,pango)
|
||||||
("libxml2" ,libxml2)))
|
("libxml2" ,libxml2)
|
||||||
|
("python2-enum34" ,python2-enum34)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("gdk-pixbuf" ,gdk-pixbuf)
|
`(("gdk-pixbuf" ,gdk-pixbuf)
|
||||||
("libpng" ,libpng-1.2)
|
("libpng" ,libpng-1.2)
|
||||||
|
@ -326,7 +342,8 @@ visual effects work for film.")
|
||||||
("doxygen" ,doxygen)
|
("doxygen" ,doxygen)
|
||||||
("graphviz" ,graphviz)
|
("graphviz" ,graphviz)
|
||||||
("intltool" ,intltool)
|
("intltool" ,intltool)
|
||||||
("pkg-config" ,pkg-config)))
|
("pkg-config" ,pkg-config)
|
||||||
|
("xvfb" ,xorg-server)))
|
||||||
(home-page "http://rapicorn.org")
|
(home-page "http://rapicorn.org")
|
||||||
(synopsis "Toolkit for rapid development of user interfaces")
|
(synopsis "Toolkit for rapid development of user interfaces")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in New Issue