summaryrefslogtreecommitdiff
path: root/sci-astronomy
diff options
context:
space:
mode:
Diffstat (limited to 'sci-astronomy')
-rw-r--r--sci-astronomy/Manifest.gzbin6673 -> 6671 bytes
-rw-r--r--sci-astronomy/fitsh/Manifest3
-rw-r--r--sci-astronomy/fitsh/files/fitsh-0.9.4-makefile.patch302
-rw-r--r--sci-astronomy/fitsh/fitsh-0.9.4.ebuild29
4 files changed, 334 insertions, 0 deletions
diff --git a/sci-astronomy/Manifest.gz b/sci-astronomy/Manifest.gz
index 3d7a3f2f0ec8..7befab85bc12 100644
--- a/sci-astronomy/Manifest.gz
+++ b/sci-astronomy/Manifest.gz
Binary files differ
diff --git a/sci-astronomy/fitsh/Manifest b/sci-astronomy/fitsh/Manifest
index d0db5c225ed3..5a8196880366 100644
--- a/sci-astronomy/fitsh/Manifest
+++ b/sci-astronomy/fitsh/Manifest
@@ -1,3 +1,6 @@
+AUX fitsh-0.9.4-makefile.patch 13333 BLAKE2B 74295ebacd6109f6e3b8a5bf5ac7205e64232e088202875135ecf9bc667e40e229358f7febc557d3575ca5f2ef5a772abf3fa758f72a96f6000e37d21df0ab6e SHA512 3c4fb18b958cf53df8ac9308a0883fc4e3593385ad6a8512d384b9efb09560b868a2fdc5775a6c03741d75198d149395dccfdca8ebe02e41d312a4d77a686d13
DIST fitsh-0.9.2.tar.gz 596395 BLAKE2B c1b4354dbbeb7a49483bafc7fd2af6e02d9d0dbe3a55c0f2ef68a012a015163fb7fa3d0ecec0f0bdd47363ad233d1e81b9b2db2e7b15c5885b397a81237c5e79 SHA512 2a6e48b7dc684bf533b541d94dc5ead86166992763b7d0b78ec63916454a5aa515281babfab73c94bbc73b19c3de82e0f387548a4f01974f3593bbc8ddb15c61
+DIST fitsh-0.9.4.tar.gz 620247 BLAKE2B 84ff0efdb71c5cea94aa2c48df3bb9b6f28e9d48847f281fd2a8c55fd6555af62813f7dc5aa561de72641b2a75746711f3c81efe68e55237a551c26570f408b3 SHA512 27610b3a04ca29752fa764b34ccb6260d8fa7ca95ecfe1c2d099ebcf690138525d7e7d5bc5dbbc82458bc8b3389a056c6833de790874de8d0af5a1e964ad15a4
EBUILD fitsh-0.9.2.ebuild 336 BLAKE2B d6328ebc0cf4b311f7b13056c92c30ff146d8d24ca5c708561456ef52bf19b7f78d1564a5ea9be269c79979f7876cb823f0cc87b8b72b2ae6d9d58b412f8b8d8 SHA512 92531e66ab88b5641c7bf2f331afe1813cad9de8eb78e09c77911f0cce87630651e0a958de9c0f311aa887f6abc4db6ddc03e48a7dc143959c587d822b1633ed
+EBUILD fitsh-0.9.4.ebuild 525 BLAKE2B b43b372f69f7ffbc97d13416b6074de6bf0f8a4d68110212ae86067aa78b5d915c93562fd0917ba0728093bf38a11c51acc540c5d0c308d95fe725b1f587721b SHA512 312b70bbec4ab53a8fd593bcb08ec15d8f3b6e681861d58d98d89288b0aeb02e1e4bd566eb4f185b501f8fb946556eede6483fd936c3dd54e31c169ebadab619
MISC metadata.xml 702 BLAKE2B 5b53c9f2268829db2598a7d68abc4a0c8ce5c60766ffedafb97ba242a3d1a7bb83712c8774a4787e88c9610acc61ea83c0f63255ab42598b3ca030b3c12d47fb SHA512 700c63527e29925aefc1fe8bc52b7f4e34059b02feb87e91603c4aebc37639322e4bee63afce0dbe0d082cb3b766920f4d938800ba3c6cba18b7ef2f81d06377
diff --git a/sci-astronomy/fitsh/files/fitsh-0.9.4-makefile.patch b/sci-astronomy/fitsh/files/fitsh-0.9.4-makefile.patch
new file mode 100644
index 000000000000..6f2e47be31f4
--- /dev/null
+++ b/sci-astronomy/fitsh/files/fitsh-0.9.4-makefile.patch
@@ -0,0 +1,302 @@
+* Respect LDFLAGS
+* Fix bashisms in configure
+* Don't pre-compress manpages
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -129,22 +129,22 @@ install: src
+ $(INSTALL) -d $(DESTDIR)${libdir}/fitsh/lfit
+ $(INSTALL) -m 0644 ./src/linear.$(DLEXT) $(DESTDIR)${libdir}/fitsh/lfit
+ $(INSTALL) -d $(DESTDIR)${mandir}/man1
+- $(INSTALL) -m 0644 ./man/fiarith.1.gz $(DESTDIR)${mandir}/man1
+- $(INSTALL) -m 0644 ./man/ficalib.1.gz $(DESTDIR)${mandir}/man1
+- $(INSTALL) -m 0644 ./man/ficombine.1.gz $(DESTDIR)${mandir}/man1
+- $(INSTALL) -m 0644 ./man/ficonv.1.gz $(DESTDIR)${mandir}/man1
+- $(INSTALL) -m 0644 ./man/fiheader.1.gz $(DESTDIR)${mandir}/man1
+- $(INSTALL) -m 0644 ./man/fiign.1.gz $(DESTDIR)${mandir}/man1
+- $(INSTALL) -m 0644 ./man/fiinfo.1.gz $(DESTDIR)${mandir}/man1
+- $(INSTALL) -m 0644 ./man/fiphot.1.gz $(DESTDIR)${mandir}/man1
+- $(INSTALL) -m 0644 ./man/firandom.1.gz $(DESTDIR)${mandir}/man1
+- $(INSTALL) -m 0644 ./man/fistar.1.gz $(DESTDIR)${mandir}/man1
+- $(INSTALL) -m 0644 ./man/fitrans.1.gz $(DESTDIR)${mandir}/man1
+- $(INSTALL) -m 0644 ./man/grcollect.1.gz $(DESTDIR)${mandir}/man1
+- $(INSTALL) -m 0644 ./man/grmatch.1.gz $(DESTDIR)${mandir}/man1
+- $(INSTALL) -m 0644 ./man/grtrans.1.gz $(DESTDIR)${mandir}/man1
+- $(INSTALL) -m 0644 ./man/gropt.1.gz $(DESTDIR)${mandir}/man1
+- $(INSTALL) -m 0644 ./man/lfit.1.gz $(DESTDIR)${mandir}/man1
++ $(INSTALL) -m 0644 ./man/fiarith.1 $(DESTDIR)${mandir}/man1
++ $(INSTALL) -m 0644 ./man/ficalib.1 $(DESTDIR)${mandir}/man1
++ $(INSTALL) -m 0644 ./man/ficombine.1 $(DESTDIR)${mandir}/man1
++ $(INSTALL) -m 0644 ./man/ficonv.1 $(DESTDIR)${mandir}/man1
++ $(INSTALL) -m 0644 ./man/fiheader.1 $(DESTDIR)${mandir}/man1
++ $(INSTALL) -m 0644 ./man/fiign.1 $(DESTDIR)${mandir}/man1
++ $(INSTALL) -m 0644 ./man/fiinfo.1 $(DESTDIR)${mandir}/man1
++ $(INSTALL) -m 0644 ./man/fiphot.1 $(DESTDIR)${mandir}/man1
++ $(INSTALL) -m 0644 ./man/firandom.1 $(DESTDIR)${mandir}/man1
++ $(INSTALL) -m 0644 ./man/fistar.1 $(DESTDIR)${mandir}/man1
++ $(INSTALL) -m 0644 ./man/fitrans.1 $(DESTDIR)${mandir}/man1
++ $(INSTALL) -m 0644 ./man/grcollect.1 $(DESTDIR)${mandir}/man1
++ $(INSTALL) -m 0644 ./man/grmatch.1 $(DESTDIR)${mandir}/man1
++ $(INSTALL) -m 0644 ./man/grtrans.1 $(DESTDIR)${mandir}/man1
++ $(INSTALL) -m 0644 ./man/gropt.1 $(DESTDIR)${mandir}/man1
++ $(INSTALL) -m 0644 ./man/lfit.1 $(DESTDIR)${mandir}/man1
+
+ uninstall:
+ rm -f ${bindir}/fiarith
+@@ -164,32 +164,32 @@ uninstall:
+ rm -f ${bindir}/gropt
+ rm -f ${bindir}/lfit
+ rm -f ${libdir}/fitsh/lfit/linear.$(DLEXT)
+- rm -f ${mandir}/man1/fiarith.1.gz
+- rm -f ${mandir}/man1/ficalib.1.gz
+- rm -f ${mandir}/man1/ficombine.1.gz
+- rm -f ${mandir}/man1/ficonv.1.gz
+- rm -f ${mandir}/man1/fiheader.1.gz
+- rm -f ${mandir}/man1/fiign.1.gz
+- rm -f ${mandir}/man1/fiinfo.1.gz
+- rm -f ${mandir}/man1/fiphot.1.gz
+- rm -f ${mandir}/man1/firandom.1.gz
+- rm -f ${mandir}/man1/fistar.1.gz
+- rm -f ${mandir}/man1/fitrans.1.gz
+- rm -f ${mandir}/man1/grcollect.1.gz
+- rm -f ${mandir}/man1/grmatch.1.gz
+- rm -f ${mandir}/man1/grtrans.1.gz
+- rm -f ${mandir}/man1/gropt.1.gz
+- rm -f ${mandir}/man1/lfit.1.gz
++ rm -f ${mandir}/man1/fiarith
++ rm -f ${mandir}/man1/ficalib
++ rm -f ${mandir}/man1/ficombine
++ rm -f ${mandir}/man1/ficonv
++ rm -f ${mandir}/man1/fiheader
++ rm -f ${mandir}/man1/fiign
++ rm -f ${mandir}/man1/fiinfo
++ rm -f ${mandir}/man1/fiphot
++ rm -f ${mandir}/man1/firandom
++ rm -f ${mandir}/man1/fistar
++ rm -f ${mandir}/man1/fitrans
++ rm -f ${mandir}/man1/grcollect
++ rm -f ${mandir}/man1/grmatch
++ rm -f ${mandir}/man1/grtrans
++ rm -f ${mandir}/man1/gropt
++ rm -f ${mandir}/man1/lfit
+
+ HELP2MAN_LIST=fiarith ficalib ficombine ficonv fiheader fiign fiinfo fiphot firandom fistar fitrans grcollect grmatch grtrans gropt lfit
+
+ help2man: src
+ mkdir -p ./doc/help2man
+- cat ./doc/man.brief | while read b name; do $(HELP2MAN) -n "$$name" -N -h --long-help ./src/$$b > ./doc/help2man/$$b.1; $(GZIP) -f ./doc/help2man/$$b.1; done
++ cat ./doc/man.brief | while read b name; do $(HELP2MAN) -n "$$name" -N -h --long-help ./src/$$b > ./doc/help2man/$$b.1; done
+
+ man: help2man
+ mkdir -p $(MAN)
+- for b in $(HELP2MAN_LIST); do cp -p ./doc/help2man/$$b.1.gz $(MAN); done
++ for b in $(HELP2MAN_LIST); do cp -p ./doc/help2man/$$b $(MAN); done
+
+ dist:
+ rm -f -r $(DIST)
+@@ -244,7 +244,7 @@ dist:
+ mkdir $(DIST)/src/psn
+ cp -p src/psn/*.[ch] src/psn/Makefile.in $(DIST)/src/psn
+ mkdir $(DIST)/man
+- cp -p man/*.1.gz $(DIST)/man
++ cp -p man/* $(DIST)/man
+ mkdir $(DIST)/misc
+ mkdir $(DIST)/misc/deb
+ cp -p misc/deb/fitsh.control misc/deb/fitsh.list $(DIST)/misc/deb
+@@ -264,9 +264,7 @@ deb-fitsh: src help2man
+ cp $$file $(DEB)/fitsh/$$target ; \
+ done
+ cp README $(DEB)/fitsh/usr/share/doc/fitsh/
+- gzip $(DEB)/fitsh/usr/share/doc/fitsh/README
+ cp AUTHORS $(DEB)/fitsh/usr/share/doc/fitsh/
+- gzip $(DEB)/fitsh/usr/share/doc/fitsh/AUTHORS
+ cat $(DEB)/fitsh.control | \
+ sed -e "s/__ARCH__/$(DEB_ARCH)/" \
+ -e "s/__VERSION__/$(DEB_VERSION)/" \
+--- a/configure.ac
++++ b/configure.ac
+@@ -232,17 +232,17 @@ dynamic_extensions=yes
+ # our default $(CFLAGS) are:
+ if test -n "$CFLAGS" ; then
+ cflags_default=no
+-elif test "${ac_cv_env_host_alias_value}" == "win32" ; then
++elif test "${ac_cv_env_host_alias_value}" = "win32" ; then
+ HOST=win32
+ CFLAGS="-Wall -pedantic -O3 -Wno-strict-aliasing -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHOST_WIN32"
+ cflags_default=yes
+ dynamic_extensions=no
+-elif test "${ac_cv_env_host_alias_value}" == "win64" ; then
++elif test "${ac_cv_env_host_alias_value}" = "win64" ; then
+ HOST=win64
+ CFLAGS="-Wall -pedantic -O3 -Wno-strict-aliasing -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHOST_WIN32 -DHOST_WIN64"
+ cflags_default=yes
+ dynamic_extensions=no
+-elif test "${CC}" == "tcc"; then
++elif test "${CC}" = "tcc"; then
+ CFLAGS="-Wall -pedantic -O3 -Wno-strict-aliasing -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"
+ cflags_default=yes
+ else
+@@ -358,19 +358,19 @@ AC_CHECK_LIB(dl,dlclose)
+
+ ax_cflags_gcc_no_overlength_strings=no
+ AX_CFLAGS_GCC_OPTION(-Wno-overlength-strings,[],[ax_cflags_gcc_no_overlength_strings=yes])
+-if test $cflags_default == yes && test $ax_cflags_gcc_no_overlength_strings == yes ; then
++if test $cflags_default = yes && test $ax_cflags_gcc_no_overlength_strings = yes ; then
+ CFLAGS="$CFLAGS -Wno-overlength-strings"
+ fi
+
+ ax_cflags_gcc_no_long_long=no
+ AX_CFLAGS_GCC_OPTION(-Wno-long-long,[],[ax_cflags_gcc_no_long_long=yes])
+-if test $cflags_default == yes && test $ax_cflags_gcc_no_long_long == yes ; then
++if test $cflags_default = yes && test $ax_cflags_gcc_no_long_long = yes ; then
+ CFLAGS="$CFLAGS -Wno-long-long"
+ fi
+
+ ax_cflags_gcc_no_unused_result=no
+ AX_CFLAGS_GCC_OPTION(-Wno-unused-result,[],[ax_cflags_gcc_no_unused_result=yes])
+-if test $cflags_default == yes && test $ax_cflags_gcc_no_unused_result == yes ; then
++if test $cflags_default = yes && test $ax_cflags_gcc_no_unused_result = yes ; then
+ CFLAGS="$CFLAGS -Wno-unused-result"
+ fi
+
+@@ -450,7 +450,7 @@ AC_MSG_RESULT([$PAPERSIZE: ${PAPER_WIDTH}x${PAPER_HEIGHT}])
+ ARCH=`uname -m`
+
+ AC_MSG_CHECKING([dynamic library extensions (HOST=$HOST)])
+-if test `uname` == Darwin; then
++if test `uname` = Darwin; then
+ OSX_VERSION=`sw_vers -productVersion`
+ DLEXT=dylib
+ DLSWC="-dylib -arch $ARCH -macosx_version_min $OSX_VERSION"
+@@ -459,19 +459,19 @@ if test `uname` == Darwin; then
+ DL_TARGETS=linear.dylib
+ AC_MSG_RESULT([dylib])
+ AC_MSG_NOTICE([OSX linker flags: $DLSWC])
+-elif test "$HOST" == win32; then
++elif test "$HOST" = win32; then
+ DLEXT=
+ DLSWC=
+ DLDYN=
+ DLLIB=
+ AC_MSG_RESULT([not supported])
+-elif test "$HOST" == win64; then
++elif test "$HOST" = win64; then
+ DLEXT=
+ DLSWC=
+ DLDYN=
+ DLLIB=
+ AC_MSG_RESULT([not supported])
+-elif test `uname` == NetBSD; then
++elif test `uname` = NetBSD; then
+ DLEXT=so
+ DLSWC=-shared
+ DLDYN=-rdynamic
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -556,22 +556,22 @@ optcalc.o: optcalc.c optcalc.h
+ ###############################################################################
+
+ fiarith: fiarith.c fitsh.h $(DEP_FIARITH) $(MOD_FIARITH)
+- $(CC) $(CFLAGS) -o fiarith fiarith.c $(DEP_FIARITH) $(MOD_FIARITH) $(LIB_FIARITH)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o fiarith fiarith.c $(DEP_FIARITH) $(MOD_FIARITH) $(LIB_FIARITH)
+
+ ficalib: ficalib.c fitsh.h $(DEP_FICALIB) $(MOD_FICALIB)
+- $(CC) $(CFLAGS) -o ficalib ficalib.c $(DEP_FICALIB) $(MOD_FICALIB) $(LIB_FICALIB)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o ficalib ficalib.c $(DEP_FICALIB) $(MOD_FICALIB) $(LIB_FICALIB)
+
+ ficombine: ficombine.c fitsh.h $(DEP_FICOMBINE) $(MOD_FICOMBINE)
+- $(CC) $(CFLAGS) -o ficombine ficombine.c $(DEP_FICOMBINE) $(MOD_FICOMBINE) $(LIB_FICOMBINE)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o ficombine ficombine.c $(DEP_FICOMBINE) $(MOD_FICOMBINE) $(LIB_FICOMBINE)
+
+ ficonv: ficonv.c fitsh.h $(DEP_FICONV) $(MOD_FICONV)
+- $(CC) $(CFLAGS) -o ficonv ficonv.c $(DEP_FICONV) $(MOD_FICONV) $(LIB_FICONV)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o ficonv ficonv.c $(DEP_FICONV) $(MOD_FICONV) $(LIB_FICONV)
+
+ fiheader: fiheader.c fitsh.h $(DEP_FIHEADER) $(MOD_FIHEADER)
+- $(CC) $(CFLAGS) -o fiheader fiheader.c $(DEP_FIHEADER) $(MOD_FIHEADER) $(LIB_FIHEADER)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o fiheader fiheader.c $(DEP_FIHEADER) $(MOD_FIHEADER) $(LIB_FIHEADER)
+
+ fiign: fiign.c fitsh.h $(DEP_FIIGN) $(MOD_FIIGN)
+- $(CC) $(CFLAGS) -o fiign fiign.c $(DEP_FIIGN) $(MOD_FIIGN) $(LIB_FIIGN)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o fiign fiign.c $(DEP_FIIGN) $(MOD_FIIGN) $(LIB_FIIGN)
+
+ fiinfo-image.o: fiinfo-image.c fiinfo.h
+ $(CC) $(CFLAGS) -c fiinfo-image.c
+@@ -580,40 +580,40 @@ fiinfo-pnm.o: fiinfo-pnm.c fiinfo.h
+ $(CC) $(CFLAGS) -c fiinfo-pnm.c
+
+ fiinfo: fiinfo.c fiinfo.h fitsh.h $(DEP_FIINFO) $(MOD_FIINFO)
+- $(CC) $(CFLAGS) -o fiinfo fiinfo.c $(DEP_FIINFO) $(MOD_FIINFO) $(LIB_FIINFO)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o fiinfo fiinfo.c $(DEP_FIINFO) $(MOD_FIINFO) $(LIB_FIINFO)
+
+ firandom-eval.o: firandom-eval.c firandom.h
+ $(CC) $(CFLAGS) -c firandom-eval.c
+
+ firandom: firandom.c fitsh.h $(DEP_FIRANDOM) $(MOD_FIRANDOM)
+- $(CC) $(CFLAGS) -o firandom firandom.c $(DEP_FIRANDOM) $(MOD_FIRANDOM) $(LIB_FIRANDOM)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o firandom firandom.c $(DEP_FIRANDOM) $(MOD_FIRANDOM) $(LIB_FIRANDOM)
+
+ fiphot-io.o: fiphot-io.c fiphot.h
+ $(CC) $(CFLAGS) -c fiphot-io.c
+
+ fiphot: fiphot.c fitsh.h $(DEP_FIPHOT) $(MOD_FIPHOT)
+- $(CC) $(CFLAGS) -o fiphot fiphot.c $(DEP_FIPHOT) $(MOD_FIPHOT) $(LIB_FIPHOT)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o fiphot fiphot.c $(DEP_FIPHOT) $(MOD_FIPHOT) $(LIB_FIPHOT)
+
+ fistar-io.o: fistar-io.c fistar.h
+ $(CC) $(CFLAGS) -c fistar-io.c
+
+ fistar: fistar.c fitsh.h $(DEP_FISTAR) $(MOD_FISTAR) fistar.h
+- $(CC) $(CFLAGS) -o fistar fistar.c $(DEP_FISTAR) $(MOD_FISTAR) $(LIB_FISTAR)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o fistar fistar.c $(DEP_FISTAR) $(MOD_FISTAR) $(LIB_FISTAR)
+
+ fitrans: fitrans.c fitsh.h $(DEP_FITRANS) $(MOD_FITRANS)
+- $(CC) $(CFLAGS) -o fitrans fitrans.c $(DEP_FITRANS) $(MOD_FITRANS) $(LIB_FITRANS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o fitrans fitrans.c $(DEP_FITRANS) $(MOD_FITRANS) $(LIB_FITRANS)
+
+ grcollect: grcollect.c fitsh.h $(DEP_GRCOLLECT) $(MOD_GRCOLLECT)
+- $(CC) $(CFLAGS) -o grcollect grcollect.c $(DEP_GRCOLLECT) $(MOD_GRCOLLECT) $(LIB_GRCOLLECT)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o grcollect grcollect.c $(DEP_GRCOLLECT) $(MOD_GRCOLLECT) $(LIB_GRCOLLECT)
+
+ grmatch: grmatch.c fitsh.h $(DEP_GRMATCH) $(MOD_GRMATCH)
+- $(CC) $(CFLAGS) -o grmatch grmatch.c $(DEP_GRMATCH) $(MOD_GRMATCH) $(LIB_GRMATCH)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o grmatch grmatch.c $(DEP_GRMATCH) $(MOD_GRMATCH) $(LIB_GRMATCH)
+
+ grtrans: grtrans.c fitsh.h $(DEP_GRTRANS) $(MOD_GRTRANS)
+- $(CC) $(CFLAGS) -o grtrans grtrans.c $(DEP_GRTRANS) $(MOD_GRTRANS) $(LIB_GRTRANS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o grtrans grtrans.c $(DEP_GRTRANS) $(MOD_GRTRANS) $(LIB_GRTRANS)
+
+ gropt: gropt.c fitsh.h $(DEP_GROPT) $(MOD_GROPT)
+- $(CC) $(CFLAGS) -o gropt gropt.c $(DEP_GROPT) $(MOD_GROPT) $(LIB_GROPT)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o gropt gropt.c $(DEP_GROPT) $(MOD_GROPT) $(LIB_GROPT)
+
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+
+@@ -627,7 +627,7 @@ lfit-info.o: lfit-info.c lfit-info.h
+ $(CC) $(CFLAGS) -c lfit-info.c
+
+ lfit: lfit.c $(DEP_LFIT) $(MOD_LFIT)
+- $(CC) $(CFLAGS) -o lfit lfit.c $(DEP_LFIT) $(MOD_LFIT) $(DLDYN) $(LIB_LFIT)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o lfit lfit.c $(DEP_LFIT) $(MOD_LFIT) $(DLDYN) $(LIB_LFIT)
+
+ linear.o: linear.c
+ $(CC) $(CFLAGS) -c linear.c
+@@ -639,7 +639,7 @@ linear.$(DLEXT): linear.o
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+
+ fic_mpstack: fic_mpstack.c fitsh.h $(DEP_FIC_MPSTACK)
+- $(CC) $(CFLAGS) -o fic_mpstack fic_mpstack.c $(DEP_FIC_MPSTACK) $(MOD_FIC_MPSTACK) $(LIB_FIC_MPSTACK)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o fic_mpstack fic_mpstack.c $(DEP_FIC_MPSTACK) $(MOD_FIC_MPSTACK) $(LIB_FIC_MPSTACK)
+
+ ###############################################################################
+
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -633,7 +633,7 @@ linear.o: linear.c
+ $(CC) $(CFLAGS) -c linear.c
+
+ linear.$(DLEXT): linear.o
+- $(LD) -o linear.$(DLEXT) linear.o $(DLSWC) -lc
++ $(CC) $(LDFLAGS) -o linear.$(DLEXT) linear.o $(DLSWC) -lc
+ chmod 644 linear.$(DLEXT)
+
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
diff --git a/sci-astronomy/fitsh/fitsh-0.9.4.ebuild b/sci-astronomy/fitsh/fitsh-0.9.4.ebuild
new file mode 100644
index 000000000000..365fa1515cac
--- /dev/null
+++ b/sci-astronomy/fitsh/fitsh-0.9.4.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Software package for astronomical image processing"
+HOMEPAGE="https://fitsh.net/"
+SRC_URI="https://fitsh.net/download/fitsh/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.4-makefile.patch
+)
+
+src_prepare() {
+ default
+
+ local file
+ for file in man/*.gz ; do
+ gzip -d "${file}" || die
+ done
+
+ eautoreconf
+}