gnu: utf8-h: Install header under include/utf8 prefix.
This is to standardize with the usage of the library in the package's only current user, OpenBoardView. It also matches the installation layout of the Arch package, which is made by its author. * gnu/packages/c.scm (utf8-h) [arguments]: Use gexps. Adjust installation prefix to 'include/utf8' in install phase. * gnu/packages/electronics.scm (openboardview) [arguments]: Delete fix-utf8-include-directive phase.master
parent
eeffc4ed04
commit
44422c1fba
|
@ -1365,20 +1365,21 @@ will take care of dispatching tasks to available cores.")
|
||||||
"0x9f7ivww8c7cigf4ck0hfx2bm79qgx6q4ccwzqbzkrmcrl9shfb"))))
|
"0x9f7ivww8c7cigf4ck0hfx2bm79qgx6q4ccwzqbzkrmcrl9shfb"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
(delete 'build)
|
#~(modify-phases %standard-phases
|
||||||
(delete 'configure)
|
(delete 'build)
|
||||||
(replace 'check
|
(delete 'configure)
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(replace 'check
|
||||||
(when tests?
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(with-directory-excursion "test"
|
(when tests?
|
||||||
(invoke "cmake" ".")
|
(with-directory-excursion "test"
|
||||||
(invoke "make")))))
|
(invoke "cmake" ".")
|
||||||
(replace 'install
|
(invoke "make")))))
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(replace 'install
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(install-file "utf8.h" (string-append out "/include"))))))))
|
(install-file "utf8.h"
|
||||||
|
(string-append #$output "/include/utf8")))))))
|
||||||
(home-page "https://github.com/sheredom/utf8.h")
|
(home-page "https://github.com/sheredom/utf8.h")
|
||||||
(synopsis "Single header UTF-8 string functions for C and C++")
|
(synopsis "Single header UTF-8 string functions for C and C++")
|
||||||
(description "A simple one header solution to supporting UTF-8 strings in
|
(description "A simple one header solution to supporting UTF-8 strings in
|
||||||
|
|
|
@ -298,14 +298,6 @@ supported devices, as well as input/output file format support.")
|
||||||
"add_subdirectory("
|
"add_subdirectory("
|
||||||
(search-input-directory inputs "share/glad") ;source_dir
|
(search-input-directory inputs "share/glad") ;source_dir
|
||||||
" src/glad)\n"))))) ;binary dir
|
" src/glad)\n"))))) ;binary dir
|
||||||
(add-before 'configure 'fix-utf8-include-directive
|
|
||||||
;; Our utf8-h package makes the header available as "utf8.h"
|
|
||||||
;; directly rather than "utf8/utf8.h".
|
|
||||||
(lambda _
|
|
||||||
(substitute* '("src/openboardview/FileFormats/BRDFile.cpp"
|
|
||||||
"src/openboardview/FileFormats/BRDFileBase.cpp"
|
|
||||||
"src/openboardview/BoardView.cpp")
|
|
||||||
(("utf8/utf8.h") "utf8.h"))))
|
|
||||||
(add-before 'configure 'dynamically-load-gtk-via-absolute-path
|
(add-before 'configure 'dynamically-load-gtk-via-absolute-path
|
||||||
;; The GTK library is not linked thus not present in the RUNPATH of
|
;; The GTK library is not linked thus not present in the RUNPATH of
|
||||||
;; the produced binary; the absolute path of the libraries must to
|
;; the produced binary; the absolute path of the libraries must to
|
||||||
|
|
Reference in New Issue