From 5ec6e3bffe5fa232632246f2144d910793fcf048 Mon Sep 17 00:00:00 2001 From: Sébastien Fabbro Date: Wed, 28 Jun 2017 18:17:23 +0000 Subject: sci-astronomy/wcstools: version bump Package-Manager: Portage-2.3.6, Repoman-2.3.2 --- sci-astronomy/wcstools/Manifest | 2 +- sci-astronomy/wcstools/wcstools-3.9.3.ebuild | 73 ---------------------------- sci-astronomy/wcstools/wcstools-3.9.5.ebuild | 67 +++++++++++++++++++++++++ 3 files changed, 68 insertions(+), 74 deletions(-) delete mode 100644 sci-astronomy/wcstools/wcstools-3.9.3.ebuild create mode 100644 sci-astronomy/wcstools/wcstools-3.9.5.ebuild (limited to 'sci-astronomy') diff --git a/sci-astronomy/wcstools/Manifest b/sci-astronomy/wcstools/Manifest index a9ee4d77424a..0266b5bc3422 100644 --- a/sci-astronomy/wcstools/Manifest +++ b/sci-astronomy/wcstools/Manifest @@ -1,2 +1,2 @@ -DIST wcstools-3.9.3.tar.gz 8526152 SHA256 1af69a8d524d747f452667689be3272503c4c49d3dc345364dd1e9fdf898aecd SHA512 d2a5a6c13d89ff0d1e79a60fb174a90c152b045d63fd480c282a29226fff81dc80ab3ddc296ba6450e30294f86ac6ece1e0331a7b551ce865d6d8d1c6ea4643a WHIRLPOOL a41de2580592c8471f772e97959336bc5d016aabf9ae2d95f656636da98290703c1e8929298ca0e1d7a49d1e420b5048a11d4574985669ba3e4265b438265d2d DIST wcstools-3.9.4.tar.gz 8528588 SHA256 92aceebb7c4409706bd1d30abe020ab0516a2bf507719e60aede6498ce5e4b7d SHA512 0f46ac82d8f512496b33b43d417e92acc7d7e0710d217895ad464686837b7e08740e64ce1800b6c58c9e326b5fcfd5387d1817ca6898512baaaf86ec6ca72d6e WHIRLPOOL 3a6f50567a9831aa9dc35a4744268dc071f38f853a1299937ba1f4d5cdc84c0d8faa528c4e54a82828cfa00a755e8e69fb2b564186a16ba8fc042dd20f230c12 +DIST wcstools-3.9.5.tar.gz 8538612 SHA256 b2f9be55fdec29f0c640028a9986771bfd6ab3d2f633953e4c7cc3b410e5fe9c SHA512 aa48081b6f5dc12ed8d64eae5275c27aaa279856f588a3eb429ec0a4943dc482788cb7f84820233f0e2ee4fefeda7ab9bb85c4513a9942c48f5d97a0bde1581d WHIRLPOOL 9df23431c0a5364e736aa24bed93cb3ff76a76f3849d663460db248cad031eefeb8362877b464495c0188129d7236a67261128a2ad3a6e3fc5e9452ef549c052 diff --git a/sci-astronomy/wcstools/wcstools-3.9.3.ebuild b/sci-astronomy/wcstools/wcstools-3.9.3.ebuild deleted file mode 100644 index f56102bd5744..000000000000 --- a/sci-astronomy/wcstools/wcstools-3.9.3.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit eutils autotools - -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 ~amd64-linux ~x86-linux" -IUSE="" - -DOCS=( Readme Programs NEWS ) - -PATCHES=( - "${FILESDIR}"/${PN}-3.9.2-compiler_warnings.patch - "${FILESDIR}"/${PN}-3.9.2-mayhem.patch - "${FILESDIR}"/${PN}-3.9.2-RASortStars.patch - "${FILESDIR}"/${PN}-3.9.2-spelling.patch - "${FILESDIR}"/${PN}-3.9.2-sprintf.patch - "${FILESDIR}"/${PN}-3.9.2-use_abort.patch - "${FILESDIR}"/${PN}-3.9.2-wcsinit_crash.patch - "${FILESDIR}"/${PN}-3.9.2-additional_pointer_increase.patch - "${FILESDIR}"/${PN}-3.9.2-ctype_copy_to_wcs.patch - "${FILESDIR}"/${PN}-3.9.2-off-by-one-allocation.patch -) - -src_prepare() { - default - einfo "Copying gentoo autotools files" - local f - for f in "${FILESDIR}"/{configure.ac,wcstools.pc.in,Makefile.am}; do - cp ${f} "${S}"/ || die - done - cp "${FILESDIR}"/Makefile.libwcs.am "${S}"/libwcs/Makefile.am || die - # 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_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 test.fits -} - -src_install() { - default - doman man/man1/* - newdoc libwcs/NEWS NEWS.libwcs - newdoc libwcs/Readme Readme.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" -} diff --git a/sci-astronomy/wcstools/wcstools-3.9.5.ebuild b/sci-astronomy/wcstools/wcstools-3.9.5.ebuild new file mode 100644 index 000000000000..641bebc84fb2 --- /dev/null +++ b/sci-astronomy/wcstools/wcstools-3.9.5.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils autotools + +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 ~amd64-linux ~x86-linux" +IUSE="" + +DOCS=( Readme Programs NEWS ) + +PATCHES=( + "${FILESDIR}"/${PN}-3.9.4-spelling.patch + "${FILESDIR}"/${PN}-3.9.4-haspm.patch + "${FILESDIR}"/${PN}-3.9.4-fix-tests.patch + "${FILESDIR}"/${PN}-3.9.4-compiler-warning.patch +) + +src_prepare() { + default + einfo "Copying gentoo autotools files" + local f + for f in "${FILESDIR}"/{configure.ac,wcstools.pc.in,Makefile.am}; do + cp ${f} "${S}"/ || die + done + cp "${FILESDIR}"/Makefile.libwcs.am "${S}"/libwcs/Makefile.am || die + # 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_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 test.fits +} + +src_install() { + default + doman man/man1/* + newdoc libwcs/NEWS NEWS.libwcs + newdoc libwcs/Readme Readme.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" +} -- cgit v1.2.3-65-gdbad