summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2011-04-10 15:10:40 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2011-04-10 15:10:40 +0000
commit91a53f9004775ff86c94caf89daaad4127cf97bc (patch)
tree11d9f5c84a6b9b27fa9e27cfac9d0ff8372e0d93
parentBump to EAPI4, respect LDFLAGS, CXX, cleanup (diff)
downloadgentoo-2-91a53f9004775ff86c94caf89daaad4127cf97bc.tar.gz
gentoo-2-91a53f9004775ff86c94caf89daaad4127cf97bc.tar.bz2
gentoo-2-91a53f9004775ff86c94caf89daaad4127cf97bc.zip
Version bump
(Portage version: 2.1.9.45/cvs/Linux x86_64)
-rw-r--r--sci-astronomy/wcstools/ChangeLog10
-rw-r--r--sci-astronomy/wcstools/files/wcstools-3.8.2-autotools.patch142
-rw-r--r--sci-astronomy/wcstools/wcstools-3.8.2.ebuild57
3 files changed, 207 insertions, 2 deletions
diff --git a/sci-astronomy/wcstools/ChangeLog b/sci-astronomy/wcstools/ChangeLog
index 06f4604b5d91..9dedfbff8112 100644
--- a/sci-astronomy/wcstools/ChangeLog
+++ b/sci-astronomy/wcstools/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-astronomy/wcstools
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/wcstools/ChangeLog,v 1.18 2010/09/10 10:25:59 xarthisius Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/wcstools/ChangeLog,v 1.19 2011/04/10 15:10:40 bicatali Exp $
+
+*wcstools-3.8.2 (10 Apr 2011)
+
+ 10 Apr 2011; Sébastien Fabbro <bicatali@gentoo.org> +wcstools-3.8.2.ebuild,
+ +files/wcstools-3.8.2-autotools.patch:
+ Version bump
*wcstools-3.8.1-r1 (10 Sep 2010)
diff --git a/sci-astronomy/wcstools/files/wcstools-3.8.2-autotools.patch b/sci-astronomy/wcstools/files/wcstools-3.8.2-autotools.patch
new file mode 100644
index 000000000000..b0105ebc1e29
--- /dev/null
+++ b/sci-astronomy/wcstools/files/wcstools-3.8.2-autotools.patch
@@ -0,0 +1,142 @@
+--- configure.ac 1970-01-01 01:00:00.000000000 +0100
++++ configure.ac 2011-04-10 15:54:07.000000000 +0100
+@@ -0,0 +1,11 @@
++AC_PREREQ([2.59])
++AC_INIT(wcstools, 3.8.2 , [http://tdc-www.harvard.edu/wcstools/])
++AM_INIT_AUTOMAKE([foreign])
++AM_CONFIG_HEADER(config.h)
++
++AC_PROG_CC
++AC_PROG_LIBTOOL
++AC_C_CONST
++AC_CHECK_LIB(m, sin)
++AC_CONFIG_FILES([libwcs/Makefile libned/Makefile Makefile wcstools.pc])
++AC_OUTPUT
+--- libned/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ libned/Makefile.am 2011-04-10 15:53:44.000000000 +0100
+@@ -0,0 +1,5 @@
++lib_LTLIBRARIES = libned.la
++noinst_HEADERS = nedc.h ned_client.h
++libned_la_SOURCES = \
++ ned_cli.c ned_cif.c ned_err.c ned_sk.c
++EXTRA_DIST = README
+--- libwcs/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ libwcs/Makefile.am 2011-04-10 16:00:15.000000000 +0100
+@@ -0,0 +1,17 @@
++lib_LTLIBRARIES = libwcstools.la
++libwcstools_la_SOURCES = \
++ imsetwcs.c imgetwcs.c matchstar.c findstar.c daoread.c wcscon.c \
++ fitswcs.c wcsinit.c wcs.c ty2read.c webread.c tmcread.c \
++ gscread.c gsc2read.c ujcread.c uacread.c ubcread.c ucacread.c \
++ sdssread.c tabread.c binread.c ctgread.c actread.c catutil.c \
++ skybotread.c imrotate.c fitsfile.c imhfile.c \
++ hget.c hput.c imio.c dateutil.c imutil.c \
++ worldpos.c tnxpos.c zpxpos.c dsspos.c platepos.c \
++ sortstar.c platefit.c iget.c fileutil.c \
++ wcslib.c lin.c cel.c proj.c sph.c wcstrig.c distort.c poly.c
++
++wcsdir = $(includedir)/wcs
++wcs_HEADERS = \
++ wcscat.h wcslib.h wcs.h lwcs.h fitshead.h fitsfile.h imio.h
++
++noinst_HEADERS = fitsfile1.h wcscat1.h
+--- Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ Makefile.am 2011-04-10 15:55:47.000000000 +0100
+@@ -0,0 +1,81 @@
++SUBDIRS = libwcs libned
++INCLUDES = -I$(top_srcdir)/libwcs
++
++pkgconfigdir = $(libdir)/pkgconfig
++pkgconfig_DATA = wcstools.pc
++
++bin_SCRIPTS = wcstools
++
++EXTRA_DIST = wcstools COPYING Readme NEWS Programs
++
++bin_PROGRAMS = \
++ cphead delwcs delhead edhead fixpix gethead i2f imcat imhead immatch \
++ imrot imsize imstar imwcs scat sethead addpix getpix setpix sky2xy \
++ keyhead skycoor subpix xy2sky wcshead conpix gettab newfits getfits \
++ imstack imextract sumpix wcsremap getcol wcsgetdate imfill imsmooth imresize \
++ fileroot filename filext char2sp sp2char wcscrlf isnum isrange isfits \
++ simpos nedpos bincat nedname
++
++# these ones don't need libwcs
++wcscrlf_SOURCES = crlf.c
++filename_SOURCES = filename.c
++filedir_SOURCES = filedir.c
++fileroot_SOURCES = fileroot.c
++filext_SOURCES = filext.c
++isrange_SOURCES = isrange.c
++
++LDADD = $(top_builddir)/libwcs/libwcstools.la
++
++bincat_SOURCES = bincat.c
++getcol_SOURCES = getcol.c
++wcsgetdate_SOURCES = getdate.c
++gethead_SOURCES = gethead.c
++getfits_SOURCES = getfits.c
++getpix_SOURCES = getpix.c
++gettab_SOURCES = gettab.c
++imcat_SOURCES = imcat.c
++imsize_SOURCES = imsize.c
++imstar_SOURCES = imstar.c
++imwcs_SOURCES = imwcs.c
++immatch_SOURCES = immatch.c
++scat_SOURCES = scat.c
++setpix_SOURCES = setpix.c
++skycoor_SOURCES = skycoor.c
++sumpix_SOURCES = sumpix.c
++xy2sky_SOURCES = xy2sky.c
++simpos_SOURCES = simpos.c
++
++addpix_SOURCES = addpix.c
++char2sp_SOURCES = char2sp.c
++conpix_SOURCES = conpix.c
++cphead_SOURCES = cphead.c
++delwcs_SOURCES = delwcs.c
++delhead_SOURCES = delhead.c
++edhead_SOURCES = edhead.c
++fixpix_SOURCES = fixpix.c
++i2f_SOURCES = i2f.c
++imfill_SOURCES = imfill.c
++imresize_SOURCES = imresize.c
++imsmooth_SOURCES = imsmooth.c
++imhead_SOURCES = imhead.c
++imrot_SOURCES = imrot.c
++imstack_SOURCES = imstack.c
++imextract_SOURCES = imextract.c
++isnum_SOURCES = isnum.c
++keyhead_SOURCES = keyhead.c
++newfits_SOURCES = newfits.c
++wcsremap_SOURCES = remap.c
++sethead_SOURCES = sethead.c
++sky2xy_SOURCES = sky2xy.c
++sp2char_SOURCES = sp2char.c
++subpix_SOURCES = subpix.c
++wcshead_SOURCES = wcshead.c
++
++nedname_SOURCES = nedname.c
++nedname_LDADD = \
++ $(top_builddir)/libned/libned.la \
++ $(top_builddir)/libwcs/libwcstools.la
++nedpos_SOURCES = nedpos.c
++nedpos_LDADD = \
++ $(top_builddir)/libned/libned.la \
++ $(top_builddir)/libwcs/libwcstools.la
+--- wcstools.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ wcstools.pc.in 2011-04-10 15:53:44.000000000 +0100
+@@ -0,0 +1,13 @@
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++libdir=@libdir@
++includedir=@includedir@
++
++Name: @PACKAGE_NAME@
++Description: World Coordinate System Library and Tools
++Version: @PACKAGE_VERSION@
++URL: http://tdc-www.harvard.edu/wcstools/
++Libs: -L${libdir} -lwcstools
++Libs.private: -lm
++Cflags: -I${includedir}/wcs
++
diff --git a/sci-astronomy/wcstools/wcstools-3.8.2.ebuild b/sci-astronomy/wcstools/wcstools-3.8.2.ebuild
new file mode 100644
index 000000000000..7fd372eb4e8e
--- /dev/null
+++ b/sci-astronomy/wcstools/wcstools-3.8.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/wcstools/wcstools-3.8.2.ebuild,v 1.1 2011/04/10 15:10:40 bicatali Exp $
+
+EAPI=2
+inherit eutils autotools
+
+DESCRIPTION="World Coordinate System library for astronomical FITS images"
+HOMEPAGE="http://tdc-www.harvard.edu/software/wcstools"
+SRC_URI="http://tdc-www.harvard.edu/software/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-3.8.2-autotools.patch \
+ "${FILESDIR}"/${PN}-3.8.1-format.patch \
+ "${FILESDIR}"/${PN}-3.8.1-invalid_free.patch \
+ "${FILESDIR}"/${PN}-3.8.1-overflows.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.7.x/${PV}/" \
+ 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.000" ]] \
+ || die "test gethead failed"
+ rm -f test.fits
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ doman Man/man1/* || die
+ dodoc Readme Programs NEWS libned/NED_client || die
+ newdoc libwcs/Readme Readme.libwcs || die
+ newdoc libwcs/NEWS NEWS.libwcs || die
+}
+
+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"
+}