diff options
-rw-r--r-- | sci-astronomy/wcstools/ChangeLog | 9 | ||||
-rw-r--r-- | sci-astronomy/wcstools/wcstools-3.8.5.ebuild | 63 |
2 files changed, 70 insertions, 2 deletions
diff --git a/sci-astronomy/wcstools/ChangeLog b/sci-astronomy/wcstools/ChangeLog index b61512d145b4..ce303ee3abda 100644 --- a/sci-astronomy/wcstools/ChangeLog +++ b/sci-astronomy/wcstools/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-astronomy/wcstools -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/wcstools/ChangeLog,v 1.22 2011/09/23 19:17:31 xarthisius Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/wcstools/ChangeLog,v 1.23 2012/05/06 10:04:07 xarthisius Exp $ + +*wcstools-3.8.5 (06 May 2012) + + 06 May 2012; Kacper Kowalik <xarthisius@gentoo.org> +wcstools-3.8.5.ebuild: + Version bump, make building static libs optional *wcstools-3.8.4 (23 Sep 2011) diff --git a/sci-astronomy/wcstools/wcstools-3.8.5.ebuild b/sci-astronomy/wcstools/wcstools-3.8.5.ebuild new file mode 100644 index 000000000000..98926f628641 --- /dev/null +++ b/sci-astronomy/wcstools/wcstools-3.8.5.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/wcstools/wcstools-3.8.5.ebuild,v 1.1 2012/05/06 10:04:07 xarthisius Exp $ + +EAPI=4 + +inherit autotools eutils multilib + +DESCRIPTION="World Coordinate System library for astronomical FITS images" +HOMEPAGE="http://tdc-www.harvard.edu/software/wcstools" +SRC_URI="${HOMEPAGE}/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="static-libs" + +DOCS=( Readme Programs NEWS libned/NED_client ) + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-3.8.3-autotools.patch \ + "${FILESDIR}"/${PN}-3.8.4-implicits.patch + + # avoid colliding with fixdos, getdate and remap from other packages + sed -i \ + -e 's/getdate/wcsgetdate/' \ + -e 's/crlf/wcscrlf/' \ + -e 's/remap/wcsremap/' \ + -e "s/3.... Programs/${PV} Programs/" \ + wcstools || die + eautoreconf +} + +src_configure() { + econf \ + $(use_enable static-libs static) +} + +src_test() { + einfo "Testing various wcstools programs" + ./newfits -a 10 -j 248 41 -p 0.15 test.fits || die "test newfits failed" + ./sethead test.fits A=1 B=1 || die "test sethead failed" + [[ "$(./gethead test.fits RA)" == "16:32:00.0000" ]] \ + || die "test gethead failed" + rm -f test.fits +} + +src_install() { + default + use static-libs || rm -rf "${D}"/usr/$(get_libdir)/*.la + doman Man/man1/* + newdoc libwcs/Readme Readme.libwcs + newdoc libwcs/NEWS NEWS.libwcs +} + +pkg_postinst() { + elog "The following execs have been renamed to avoid colliding" + elog "with other packages:" + elog " getdate -> wcsgetdate" + elog " crlf -> wcscrlf" + elog " remap -> wcsremap" +} |