mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: Add healpix-cxx.
* gnu/packages/astronomy.scm (healpix-cxx): New variable. Change-Id: I1d70cd44efa86f89e3fc8f4f60d0b259ecd78acf
This commit is contained in:
parent
f547dd668f
commit
213eae66c7
1 changed files with 30 additions and 0 deletions
|
@ -663,6 +663,36 @@ (define-public healpix
|
||||||
dynamic library for the C language implementation of HEALPix.")
|
dynamic library for the C language implementation of HEALPix.")
|
||||||
(license license:gpl2+)))
|
(license license:gpl2+)))
|
||||||
|
|
||||||
|
(define-public healpix-cxx
|
||||||
|
(package
|
||||||
|
(inherit healpix)
|
||||||
|
(name "healpix-cxx")
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'chdir-cxx
|
||||||
|
(lambda _
|
||||||
|
(chdir "src/cxx")))
|
||||||
|
(add-after 'chdir-cxx 'adjust-unit-tests
|
||||||
|
(lambda _
|
||||||
|
(substitute* "configure.ac"
|
||||||
|
;; Run unit tests using serial harness, taken from
|
||||||
|
;; <https://salsa.debian.org/debian-astro-team/healpix-cxx/>.
|
||||||
|
(("foreign subdir-objects -Wall -Werror")
|
||||||
|
"foreign serial-tests subdir-objects -Wall -Werror"))))
|
||||||
|
(replace 'bootstrap
|
||||||
|
(lambda _
|
||||||
|
(invoke "aclocal")
|
||||||
|
(invoke "automake" "--add-missing")
|
||||||
|
(invoke "autoconf"))))))
|
||||||
|
(inputs (modify-inputs (package-inputs healpix)
|
||||||
|
(prepend libsharp zlib)))
|
||||||
|
(description
|
||||||
|
(string-replace-substring (package-description healpix)
|
||||||
|
"C language"
|
||||||
|
"C++ language"))))
|
||||||
|
|
||||||
(define-public erfa
|
(define-public erfa
|
||||||
(package
|
(package
|
||||||
(name "erfa")
|
(name "erfa")
|
||||||
|
|
Loading…
Reference in a new issue