diff options
author | Sébastien Fabbro <bicatali@gentoo.org> | 2016-12-19 18:19:55 +0000 |
---|---|---|
committer | Sébastien Fabbro <bicatali@gentoo.org> | 2016-12-19 23:51:11 +0000 |
commit | 422501c0842d20cbd9f6659c69f91f4b9d28ff36 (patch) | |
tree | 2770a701eed3a55ccf8dc731bfbca821d5a7c2df /sci-astronomy/funtools/funtools-1.4.7.ebuild | |
parent | sci-libs/superlu: added upstream remote-id (diff) | |
download | gentoo-422501c0842d20cbd9f6659c69f91f4b9d28ff36.tar.gz gentoo-422501c0842d20cbd9f6659c69f91f4b9d28ff36.tar.bz2 gentoo-422501c0842d20cbd9f6659c69f91f4b9d28ff36.zip |
sci-astronomy/funtools: version bump and add tcl dependency
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=603110
Package-Manager: portage-2.3.3
Diffstat (limited to 'sci-astronomy/funtools/funtools-1.4.7.ebuild')
-rw-r--r-- | sci-astronomy/funtools/funtools-1.4.7.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/sci-astronomy/funtools/funtools-1.4.7.ebuild b/sci-astronomy/funtools/funtools-1.4.7.ebuild new file mode 100644 index 000000000000..9f254a3a35b5 --- /dev/null +++ b/sci-astronomy/funtools/funtools-1.4.7.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +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} + 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() { + econf \ + --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)" +} + +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 + use doc && dodoc doc/*.pdf doc/*html doc/*c \ + && docompress -x /usr/share/doc/${PF}/*.c + use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.a +} |