mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: hdf5: Remove references to gcc/gfortran/binutils.
* gnu/packages/maths.scm (hdf5)[arguments]<#:phases>{remove-referencess, remove-gcc-references, remove-gfortran-references}: New phases. Change-Id: I367b95a85aaf36928f94ef329e839dfb4d24b285 Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
parent
badabf0538
commit
a670acfe5c
1 changed files with 37 additions and 1 deletions
|
@ -2008,7 +2008,43 @@ extremely large and complex data collections.")
|
|||
(lambda _
|
||||
(invoke "perl" "bin/make_err" "src/H5err.txt")
|
||||
(invoke "perl" "bin/make_vers" "src/H5vers.txt")
|
||||
(invoke "perl" "bin/make_overflow" "src/H5overflow.txt"))))))
|
||||
(invoke "perl" "bin/make_overflow" "src/H5overflow.txt")))
|
||||
;; Remove references to GCC/GFortran/binutils in order to decrease
|
||||
;; package size.
|
||||
(add-before 'generate-headers 'remove-referencess
|
||||
(lambda _
|
||||
(substitute* '("src/libhdf5.settings.cmake.in"
|
||||
"src/H5build_settings.cmake.c.in")
|
||||
(("@CMAKE_AR@") "ar")
|
||||
(("@CMAKE_RANLIB@") "ranlib")
|
||||
(("@CMAKE_C_COMPILER@") "gcc")
|
||||
(("@CMAKE_CXX_COMPILER") "g++")
|
||||
(("@CMAKE_Fortran_COMPILER@") "gfortran"))
|
||||
(substitute* '("src/libhdf5.settings.autotools.in"
|
||||
"src/H5build_settings.autotools.c.in")
|
||||
(("@AR@") "ar")
|
||||
(("@RANLIB@") "ranlib")
|
||||
(("@CXX_VERSION@") "g++")
|
||||
(("@@CC_VERSION@") "gcc")
|
||||
(("@FC_VERSION@") "gfortran"))))
|
||||
(add-after 'install 'remove-gcc-references
|
||||
(lambda _
|
||||
(substitute* (map (lambda (f)
|
||||
(string-append #$output "/" f))
|
||||
'("bin/h5hlcc"
|
||||
"bin/h5hlc++"
|
||||
"bin/h5cc"
|
||||
"bin/h5c++"))
|
||||
(("/gnu/store/[a-z0-9]*-gcc-[0-9.]*/bin/")
|
||||
""))))
|
||||
(add-after 'install 'remove-gfortran-references
|
||||
(lambda _
|
||||
(substitute* (map (lambda (f)
|
||||
(string-append #$output "/" f))
|
||||
'("bin/h5hlfc"
|
||||
"bin/h5fc"))
|
||||
(("/gnu/store/[a-z0-9]*-gfortran-[0-9.]*/bin/")
|
||||
"")))))))
|
||||
(inputs (list libaec zlib))
|
||||
(native-inputs
|
||||
(list bison
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue