commit:     84afe13990609bcaa91aaa80de442794d2dc9f47
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 26 19:32:56 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Apr 26 19:32:56 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84afe139

sci-astronomy/funtools: add 1.4.8, EAPI6->8

Closes: https://bugs.gentoo.org/836815
Closes: https://bugs.gentoo.org/741112
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 sci-astronomy/funtools/Manifest              |  1 +
 sci-astronomy/funtools/funtools-1.4.8.ebuild | 81 ++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)

diff --git a/sci-astronomy/funtools/Manifest b/sci-astronomy/funtools/Manifest
index 115132c5cfca..6d96c6dbf839 100644
--- a/sci-astronomy/funtools/Manifest
+++ b/sci-astronomy/funtools/Manifest
@@ -1 +1,2 @@
 DIST funtools-1.4.7.tar.gz 3270079 BLAKE2B 
8c366d70d9d7e48c41dcd1f82374dce818c6f8e367b971b6ae44f36491bc41008645cfa02526b6173f8248c172639f7461f5a142434fe2791177718503f66332
 SHA512 
d53bdb00a2eb9cd70bf60e34a10e5e16435a10b96f89cd55f0ffb686fac30438e2dfc1d823578286be51bee5caf0dcd1c0f257cd8e725cf8e5aa798a6f3c245a
+DIST funtools-1.4.8.tar.gz 3281636 BLAKE2B 
dd1fd341786e09662a6de88a102a01f02be78775bdada938c4df79f6bae388d07d711df46f52eaea6557589450e104aaff65b0823758161f1aea3301f5a82338
 SHA512 
f916ce582d66f0350448912be6ec427b0c697e7da49595ec04e86b105af76d229d7721b5fee8844f843b1734129b53402228d7736e55fbae83df405362fb8a6c

diff --git a/sci-astronomy/funtools/funtools-1.4.8.ebuild 
b/sci-astronomy/funtools/funtools-1.4.8.ebuild
new file mode 100644
index 000000000000..c7ba18476c52
--- /dev/null
+++ b/sci-astronomy/funtools/funtools-1.4.8.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs autotools
+
+DESCRIPTION="FITS library and utlities for astronomical images"
+HOMEPAGE="https://github.com/ericmandel/funtools";
+SRC_URI="https://github.com/ericmandel/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/1"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc static-libs"
+
+RDEPEND="
+       dev-lang/tcl:0=
+       sci-astronomy/wcstools:0=
+       sci-visualization/gnuplot
+       sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+       default
+       # respect libdir, dont build wcs, respect toolchain
+       sed -e "/INSTALL/s|/lib|/$(get_libdir)|g" \
+               -e 's|${OBJS}|$(OBJS)|g' \
+               -e '/^SUBLIBS/s|wcs||g' \
+               -e 's/mkdir/mkdir -p/g' \
+               -e '/mklib/s|-o $(PACKAGE)|-o $(PACKAGE) $(LIBS)|g' \
+               -e "s| ar| $(tc-getAR)|g" \
+               -e "s|ar cruv|$(tc-getAR) cruv|g" \
+               -e "s|WCS_INC.*=.*|WCS_INC = $($(tc-getPKG_CONFIG) --cflags 
wcstools)|g" \
+               -i Makefile.in */Makefile.in || die
+       # fix race condition (when ccache is on)
+       sed -e 's|$(LIB):|$(LIB): FORCE|g' \
+               -e '$aFORCE:' \
+               -i */Makefile.in || die
+       eautoreconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               --exec-prefix="${EPREFIX}/usr"
+               --enable-shared
+               --enable-dl
+               --with-wcslib="$($(tc-getPKG_CONFIG) --libs wcstools)"
+               --with-zlib="$($(tc-getPKG_CONFIG) --libs zlib)"
+               --with-tcl="${EPREFIX}/usr/$(get_libdir)"
+       )
+       econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+       emake
+       emake shtclfun
+}
+
+src_install() {
+       default
+       # install missing includes
+       insinto /usr/include/funtools/fitsy
+       doins fitsy/*.h
+
+       # fix bug #536630
+       mv "${ED}"/usr/share/man/man3/funopen.3 \
+          "${ED}"/usr/share/man/man7/funopen.7 \
+               || die
+
+       if use doc; then
+               dodoc doc/*.pdf doc/*html doc/*c \
+               docompress -x /usr/share/doc/${PF}/*.c
+       fi
+
+       if ! use static-libs; then
+               find "${ED}" -name "*.a" -delete || die
+       fi
+}

Reply via email to