Compare commits

...

7 Commits

Author SHA1 Message Date
Mike Molina 2cc5e367f5
Merge 8a1b770f16 into b6529a3ce3 2024-06-20 14:27:10 +00:00
Brandon Rhodes b6529a3ce3 Fix GitHub Actions by installing groff on Mac 2024-05-17 23:41:52 -04:00
dave-kaye 48db8e8eaa
Update release date in Help > About menu (#92) 2024-05-15 22:01:19 -04:00
dave-kaye 25d9785659
Update download urls (#93)
Closes issue #80.
2024-05-03 14:47:40 -04:00
dave-kaye cbce84148a
Update header inserted into MPC .edb files (#94) 2024-04-09 16:30:53 -04:00
sanlupkim 6afc692a80
Use standard manpage sections; escape dashes (#90) 2024-03-04 13:11:24 -05:00
Mike Molina 8a1b770f16 New revision to the inclusion of desktop and metadata files
Adds the desktop and AppStream metadata files (exclusively) for XEphem and its integration with the source code.
2024-02-20 00:30:27 -05:00
12 changed files with 161 additions and 24 deletions

View File

@ -4,6 +4,7 @@ on:
push: push:
branches: branches:
- main - main
- fix-ci
pull_request: pull_request:
branches: branches:
@ -31,6 +32,8 @@ jobs:
run: brew install openssl && brew info openssl run: brew install openssl && brew info openssl
- name: Install XQuartz - name: Install XQuartz
run: brew install xquartz --cask && brew info xquartz run: brew install xquartz --cask && brew info xquartz
- name: Install groff
run: brew install groff && brew info groff
- name: Compile - name: Compile
run: make -C GUI/xephem run: make -C GUI/xephem
- name: Test - name: Test

View File

@ -48,6 +48,17 @@ LDFLAGS = $(LIBLNK) $(CLDFLAGS) -L$(MOTIFL) $(PLATL)
XLIBS = -lXm -lXt -lXext -lXmu -lX11 XLIBS = -lXm -lXt -lXext -lXmu -lX11
LIBS = $(XLIBS) $(LIBLIB) -lm -lssl LIBS = $(XLIBS) $(LIBLIB) -lm -lssl
# Variables installation for Linux
# For install XEphem without root permission, use a directory local
# such $(HOME)/local or another of your preference in the prefix variable.
ifeq ($(UNAME_S),Linux)
prefix = $(HOME)/local
bindir = $(prefix)/bin
datadir = $(prefix)/share
mandir = $(datadir)/man
export datadir
endif
# static linking on Apple using X11 libs from ports # static linking on Apple using X11 libs from ports
# CC = gcc # CC = gcc
# OLI = /opt/local/include # OLI = /opt/local/include
@ -203,7 +214,7 @@ xephem: $(INCS) $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
xephem.1: xephem.man xephem.1: xephem.man
nroff -man $? > $@ cp $? $@
libs: libs:
cd ../../libastro; make cd ../../libastro; make
@ -218,3 +229,24 @@ clean:
clobber: clean clobber: clean
rm -fr xephem xephem.1 rm -fr xephem xephem.1
# Installation in Linux systems
ifeq ($(UNAME_S),Linux)
install: install-binary install-man install-data install-desktopfiles
install-binary:
install -Dm 755 xephem -t $(DESTDIR)$(bindir)
install-man:
install -Dm 644 xephem.1 -t $(DESTDIR)$(mandir)/man1
install-data:
install -dm 755 $(DESTDIR)$(datadir)/xephem
@for d in auxil catalogs fifos fits gallery help lo; do \
echo "cp -R $$d $(DESTDIR)$(datadir)/xephem"; \
cp -R $$d $(DESTDIR)$(datadir)/xephem; \
done
install-desktopfiles:
cd ../../desktopfiles; make DESTDIR=$(DESTDIR) install
endif

View File

@ -119,7 +119,7 @@ print "Creating $brtfn and $dimfn..\n";
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime; ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime;
$year += 1900; $year += 1900;
$mon += 1; $mon += 1;
$from = "# Data is from ftp://cfa-ftp.harvard.edu/pub/MPCORB/MPCORB.DAT\n"; $from = "# Data is from $MPCSITE/$MPCFTPDIR/$MPCFILE\n";
$what = "# Generated by mpcorb2edb.pl $ver, (c) 2000 Elwood Downey\n"; $what = "# Generated by mpcorb2edb.pl $ver, (c) 2000 Elwood Downey\n";
$when = "# Processed $year-$mon-$mday $hour:$min:$sec UTC\n"; $when = "# Processed $year-$mon-$mday $hour:$min:$sec UTC\n";

View File

@ -744,11 +744,11 @@ String fallbacks[] = {
"XEphem*WCS.y: 10", "XEphem*WCS.y: 10",
"XEphem*WebDB*Pattern.value: ", "XEphem*WebDB*Pattern.value: ",
"XEphem*WebDB*Search.set: False", "XEphem*WebDB*Search.set: False",
"XEphem*WebDB*URL0.value: http://celestrak.org/NORAD/elements/stations.txt", "XEphem*WebDB*URL0.value: https://celestrak.org/NORAD/elements/stations.txt",
"XEphem*WebDB*URL1.value: http://celestrak.org/NORAD/elements/science.txt", "XEphem*WebDB*URL1.value: https://celestrak.org/NORAD/elements/science.txt",
"XEphem*WebDB*URL2.value: http://celestrak.org/NORAD/elements/tle-new.txt", "XEphem*WebDB*URL2.value: https://celestrak.org/NORAD/elements/tle-new.txt",
"XEphem*WebDB*URL3.value: http://celestrak.org/NORAD/elements/amateur.txt", "XEphem*WebDB*URL3.value: https://celestrak.org/NORAD/elements/amateur.txt",
"XEphem*WebDB*URL4.value: http://celestrak.org/NORAD/elements/visual.txt", "XEphem*WebDB*URL4.value: https://celestrak.org/NORAD/elements/visual.txt",
"XEphem*WebDB*URL5.value: https://www.minorplanetcenter.net/iau/Ephemerides/Comets/Soft03Cmt.txt", "XEphem*WebDB*URL5.value: https://www.minorplanetcenter.net/iau/Ephemerides/Comets/Soft03Cmt.txt",
"XEphem*WebDB*URL6.value: https://www.minorplanetcenter.net/iau/Ephemerides/CritList/Soft03CritList.txt", "XEphem*WebDB*URL6.value: https://www.minorplanetcenter.net/iau/Ephemerides/CritList/Soft03CritList.txt",
"XEphem*WebDB*URL7.value: https://www.minorplanetcenter.net/iau/Ephemerides/Distant/Soft03Distant.txt", "XEphem*WebDB*URL7.value: https://www.minorplanetcenter.net/iau/Ephemerides/Distant/Soft03Distant.txt",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -7991,7 +7991,7 @@ format if it is not already.<br>
<br> <br>
Several particularly useful sites as of this build are already entered. Several particularly useful sites as of this build are already entered.
The first five are from Dr. TS Kelso's Earth satellite lists at <a The first five are from Dr. TS Kelso's Earth satellite lists at <a
href="https://www.celestrak.org">celestrak.org</a>. The other four are href="https://celestrak.org">celestrak.org</a>. The other four are
the Minor Planet Center's lists of hot comets and unusual asteroids the Minor Planet Center's lists of hot comets and unusual asteroids
specially formatted for <a specially formatted for <a
href="https://www.minorplanetcenter.net/iau/Ephemerides/Soft03.html">XEphem</a>. href="https://www.minorplanetcenter.net/iau/Ephemerides/Soft03.html">XEphem</a>.
@ -7999,12 +7999,9 @@ Click <span style="font-weight: bold;">Get</span> beside the desired
catalog to download the file to the Private directory and catalog to download the file to the Private directory and
simultaneously load into XEphem memory.<br> simultaneously load into XEphem memory.<br>
<br> <br>
Special files created by Special files created by the <a
<!-- could not found the correct linke href="https://www.minorplanetcenter.net/data/">Minor Planet Center</a>
<a href="http://cfa-www.harvard.edu/cfa/ps/mpc.html">Minor Planet Center</a> and <a href="https://asteroid.lowell.edu/astorb/">Lowell
and
-->
the <a href="https://asteroid.lowell.edu/">Lowell
Observatory</a> may also be downloaded. Observatory</a> may also be downloaded.
Each organization maintains Each organization maintains
extensive lists of all known asteroids and produces on a regular basis extensive lists of all known asteroids and produces on a regular basis

View File

@ -5,5 +5,5 @@
#include "xephem.h" #include "xephem.h"
char PATCHLEVEL[] = "4.2.0"; char PATCHLEVEL[] = "4.2.0";
char PATCHDATE[] = "2021 September 13"; char PATCHDATE[] = "2024 February 13";
char COPYRIGHT[] = "Copyright (c) 1990-2021 by Elwood Charles Downey"; char COPYRIGHT[] = "Copyright (c) 1990-2021 by Elwood Charles Downey";

View File

@ -158,7 +158,7 @@ wdb_create()
XtSetArg (args[n], XmNrightAttachment, XmATTACH_FORM); n++; XtSetArg (args[n], XmNrightAttachment, XmATTACH_FORM); n++;
tf_w = XmCreateTextField (f_w, buf, args, n); tf_w = XmCreateTextField (f_w, buf, args, n);
defaultTextFN (tf_w, 1, "", NULL); defaultTextFN (tf_w, 1, "", NULL);
wtip (tf_w, "URL of file to download (must use HTTP)"); wtip (tf_w, "URL of file to download (must use HTTP or HTTPS)");
XtManageChild (tf_w); XtManageChild (tf_w);
sprintf (buf, "XEphem*WebDB*URL%d.value", i); sprintf (buf, "XEphem*WebDB*URL%d.value", i);
sr_reg (tf_w, buf, wdbcategory, 1); sr_reg (tf_w, buf, wdbcategory, 1);

View File

@ -1,9 +1,9 @@
.TH XEphem 1X .TH XEPHEM 1 "Feb 2024"
.SH Name .SH NAME
XEphem \- an interactive astronomical ephemeris for X11 XEphem \- an interactive astronomical ephemeris for X11
.SH Syntax .SH SYNOPSIS
\fBxephem [-prfb] [-install {yes|no|guess}] [-resfile <resourcefile>] [-[no]splash]\fP \fBxephem [\-prfb] [\-install {yes|no|guess}] [\-resfile <resourcefile>] [\-[no]splash]\fP
.SH Description .SH DESCRIPTION
.na .na
.nh .nh
.PP .PP
@ -144,14 +144,14 @@ multi-user installations. XEphem looks here for support files. Unless
defined otherwise, the Shared directory is ".", that is, the current defined otherwise, the Shared directory is ".", that is, the current
directory. directory.
.SH Author .SH AUTHOR
.PP .PP
Elwood C. Downey, email ecdowney@ClearSkyInstitute.com. Elwood C. Downey, email ecdowney@ClearSkyInstitute.com.
.SH References .SH SEE ALSO
.PP .PP
The Web homepage, including the FAQ, is maintained at The Web homepage, including the FAQ, is maintained at
.I http://www.clearskyinstitute.com/xephem .I https://xephem.github.io/XEphem/Site/xephem.html
.PP .PP
The online Help entry The online Help entry
.I on Credits .I on Credits

39
desktopfiles/Makefile Normal file
View File

@ -0,0 +1,39 @@
# Makefile for manage desktop files
#
# Requires convert program of the package ImageMagick.
CONVERT = convert
SRCPNGICON = ../GUI/xephem/XEphem.png
PNGICONS = \
32x32/apps/xephem.png \
48x48/apps/xephem.png \
64x64/apps/xephem.png \
128x128/apps/xephem.png
DESKTOPFILE = io.github.xephem.desktop
METAINFOFILE = io.github.xephem.metainfo.xml
iconsdir = $(DESTDIR)$(datadir)/icons/hicolor
applicationsdir = $(DESTDIR)$(datadir)/applications
metainfodir = $(DESTDIR)$(datadir)/metainfo
all:
install: install-icons install-desktopfile install-metainfo
install-icons: $(PNGICONS)
$(PNGICONS): $(SRCPNGICON)
@d=$(iconsdir)/$(shell dirname $@); \
s=$(shell echo $@ | sed -e 's/[a-z]*\([0-9]*\).*/\1/'); \
echo "install -m 755 -d $$d"; \
install -m 755 -d $$d; \
echo "convert -geometry $${s}x$${s} -depth 8 -background none $< $(iconsdir)/$@"; \
$(CONVERT) -geometry $${s}x$${s} -depth 8 -background none $< $(iconsdir)/$@
install-desktopfile:
install -Dm 644 $(DESKTOPFILE) -t $(applicationsdir)
install-metainfo:
install -Dm 644 $(METAINFOFILE) -t $(metainfodir)

View File

@ -0,0 +1,13 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=XEphem
GenericName=X Window Ephemeris
GenericName[es]=Ventana X de Efemérides
Comment=Interactive astronomical ephemeris software
Comment[es]=Software Interactivo de efemérides astrónomicas
Exec=xephem
Icon=xephem
Terminal=false
Categories=Science;Astronomy;Motif;
Keywords=Astronomy;

View File

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2023-2024 Miguel Molina <mmolina.unphysics@gmail.com> -->
<component type="desktop-application">
<id>io.github.xephem.desktop</id>
<name>XEphem</name>
<name xml:lang="es">XEphem</name>
<summary>Interactive astronomical ephemeris software</summary>
<summary xml:lang="es">Software interactivo de efemérides astronómicas</summary>
<metadata_license>MIT</metadata_license>
<project_license>MIT</project_license>
<description>
<p>
<ul>
<li><em>XEphem</em> is an interactive astronomy program for all UNIX platforms, written and maintained by _Elwood Downey_ over more than thirty years 1990-2021 and now generously released under the MIT License.</li>
<li><em>XEphem</em> can compute information on demand or time can be set to increment automatically. In this way a series of computations and movies can be generated.</li>
</ul>
</p>
<p xml:lang="es">
<ul>
<li><em>XEphem</em> es un programa de astronomía interactivo para todas las plataformas UNIX, escrito y mantenido por _Elwood Downey_ durante más de treinta años entre 1990 y 2021 y ahora publicado generosamente bajo la licencia MIT.</li>
<li><em>XEphem</em> puede calcular información bajo demanda o se puede configurar automáticamente en el tiempo. De esta forma se pueden generar una serie de cálculos y animaciones.</li>
</ul>
</p>
</description>
<launchable type="desktop-id">xephem.desktop</launchable>
<url type="homepage">https://xephem.github.io/XEphem/Site/xephem.html</url>
<url type="help">https://xephem.github.io/XEphem/Site/help/xephem.html</url>
<update_contact>xephem@ClearSkyInstitute.com</update_contact>
<developer_name>Elwood Charles Downey</developer_name>
<releases>
<release date="2024-02-13" version="4.2.0"/>
</releases>
<provides>
<binary>xephem</binary>
</provides>
<screenshots>
<screenshot type="default">
<image>https://raw.githubusercontent.com/XEphem/XEphem/main/GUI/xephem/help/png/sky-view.png</image>
<caption>Highly configurable interactive Sky View</caption>
<caption xml:lang="es">Vista del cielo interactivo altamente configurable</caption>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/XEphem/XEphem/main/GUI/xephem/help/png/solsys.png</image>
<caption>3D projection and true stereo views of the solar system, perfect for visualizing comet paths</caption>
<caption xml:lang="es">Proyecciones 3D y vistas estereográficas reales del sistema solar, perfectas para visualizar trayectorias de cometas</caption>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/XEphem/XEphem/main/GUI/xephem/help/png/sun-view.png</image>
<caption>Near real-time Solar images from the SOHO spacecraft</caption>
<caption xml:lang="es">Imágenes solares en tiempo real desde la nave espacial SOHO</caption>
</screenshot>
</screenshots>
</component>