[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#27992] [PATCH] gnu: Add ogre.
From: |
Alex Kost |
Subject: |
[bug#27992] [PATCH] gnu: Add ogre. |
Date: |
Sat, 12 Aug 2017 23:44:58 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
address@hidden (2017-08-06 22:48 +0300) wrote:
[...]
> +(define-public ogre
> + (package
> + (name "ogre")
> + (version "1.10.7")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (string-append "https://github.com/OGRECave/" name
> + "/archive/v" version ".tar.gz"))
Please add 'file-name' to avoid "/gnu/store/…-v1.10.7.tar.gz" name:
(file-name (string-append name "-" version ".tar.gz"))
This is reported by "guix lint ogre".
> + (sha256
> + (base32
> + "1ab354bmwwryxr4zgxchfkm6h4z38mjgif8yn89x640rsrgw5ipj"))))
> + (build-system cmake-build-system)
> + (arguments
> + '(#:phases
> + (modify-phases %standard-phases
> + (add-before 'configure 'pre-configure
> + (lambda* (#:key inputs #:allow-other-keys)
'inputs' are not used here, so just: (lambda _ ...)
> + ;; It expects googletest source to be downloaded and
> + ;; be in a specific place.
> + (substitute* "Tests/CMakeLists.txt"
> + (("URL(.*)$" _ suffix) (string-append "URL " suffix
> +"\t\tURL_HASH MD5=16877098823401d1bf2ed7891d7dce36\n")))
This string shouldn't start from the beginning of the line. I see the
problem is that a properly indented line would be too long. I would
write it like this:
(substitute* "Tests/CMakeLists.txt"
(("URL(.*)$" _ suffix)
(string-append "URL " suffix
"\t\tURL_HASH "
"MD5=16877098823401d1bf2ed7891d7dce36\n")))
> + #t))
> + (add-before 'build 'pre-build
> + (lambda* (#:key inputs #:allow-other-keys)
> + (copy-file (assoc-ref inputs "googletest-source")
> + (string-append (getcwd)
> + "/Tests/googletest-prefix/src/release-1.8.0.tar.gz"))
^^^^
same here: (string-append ...) and the next line are not indented
properly. I would write:
(copy-file (assoc-ref inputs "googletest-source")
(string-append (getcwd)
"/Tests/googletest-prefix/src"
"/release-1.8.0.tar.gz"))
The rest looks good to me, thanks!
--
Alex