summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2007-02-03 17:06:54 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2007-02-03 17:06:54 +0000
commit04e2acf3ccf3abb093ca884d21728f650fb62d1e (patch)
tree59a446bf96c4e3ae09381427de174133ef69452c /sci-astronomy
parentcelestia-1.4.1-r1: fixed bugs #128218, #130091, #142786, and #162777 (diff)
downloadgentoo-2-04e2acf3ccf3abb093ca884d21728f650fb62d1e.tar.gz
gentoo-2-04e2acf3ccf3abb093ca884d21728f650fb62d1e.tar.bz2
gentoo-2-04e2acf3ccf3abb093ca884d21728f650fb62d1e.zip
wcstools-3.6.6 version update+autoolization
(Portage version: 2.1.1-r2)
Diffstat (limited to 'sci-astronomy')
-rw-r--r--sci-astronomy/wcstools/ChangeLog13
-rw-r--r--sci-astronomy/wcstools/files/digest-wcstools-3.6.22
-rw-r--r--sci-astronomy/wcstools/files/digest-wcstools-3.6.63
-rw-r--r--sci-astronomy/wcstools/files/wcstools-3.6.6-autotools.patch186
-rw-r--r--sci-astronomy/wcstools/files/wcstools-3.6.6-codewarn.patch35
-rw-r--r--sci-astronomy/wcstools/metadata.xml12
-rw-r--r--sci-astronomy/wcstools/wcstools-3.6.6.ebuild43
7 files changed, 291 insertions, 3 deletions
diff --git a/sci-astronomy/wcstools/ChangeLog b/sci-astronomy/wcstools/ChangeLog
index fe5789773447..875e8eb5d82f 100644
--- a/sci-astronomy/wcstools/ChangeLog
+++ b/sci-astronomy/wcstools/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for sci-astronomy/wcstools
-# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/wcstools/ChangeLog,v 1.1 2005/10/02 15:22:55 ribosome Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/wcstools/ChangeLog,v 1.2 2007/02/03 17:06:54 bicatali Exp $
+
+*wcstools-3.6.6 (02 Feb 2007)
+
+ 02 Feb 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/wcstools-3.6.6-autotools.patch,
+ +files/wcstools-3.6.6-codewarn.patch, metadata.xml,
+ +wcstools-3.6.6.ebuild:
+ Version bump. Changed LICENSE, headers location and autotoolization.
+ Close #151001. Also thanks to Joshua Rich <joshua@mso.anu.edu.au>.
*wcstools-3.6.2 (02 Oct 2005)
diff --git a/sci-astronomy/wcstools/files/digest-wcstools-3.6.2 b/sci-astronomy/wcstools/files/digest-wcstools-3.6.2
index aa3071fa2e22..44bd1e3b0f69 100644
--- a/sci-astronomy/wcstools/files/digest-wcstools-3.6.2
+++ b/sci-astronomy/wcstools/files/digest-wcstools-3.6.2
@@ -1 +1,3 @@
MD5 8f04849e456df59dc51e7faeeb6e45f4 wcstools-3.6.2.tar.gz 636003
+RMD160 1afdfb238bda4bf02c24191a99b7d538e51ddf77 wcstools-3.6.2.tar.gz 636003
+SHA256 956c867ed6a6074249702f3a80256582b2e20b0a41eb37a0d8b59e0d073cd3d0 wcstools-3.6.2.tar.gz 636003
diff --git a/sci-astronomy/wcstools/files/digest-wcstools-3.6.6 b/sci-astronomy/wcstools/files/digest-wcstools-3.6.6
new file mode 100644
index 000000000000..bb2912a52b92
--- /dev/null
+++ b/sci-astronomy/wcstools/files/digest-wcstools-3.6.6
@@ -0,0 +1,3 @@
+MD5 750f0829c699e20d58484ae989c00119 wcstools-3.6.6.tar.gz 770420
+RMD160 0cdce66766ca7042b6abfc54166c73a57152dce6 wcstools-3.6.6.tar.gz 770420
+SHA256 e6aaea1c3a1243091269edfc8c1cd7991bc2e7707f6f9015ee4e750b3ede1a33 wcstools-3.6.6.tar.gz 770420
diff --git a/sci-astronomy/wcstools/files/wcstools-3.6.6-autotools.patch b/sci-astronomy/wcstools/files/wcstools-3.6.6-autotools.patch
new file mode 100644
index 000000000000..e74c24c70728
--- /dev/null
+++ b/sci-astronomy/wcstools/files/wcstools-3.6.6-autotools.patch
@@ -0,0 +1,186 @@
+diff -Nur wcstools-3.6.6/configure.ac wcstools-3.6.6.new/configure.ac
+--- wcstools-3.6.6/configure.ac 1970-01-01 01:00:00.000000000 +0100
++++ wcstools-3.6.6.new/configure.ac 2006-12-29 15:55:28.000000000 +0000
+@@ -0,0 +1,11 @@
++AC_PREREQ([2.57])
++AC_INIT(wcstools, 3.6.5, [http://tdc-www.harvard.edu/wcstools/])
++AM_INIT_AUTOMAKE([dist-bzip2])
++AM_CONFIG_HEADER(config.h)
++
++AC_PROG_CC
++AC_PROG_LIBTOOL
++AC_C_CONST
++AC_CHECK_LIB(m, sin)
++AC_CONFIG_FILES([libwcs/Makefile Makefile])
++AC_OUTPUT
+diff -Nur wcstools-3.6.6/libwcs/Makefile.am wcstools-3.6.6.new/libwcs/Makefile.am
+--- wcstools-3.6.6/libwcs/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ wcstools-3.6.6.new/libwcs/Makefile.am 2006-12-29 15:56:04.000000000 +0000
+@@ -0,0 +1,14 @@
++lib_LTLIBRARIES = libwcs.la
++wcsdir = $(pkgincludedir)/wcs
++wcs_HEADERS = \
++ wcscat.h wcslib.h wcs.h lwcs.h fitshead.h fitsfile.h imio.h
++libwcs_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 \
++ imrotate.c fitsfile.c imhfile.c \
++ hget.c hput.c imio.c dateutil.c imutil.c \
++ worldpos.c tnxpos.c dsspos.c platepos.c \
++ sortstar.c platefit.c iget.c fileutil.c polfit.c \
++ wcslib.c lin.c cel.c proj.c sph.c wcstrig.c distort.c
+diff -Nur wcstools-3.6.6/Makefile.am wcstools-3.6.6.new/Makefile.am
+--- wcstools-3.6.6/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ wcstools-3.6.6.new/Makefile.am 2006-12-29 15:55:40.000000000 +0000
+@@ -0,0 +1,149 @@
++AUTOMAKE_OPTIONS = foreign no-dependencies
++SUBDIRS = libwcs
++INCLUDES = -I$(top_srcdir)/libwcs
++
++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 remap getcol getdate imfill imsmooth imresize \
++ fileroot filename filext char2sp sp2char crlf isnum isrange simpos
++
++WCSLIBS = -L$(top_srcdir)/libwcs -lwcs
++
++addpix_SOURCES = addpix.c
++addpix_LDADD = $(WCSLIBS)
++
++char2sp_SOURCES = char2sp.c
++char2sp_LDADD = $(WCSLIBS)
++
++conpix_SOURCES = conpix.c
++conpix_LDADD = $(WCSLIBS)
++
++cphead_SOURCES = cphead.c
++cphead_LDADD = $(WCSLIBS)
++
++crlf_SOURCES = crlf.c
++
++delwcs_SOURCES = delwcs.c
++delwcs_LDADD = $(WCSLIBS)
++
++delhead_SOURCES = delhead.c
++delhead_LDADD = $(WCSLIBS)
++
++edhead_SOURCES = edhead.c
++edhead_LDADD = $(WCSLIBS)
++
++filename_SOURCES = filename.c
++
++fileroot_SOURCES = fileroot.c
++
++filext_SOURCES = filext.c
++
++fixpix_SOURCES = fixpix.c
++fixpix_LDADD = $(WCSLIBS)
++
++getcol_SOURCES = getcol.c
++getcol_LDADD = $(WCSLIBS)
++
++getdate_SOURCES = getdate.c
++getdate_LDADD = $(WCSLIBS)
++
++gethead_SOURCES = gethead.c
++gethead_LDADD = $(WCSLIBS)
++
++getfits_SOURCES = getfits.c
++getfits_LDADD = $(WCSLIBS)
++
++getpix_SOURCES = getpix.c
++getpix_LDADD = $(WCSLIBS)
++
++gettab_SOURCES = gettab.c
++gettab_LDADD = $(WCSLIBS)
++
++i2f_SOURCES = i2f.c
++i2f_LDADD = $(WCSLIBS)
++
++imcat_SOURCES = imcat.c
++imcat_LDADD = $(WCSLIBS)
++
++imfill_SOURCES = imfill.c
++imfill_LDADD = $(WCSLIBS)
++
++imresize_SOURCES = imresize.c
++imresize_LDADD = $(WCSLIBS)
++
++imsmooth_SOURCES = imsmooth.c
++imsmooth_LDADD = $(WCSLIBS)
++
++imhead_SOURCES = imhead.c
++imhead_LDADD = $(WCSLIBS)
++
++imrot_SOURCES = imrot.c
++imrot_LDADD = $(WCSLIBS)
++
++imsize_SOURCES = imsize.c
++imsize_LDADD = $(WCSLIBS)
++
++imstack_SOURCES = imstack.c
++imstack_LDADD = $(WCSLIBS)
++
++imextract_SOURCES = imextract.c
++imextract_LDADD = $(WCSLIBS)
++
++imstar_SOURCES = imstar.c
++imstar_LDADD = $(WCSLIBS)
++
++isnum_SOURCES = isnum.c
++isnum_LDADD = $(WCSLIBS)
++
++isrange_SOURCES = isrange.c
++
++imwcs_SOURCES = imwcs.c
++imwcs_LDADD = $(WCSLIBS)
++
++immatch_SOURCES = immatch.c
++immatch_LDADD = $(WCSLIBS)
++
++keyhead_SOURCES = keyhead.c
++keyhead_LDADD = $(WCSLIBS)
++
++newfits_SOURCES = newfits.c
++newfits_LDADD = $(WCSLIBS)
++
++remap_SOURCES = remap.c
++remap_LDADD = $(WCSLIBS)
++
++scat_SOURCES = scat.c
++scat_LDADD = $(WCSLIBS)
++
++sethead_SOURCES = sethead.c
++sethead_LDADD = $(WCSLIBS)
++
++setpix_SOURCES = setpix.c
++setpix_LDADD = $(WCSLIBS)
++
++sky2xy_SOURCES = sky2xy.c
++sky2xy_LDADD = $(WCSLIBS)
++
++skycoor_SOURCES = skycoor.c
++skycoor_LDADD = $(WCSLIBS)
++
++sp2char_SOURCES = sp2char.c
++sp2char_LDADD = $(WCSLIBS)
++
++subpix_SOURCES = subpix.c
++subpix_LDADD = $(WCSLIBS)
++
++sumpix_SOURCES = sumpix.c
++sumpix_LDADD = $(WCSLIBS)
++
++wcshead_SOURCES = wcshead.c
++wcshead_LDADD = $(WCSLIBS)
++
++xy2sky_SOURCES = xy2sky.c
++xy2sky_LDADD = $(WCSLIBS)
++
++simpos_SOURCES = simpos.c
++simpos_LDADD = $(WCSLIBS)
++
diff --git a/sci-astronomy/wcstools/files/wcstools-3.6.6-codewarn.patch b/sci-astronomy/wcstools/files/wcstools-3.6.6-codewarn.patch
new file mode 100644
index 000000000000..a619358379aa
--- /dev/null
+++ b/sci-astronomy/wcstools/files/wcstools-3.6.6-codewarn.patch
@@ -0,0 +1,35 @@
++++ wcstools-3.6.6/getdate.c 2006-10-10 12:07:22.000000000 +0200
+--- wcstools-3.6.6.orig/getdate.c 2006-10-10 12:06:11.000000000 +0200
+@@ -413,7 +413,7 @@
+ char *fitsdate, *newfdate, *stdate;
+ char temp[64];
+ char fyear[16];
+- char ts0[8];
++ char ts0[9];
+ char *tchar;
+ int its, its1;
+ time_t lts;
+diff -ur wcstools-3.6.6.orig/libwcs/binread.c wcstools-3.6.6/libwcs/binread.c
+--- wcstools-3.6.6.orig/libwcs/binread.c 2006-10-10 12:10:47.000000000 +0200
++++ wcstools-3.6.6/libwcs/binread.c 2006-10-10 12:11:22.000000000 +0200
+@@ -1358,7 +1358,7 @@
+ for (i = 0; i < nmag; i++) {
+ moveb (sc->catline, (char *) st->mag, 2, sc->entmag[0]+(i*2), i*2);
+ if (sc->byteswapped)
+- binswap2 (&st->mag[i], 2);
++ binswap2 ((char*)&st->mag[i], 2);
+ st->xmag[i] = 0.01 * (double) st->mag[i];
+ }
+ }
+diff -ur wcstools-3.6.6.orig/libwcs/catutil.c wcstools-3.6.6/libwcs/catutil.c
+--- wcstools-3.6.6.orig/libwcs/catutil.c 2006-10-10 12:10:47.000000000 +0200
++++ wcstools-3.6.6/libwcs/catutil.c 2006-10-10 12:12:08.000000000 +0200
+@@ -722,7 +722,7 @@
+ lname = 0;
+ else
+ lname = strlen (refcatname);
+- catname = (char *)calloc (lname + 16, 1);
++ catname = (char *)calloc (lname + 37, 1);
+ if (lname > 0)
+ sprintf (catname, "%s sources", refcatname);
+ else
diff --git a/sci-astronomy/wcstools/metadata.xml b/sci-astronomy/wcstools/metadata.xml
index d369d068ffb8..5645b531bb25 100644
--- a/sci-astronomy/wcstools/metadata.xml
+++ b/sci-astronomy/wcstools/metadata.xml
@@ -1,5 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>sci</herd>
+<herd>sci</herd>
+<longdescription lang="en">
+Astronomers often need to relate positions on an image of the sky to
+positions on the real sky to identify catalogued objects in images,
+tell other people where to look to find an identified object, or to
+compute motions of planets, satellites, asteroids, or comets. WCSTools
+is a package of programs and a library of utility subroutines for
+setting and using the world coordinate systems (WCS) in the headers of
+the most common astronomical image formats, FITS and IRAF .imh, to
+relate image pixels to sky coordinates.
+</longdescription>
</pkgmetadata>
diff --git a/sci-astronomy/wcstools/wcstools-3.6.6.ebuild b/sci-astronomy/wcstools/wcstools-3.6.6.ebuild
new file mode 100644
index 000000000000..e16fdfcaab98
--- /dev/null
+++ b/sci-astronomy/wcstools/wcstools-3.6.6.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/wcstools/wcstools-3.6.6.ebuild,v 1.1 2007/02/03 17:06:54 bicatali Exp $
+
+inherit eutils autotools
+
+DESCRIPTION="Astronomy Library to handle World Coordinate System for 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"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ # fixed some warnings
+ epatch "${FILESDIR}"/${P}-codewarn.patch
+ # autotoolization
+ epatch "${FILESDIR}"/${P}-autotools.patch
+ cd "${S}"
+ eautoreconf
+}
+
+src_test() {
+ cd "${S}"
+ ebegin "Testing various wcstools programs"
+ ./newfits -a 10 -j 248 41 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
+ eend
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ doman Man/man1/*
+ dodoc Readme Programs NEWS
+ docinto libwcs
+ dodoc libwcs/{Readme,NEWS}
+}