gnu: libpasastro: Use G-Expressions.

* gnu/packages/astronomy.scm (libpasastro):
[supported-systems]: Add it.
[arguments]: Rewrite using G-expressions.
[description]: Remove trailing \n.

Change-Id: Ic0e79394be1110566f5481963fdd167985c1a770
This commit is contained in:
Sharlatan Hellseher 2024-01-20 15:38:36 +00:00
parent e586c8189b
commit 6431cf121d
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3179,23 +3179,30 @@ (define-public libpasastro
(sha256 (sha256
(base32 "1na3gyb3nzb5gdgccs1653j2gnz6w3v1mqzhyhkx3yqw8bs3q5x0")))) (base32 "1na3gyb3nzb5gdgccs1653j2gnz6w3v1mqzhyhkx3yqw8bs3q5x0"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(supported-systems '("i686-linux" "x86_64-linux"
"armhf-linux" "aarch64-linux"))
(arguments (arguments
`(#:tests? #f (list
#:make-flags #:tests? #f ; no tests provided
(list #:make-flags
,(match (or (%current-target-system) (%current-system)) #~(list
((or "aarch64-linux" "armhf-linux" "i686-linux" "x86_64-linux") ;; Keep OS detection for the case when Hurd would be suitable to try.
"OS_TARGET=linux") #$@(if (target-linux?) '("OS_TARGET=linux") '())
(_ #f)) ;; Enable buildtime CPU detection where supported,
,(match (or (%current-target-system) (%current-system)) ;; and set a suitable CPU target variable.
("i686-linux" "CPU_TARGET=i386") #$@(match (or (%current-target-system)
("x86_64-linux" "CPU_TARGET=x86_64") (%current-system))
((or "armhf-linux" "aarch64-linux") "CPU_TARGET=armv7l") ("i686-linux"
(_ #f)) '("CPU_TARGET=i386"))
(string-append "PREFIX=" (assoc-ref %outputs "out"))) ("x86_64-linux"
#:phases '("CPU_TARGET=x86_64"))
(modify-phases %standard-phases ((or "armhf-linux" "aarch64-linux")
(delete 'configure)))) '("CPU_TARGET=armv7l"))
(_ '()))
(string-append "PREFIX=" #$output))
#:phases
#~(modify-phases %standard-phases
(delete 'configure))))
(home-page "https://github.com/pchev/libpasastro") (home-page "https://github.com/pchev/libpasastro")
(synopsis "Interface to astronomy library for use from Pascal program") (synopsis "Interface to astronomy library for use from Pascal program")
(description (description
@ -3207,7 +3214,7 @@ (define-public libpasastro
@item @code{libpasplan404.so}: Interface with Plan404 to compute planets position. @item @code{libpasplan404.so}: Interface with Plan404 to compute planets position.
@item @code{libpaswcs.so}: Interface with libwcs to work with FITS WCS. @item @code{libpaswcs.so}: Interface with libwcs to work with FITS WCS.
@item @code{libpasspice.so}: To work with NAIF/SPICE kernel. @item @code{libpasspice.so}: To work with NAIF/SPICE kernel.
@end itemize\n") @end itemize")
(license license:gpl2+))) (license license:gpl2+)))
(define-public libxisf (define-public libxisf