summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2023-06-25 22:28:19 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2023-07-02 02:00:07 +0200
commitd427792cc49bc42371b7ffdd3a87a6d297032ccd (patch)
treef73d5d4185643629d36ec32cc4c3a7efc561b2f3 /gnu
parent3718307833758a2b22e7448494f629afbcf27ded (diff)
gnu: xplanet: Update package style.
* gnu/packages/astronomy.scm (xplanet)[arguments]: Use G-expressions. Improve code style. [inputs]: Remove labels. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/astronomy.scm38
1 files changed, 19 insertions, 19 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 28cd2e9088..c84afcd01d 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2738,28 +2738,28 @@ R. Seaman's protocol}
"xplanet-1.3.1-libimage_gif.c.patch"
"xplanet-1.3.1-xpUtil-Add2017LeapSecond.cpp.patch"))))
(build-system gnu-build-system)
+ (arguments
+ (list
+ #:configure-flags
+ #~(list
+ ;; No NASA JPL cspice support.
+ "--without-cspice"
+ (string-append "CPPFLAGS=-I" #$(this-package-input "netpbm")
+ "/include/netpbm"))))
(native-inputs
(list pkg-config))
(inputs
- `(("libx11" ,libx11)
- ("libxscrnsaver" ,libxscrnsaver)
- ("libice" ,libice)
- ("freetype" ,freetype)
- ("pango" ,pango)
- ("giflib" ,giflib)
- ("libjpeg" ,libjpeg-turbo)
- ("libpng" ,libpng)
- ("libtiff" ,libtiff)
- ("netpbm" ,netpbm)
- ("zlib" ,zlib)))
- (arguments
- `(#:configure-flags
- (let ((netpbm (assoc-ref %build-inputs "netpbm")))
- (append (list
- ;; Give correct path for pnm.h header to configure script
- (string-append "CPPFLAGS=-I" netpbm "/include/netpbm")
- ;; no nasa jpl cspice support
- "--without-cspice" )))))
+ (list freetype
+ giflib
+ libice
+ libjpeg-turbo
+ libpng
+ libtiff
+ libx11
+ libxscrnsaver
+ netpbm
+ pango
+ zlib))
(home-page "https://xplanet.sourceforge.net/")
(synopsis "Planetary body renderer")
(description