~ruther/guix-local

9777282c8d35f82b429bf1931ff69e51f17778cd — Andreas Enge 1 year, 3 months ago b6f4446
gnu: supertux: Fix build.

This is a follow-up to commit f6e59b049b99bb8cd0f31e8771dd62cbe41bca84

* gnu/packages/games.scm (supertux)[arguments]<#:phases>
{patch-squirrel-path}: Rename to...
{adapt-squirrel}: ...this and add a substitution to adapt to the changed API
between squirrel-3.1 and squirrel-3.2.

Fixes: guix/guix#1718
Change-Id: I238c88ed47a565011c34e05f26592e025a396514
1 files changed, 5 insertions(+), 2 deletions(-)

M gnu/packages/games.scm
M gnu/packages/games.scm => gnu/packages/games.scm +5 -2
@@ 6929,7 6929,7 @@ with the \"Stamp\" tool within Tux Paint.")
                          "-DUSE_SYSTEM_PHYSFS=ON")
      #:phases
      (modify-phases %standard-phases
        (add-after 'unpack 'patch-squirrel-path
        (add-after 'unpack 'adapt-squirrel
          (lambda* (#:key inputs #:allow-other-keys)
            (let ((squirrel (assoc-ref inputs "squirrel")))
              (substitute* "CMakeLists.txt"


@@ 6938,7 6938,10 @@ with the \"Stamp\" tool within Tux Paint.")
                (("add_dependencies\\(supertux2_lib squirrel\\)") "")
                (("\\$\\{SQUIRREL_PREFIX\\}/include")
                 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
            #t)))))
            ;; Adapt to changed API between squirrel-3.1 and 3.2.
            (substitute* "src/scripting/wrapper.cpp"
              (("sq_getinstanceup\\(vm, 1, &data, nullptr" all)
               (string-append all ", 0"))))))))
   (build-system cmake-build-system)
   (inputs (list boost
                 curl