~ruther/guix-local

d8d9e51a1f65c47502b73f557e28941ceeae11b2 — David Elsing 1 year, 3 months ago c3e59b2
gnu: freesasa: Fix build with newer gemmi.

* gnu/packages/chemistry.scm (freesasa)[arguments]: Add 'fix-new-gemmi phase.

Change-Id: I78997047eba8245a2d275af5ab18d0d0fe48630f
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 6 insertions(+), 0 deletions(-)

M gnu/packages/chemistry.scm
M gnu/packages/chemistry.scm => gnu/packages/chemistry.scm +6 -0
@@ 1136,6 1136,12 @@ It can be used for working with
                 (string-append "AM_PROG_LIBTOOL\n" inst)))
              (substitute* "tests/Makefile.am"
                (("libfreesasa\\.a") "libfreesasa.la"))))
          (add-after 'unpack 'fix-new-gemmi
            (lambda _
              (substitute* "src/cif.cc"
                (("models\\[i\\]\\.name")
                 "std::to_string(models[i].num)")
                (("convert_pair_to_loop") "ensure_loop"))))
          (add-before 'build 'build-lexer-and-parser
            (lambda _
              (with-directory-excursion "src"