diff options
author | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2006-10-12 17:25:39 +0000 |
---|---|---|
committer | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2006-10-12 17:25:39 +0000 |
commit | e0ed2461bae494c5062f43cc11d1be483d9d13fc (patch) | |
tree | 654b59a8b6166158383def8a003687f6e0921674 | |
parent | imaxima-0.95 version bump (diff) | |
download | sci-e0ed2461bae494c5062f43cc11d1be483d9d13fc.tar.gz sci-e0ed2461bae494c5062f43cc11d1be483d9d13fc.tar.bz2 sci-e0ed2461bae494c5062f43cc11d1be483d9d13fc.zip |
added wcstools-3.6.5
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@353 32389bae-6d03-0410-99cf-db05cde120eb
-rw-r--r-- | sci-astronomy/wcstools/ChangeLog | 21 | ||||
-rw-r--r-- | sci-astronomy/wcstools/Manifest | 28 | ||||
-rw-r--r-- | sci-astronomy/wcstools/files/digest-wcstools-3.6.5 | 3 | ||||
-rw-r--r-- | sci-astronomy/wcstools/files/wcstools-3.6.5-codewarn.patch | 36 | ||||
-rw-r--r-- | sci-astronomy/wcstools/files/wcstools-3.6.5-edhead.patch | 12 | ||||
-rw-r--r-- | sci-astronomy/wcstools/files/wcstools-autotools.patch | 186 | ||||
-rw-r--r-- | sci-astronomy/wcstools/metadata.xml | 17 | ||||
-rw-r--r-- | sci-astronomy/wcstools/wcstools-3.6.5.ebuild | 34 |
8 files changed, 337 insertions, 0 deletions
diff --git a/sci-astronomy/wcstools/ChangeLog b/sci-astronomy/wcstools/ChangeLog new file mode 100644 index 000000000..2976f0eb9 --- /dev/null +++ b/sci-astronomy/wcstools/ChangeLog @@ -0,0 +1,21 @@ +# ChangeLog for sci-astronomy/wcstools +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*wcstools-3.6.5 (15 Oct 2006) + + 15 Oct 2006; Sebastien Fabbro <seb@ist.utl.pt>; + +metadata.xml, Added longdescription to metadata.xml. + +files/wcstools-autotools.patch : autotoolization + +files/wcstools-codewarn.patch : fix some warnings + +files/wcstools-edhead.patch : fix a pointer problem in edhead + +wcstools-3.6.5.ebuild: Version bump. Some cleaning. + Changed LICENSE, install location for headers to /usr/include/wcs. + Close #151001. Also thanks to Joshua Rich <joshua@mso.anu.edu.au>. + +*wcstools-3.6.2 (02 Oct 2005) + + 02 Oct 2005; Olivier Fisette <ribosome@gentoo.org> +metadata.xml, + +wcstools-3.6.2.ebuild: + Initial import. Ebuild submitted by Sebastien Fabbro <seb@ist.utl.pt> (bug + #65666). diff --git a/sci-astronomy/wcstools/Manifest b/sci-astronomy/wcstools/Manifest new file mode 100644 index 000000000..fc45b1c56 --- /dev/null +++ b/sci-astronomy/wcstools/Manifest @@ -0,0 +1,28 @@ +AUX wcstools-3.6.5-codewarn.patch 1362 RMD160 578a697270bd2e3e9d38b11614357052fc26dfa2 SHA1 aad6ac0317e6efe71b0fccaea666204219a737f3 SHA256 ba17eccab2f31a44230d1621cc36a5f3fa9fad64471a6a8cb1221ee892a3b838 +MD5 4ec6b4e600de55f5f423fc86cf11f0a1 files/wcstools-3.6.5-codewarn.patch 1362 +RMD160 578a697270bd2e3e9d38b11614357052fc26dfa2 files/wcstools-3.6.5-codewarn.patch 1362 +SHA256 ba17eccab2f31a44230d1621cc36a5f3fa9fad64471a6a8cb1221ee892a3b838 files/wcstools-3.6.5-codewarn.patch 1362 +AUX wcstools-3.6.5-edhead.patch 444 RMD160 e6927101e3cb94db64286bf2d611e95357663676 SHA1 354d5b1fc407e633ca7a75b4dfdcb51e1ba9f5c4 SHA256 dd302ee746ca9929c854be4c32c7d4dcd258b1bed5fdef912d148f40f7da7600 +MD5 5b7535e557f6257248c2f6da5edada60 files/wcstools-3.6.5-edhead.patch 444 +RMD160 e6927101e3cb94db64286bf2d611e95357663676 files/wcstools-3.6.5-edhead.patch 444 +SHA256 dd302ee746ca9929c854be4c32c7d4dcd258b1bed5fdef912d148f40f7da7600 files/wcstools-3.6.5-edhead.patch 444 +AUX wcstools-autotools.patch 4677 RMD160 0497faae1ec3fbf1fdd98516c030c8ff3ba961cb SHA1 2254f154e720822296cac18b1c97ec3b5dc6c8ea SHA256 bfb46f43a0d0671418d2caaec9979088b93ef594b09fa1cc3d4f6f579ec96f9a +MD5 fdb190e239d0980eb428963bec5db97f files/wcstools-autotools.patch 4677 +RMD160 0497faae1ec3fbf1fdd98516c030c8ff3ba961cb files/wcstools-autotools.patch 4677 +SHA256 bfb46f43a0d0671418d2caaec9979088b93ef594b09fa1cc3d4f6f579ec96f9a files/wcstools-autotools.patch 4677 +DIST wcstools-3.6.5.tar.gz 717622 RMD160 9e9fff4715487c8ca55d59600d2d6f41b728694f SHA1 dd9d00a691da76e83a5b45eeb530809386d3ca21 SHA256 94cbccdeac9d995223b365f9dd386ff1c3589c676ed1d31b528584e8ab515934 +EBUILD wcstools-3.6.5.ebuild 855 RMD160 73af891fed8f3efc69dfac00817410834d53ad4d SHA1 81914aefcb12bd44aa435861a19d37c428c0253c SHA256 a2aa219ddab5a2f6fa67748818c1e1712fbf088cd2b67e9918431f1425451d59 +MD5 8f9719532371dc5fbb5078beafe0f85d wcstools-3.6.5.ebuild 855 +RMD160 73af891fed8f3efc69dfac00817410834d53ad4d wcstools-3.6.5.ebuild 855 +SHA256 a2aa219ddab5a2f6fa67748818c1e1712fbf088cd2b67e9918431f1425451d59 wcstools-3.6.5.ebuild 855 +MISC ChangeLog 786 RMD160 5f9fb05054d527de433667e8a3a3e2710625a5ed SHA1 120edb7ffbf64ed8ea5e2082bca20040e6d1aaf6 SHA256 e3676de8d8a8a8e24c14ab1c4cc55f92a795cff1245db6c9077f3d4e5367f4e5 +MD5 2bb71e46c492341ed816f12ea011053a ChangeLog 786 +RMD160 5f9fb05054d527de433667e8a3a3e2710625a5ed ChangeLog 786 +SHA256 e3676de8d8a8a8e24c14ab1c4cc55f92a795cff1245db6c9077f3d4e5367f4e5 ChangeLog 786 +MISC metadata.xml 836 RMD160 11845ce5e87aa543e02a24f1fa6929a902763988 SHA1 ab527c2e3bed5ed69deceef021890c426de8c9ef SHA256 846e3df695eff23fcb2329d1890fe7eb82a45cb38b43eff69b534ae385ef82ba +MD5 abdf8f8318158ce4266997ff062b7ee5 metadata.xml 836 +RMD160 11845ce5e87aa543e02a24f1fa6929a902763988 metadata.xml 836 +SHA256 846e3df695eff23fcb2329d1890fe7eb82a45cb38b43eff69b534ae385ef82ba metadata.xml 836 +MD5 919f8c68c42edf5990ff59d1973c293a files/digest-wcstools-3.6.5 244 +RMD160 2db4861f4116238e73cdf9b2594de6d070ce2d89 files/digest-wcstools-3.6.5 244 +SHA256 dbc6cfc8f3a24a42f9021ce55e46fb2db187b897a1a60aba81741a9322c1affe files/digest-wcstools-3.6.5 244 diff --git a/sci-astronomy/wcstools/files/digest-wcstools-3.6.5 b/sci-astronomy/wcstools/files/digest-wcstools-3.6.5 new file mode 100644 index 000000000..797c82fff --- /dev/null +++ b/sci-astronomy/wcstools/files/digest-wcstools-3.6.5 @@ -0,0 +1,3 @@ +MD5 9cd9bbbe1408c2d92728d8f039291fb3 wcstools-3.6.5.tar.gz 717622 +RMD160 9e9fff4715487c8ca55d59600d2d6f41b728694f wcstools-3.6.5.tar.gz 717622 +SHA256 94cbccdeac9d995223b365f9dd386ff1c3589c676ed1d31b528584e8ab515934 wcstools-3.6.5.tar.gz 717622 diff --git a/sci-astronomy/wcstools/files/wcstools-3.6.5-codewarn.patch b/sci-astronomy/wcstools/files/wcstools-3.6.5-codewarn.patch new file mode 100644 index 000000000..4dbdf8001 --- /dev/null +++ b/sci-astronomy/wcstools/files/wcstools-3.6.5-codewarn.patch @@ -0,0 +1,36 @@ +diff -ur wcstools-3.6.5.orig/getdate.c wcstools-3.6.5/getdate.c +--- wcstools-3.6.5.orig/getdate.c 2006-06-22 01:46:49.000000000 +0200 ++++ wcstools-3.6.5/getdate.c 2006-06-23 10:23:36.000000000 +0200 +@@ -382,7 +382,7 @@ + char outform[16]; + char *fitsdate, *newfdate; + char temp[64]; +- char ts0[8]; ++ char ts0[9]; + char *tchar; + int its, its1; + time_t lts; +diff -ur wcstools-3.6.5.orig/libwcs/binread.c wcstools-3.6.5/libwcs/binread.c +--- wcstools-3.6.5.orig/libwcs/binread.c 2006-06-20 22:07:37.000000000 +0200 ++++ wcstools-3.6.5/libwcs/binread.c 2006-06-23 10:24:39.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.5.orig/libwcs/catutil.c wcstools-3.6.5/libwcs/catutil.c +--- wcstools-3.6.5.orig/libwcs/catutil.c 2006-06-20 21:05:14.000000000 +0200 ++++ wcstools-3.6.5/libwcs/catutil.c 2006-06-23 10:29:31.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/files/wcstools-3.6.5-edhead.patch b/sci-astronomy/wcstools/files/wcstools-3.6.5-edhead.patch new file mode 100644 index 000000000..c19139dfb --- /dev/null +++ b/sci-astronomy/wcstools/files/wcstools-3.6.5-edhead.patch @@ -0,0 +1,12 @@ +diff -ur wcstools-3.6.5.orig/edhead.c wcstools-3.6.5/edhead.c +--- wcstools-3.6.5.orig/edhead.c 2006-06-22 01:45:55.000000000 +0200 ++++ wcstools-3.6.5/edhead.c 2006-08-30 23:31:26.000000000 +0200 +@@ -140,7 +140,7 @@ + char headline[160]; + char newname[128]; + char space; +- char *temphead = "/tmp/edheadXXXXXX"; ++ char temphead[] = "/tmp/edheadXXXXXX"; + FILE *fd; + char *ext, *fname, *imext, *imext1; + char *editcom; diff --git a/sci-astronomy/wcstools/files/wcstools-autotools.patch b/sci-astronomy/wcstools/files/wcstools-autotools.patch new file mode 100644 index 000000000..692d22122 --- /dev/null +++ b/sci-astronomy/wcstools/files/wcstools-autotools.patch @@ -0,0 +1,186 @@ +diff -Nur wcstools-3.6.5/configure.ac wcstools-3.6.5.new/configure.ac +--- wcstools-3.6.5/configure.ac 1970-01-01 01:00:00.000000000 +0100 ++++ wcstools-3.6.5.new/configure.ac 2006-10-12 18:14:54.000000000 +0100 +@@ -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.5/libwcs/Makefile.am wcstools-3.6.5.new/libwcs/Makefile.am +--- wcstools-3.6.5/libwcs/Makefile.am 1970-01-01 01:00:00.000000000 +0100 ++++ wcstools-3.6.5.new/libwcs/Makefile.am 2006-10-12 18:15:21.000000000 +0100 +@@ -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.5/Makefile.am wcstools-3.6.5.new/Makefile.am +--- wcstools-3.6.5/Makefile.am 1970-01-01 01:00:00.000000000 +0100 ++++ wcstools-3.6.5.new/Makefile.am 2006-10-12 18:15:07.000000000 +0100 +@@ -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/metadata.xml b/sci-astronomy/wcstools/metadata.xml new file mode 100644 index 000000000..8313194c0 --- /dev/null +++ b/sci-astronomy/wcstools/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<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. This software is all written +in very portable C, so it should compile and run on any computer with +a C compiler. +</longdescription> +</pkgmetadata> diff --git a/sci-astronomy/wcstools/wcstools-3.6.5.ebuild b/sci-astronomy/wcstools/wcstools-3.6.5.ebuild new file mode 100644 index 000000000..48e86593c --- /dev/null +++ b/sci-astronomy/wcstools/wcstools-3.6.5.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils toolchain-funcs 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 a pointer problem in edhead + epatch "${FILESDIR}"/${P}-edhead.patch + # fixed some warnings + epatch "${FILESDIR}"/${P}-codewarn.patch + # autotoolization + epatch "${FILESDIR}"/${PN}-autotools.patch + cd "${S}" + eautoreconf +} + +src_install () { + make DESTDIR=${D} install || die "make install failed" + doman Man/man1/* + dodoc Readme Programs NEWS + docinto libwcs + dodoc libwcs/{Readme,NEWS} +} |