# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
license Restrictive/Distributable
description interactive astronomical ephemeris program
Xephem is an interactive astronomical ephemeris program for X Windows \
systems. It computes heliocentric, geocentric and topocentric \
information for fixed celestial objects and objects in heliocentric \
and geocentric orbits\; has built-in support for all planet positions\; \
the moons of Jupiter, Saturn and Earth\; Mars' and Jupiter's central \
meridian longitude\; Saturn's rings\; and Jupiter's Great Red Spot
homepage http://www.clearskyinstitute.com/xephem/
master_sites http://www.clearskyinstitute.com/xephem/
checksums rmd160 8cda6208a8d6990703c1fc49c371ff9a5bb710d2 \
sha256 fb0b889218322c1cc0b994da7125e624e4f0112d9da1c468936600d1179e55de
depends_lib lib:libXm:openmotif
worksrcdir ${distname}/GUI/xephem
patchfiles patch-Makefile.diff
build.args MOTIFI=${prefix}/include MOTIFL=${prefix}/lib \
set share ${prefix}/share/xephem
set appdefaults ${prefix}/lib/X11/app-defaults
set man1 ${prefix}/share/man/man1
xinstall -m 755 ${worksrcpath}/xephem ${destroot}${bin}
xinstall -m 755 -d ${destroot}${man1}
xinstall -m 644 ${worksrcpath}/xephem.man ${destroot}${man1}/xephem.1
file mkdir ${destroot}${share}
${worksrcpath}/catalogs \
file mkdir ${destroot}${appdefaults}
system "echo XEphem.ShareDir: ${share} > ${destroot}${appdefaults}/XEphem"
livecheck.url ${homepage}/download.html
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}