diff options
author | 2016-02-09 01:24:00 +0000 | |
---|---|---|
committer | 2016-02-09 01:24:00 +0000 | |
commit | e22f94390373f7a3142a53c965f93a5d5bad1ade (patch) | |
tree | 8745095d04f4a59c2ae89228c7b059b286088c5b | |
parent | sci-astronomy/wcslib: Version bump (diff) | |
download | bicatali-e22f94390373f7a3142a53c965f93a5d5bad1ade.tar.gz bicatali-e22f94390373f7a3142a53c965f93a5d5bad1ade.tar.bz2 bicatali-e22f94390373f7a3142a53c965f93a5d5bad1ade.zip |
sci-astronomy/wcstools: Version bump
-rw-r--r-- | sci-astronomy/wcstools/Manifest | 1 | ||||
-rw-r--r-- | sci-astronomy/wcstools/files/Makefile.am | 73 | ||||
-rw-r--r-- | sci-astronomy/wcstools/files/Makefile.libwcs.am | 17 | ||||
-rw-r--r-- | sci-astronomy/wcstools/files/configure.ac | 9 | ||||
-rw-r--r-- | sci-astronomy/wcstools/files/wcstools-3.9.2-RASortStars.patch | 14 | ||||
-rw-r--r-- | sci-astronomy/wcstools/files/wcstools-3.9.2-compiler_warnings.patch | 13 | ||||
-rw-r--r-- | sci-astronomy/wcstools/files/wcstools-3.9.2-manpages.patch | 658 | ||||
-rw-r--r-- | sci-astronomy/wcstools/files/wcstools-3.9.2-mayhem.patch | 69 | ||||
-rw-r--r-- | sci-astronomy/wcstools/files/wcstools-3.9.2-spelling.patch | 69 | ||||
-rw-r--r-- | sci-astronomy/wcstools/files/wcstools-3.9.2-sprintf.patch | 36 | ||||
-rw-r--r-- | sci-astronomy/wcstools/files/wcstools-3.9.2-use_abort.patch | 14 | ||||
-rw-r--r-- | sci-astronomy/wcstools/files/wcstools-3.9.2-wcsinit_crash.patch | 20 | ||||
-rw-r--r-- | sci-astronomy/wcstools/files/wcstools.pc.in | 13 | ||||
-rw-r--r-- | sci-astronomy/wcstools/metadata.xml | 20 | ||||
-rw-r--r-- | sci-astronomy/wcstools/wcstools-3.9.2.ebuild | 74 |
15 files changed, 1100 insertions, 0 deletions
diff --git a/sci-astronomy/wcstools/Manifest b/sci-astronomy/wcstools/Manifest new file mode 100644 index 0000000..7c408e4 --- /dev/null +++ b/sci-astronomy/wcstools/Manifest @@ -0,0 +1 @@ +DIST wcstools-3.9.2.tar.gz 8523655 SHA256 481fe357cf755426fb8e25f4f890e827cce5de657a4e5044d4e31ce27bef1c8b SHA512 b9030cdcaf3f87ab761362a2b8c4a76557694ec4e683371a05e8d58823179d320a2859e883c4ca2c3d65d5adb70ad1ac859587f4c210cd315ced26288fbe107a WHIRLPOOL 257e54e5c545a0584c9ff52f2e3298db73f7d1b4e8d71e0621db18aed8f138dbb0093773883351cbb56ea8a35998ec3b0a2b8e7fc5334dc8d2ebb1c3c4410af4 diff --git a/sci-astronomy/wcstools/files/Makefile.am b/sci-astronomy/wcstools/files/Makefile.am new file mode 100644 index 0000000..46abf6d --- /dev/null +++ b/sci-astronomy/wcstools/files/Makefile.am @@ -0,0 +1,73 @@ +SUBDIRS = libwcs +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 \ + isfile simpos bincat + +# 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 +isfile_SOURCES = isfile.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 diff --git a/sci-astronomy/wcstools/files/Makefile.libwcs.am b/sci-astronomy/wcstools/files/Makefile.libwcs.am new file mode 100644 index 0000000..5905aa3 --- /dev/null +++ b/sci-astronomy/wcstools/files/Makefile.libwcs.am @@ -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 diff --git a/sci-astronomy/wcstools/files/configure.ac b/sci-astronomy/wcstools/files/configure.ac new file mode 100644 index 0000000..3a46108 --- /dev/null +++ b/sci-astronomy/wcstools/files/configure.ac @@ -0,0 +1,9 @@ +AC_INIT([wcstools], [3.9.x] , [http://tdc-www.harvard.edu/wcstools/]) +AM_INIT_AUTOMAKE([foreign]) +AC_CONFIG_HEADERS([config.h]) + +AC_PROG_CC +LT_INIT([disable-static]) +AC_CHECK_LIB([m], [sin]) +AC_CONFIG_FILES([libwcs/Makefile Makefile wcstools.pc]) +AC_OUTPUT diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-RASortStars.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-RASortStars.patch new file mode 100644 index 0000000..27a912f --- /dev/null +++ b/sci-astronomy/wcstools/files/wcstools-3.9.2-RASortStars.patch @@ -0,0 +1,14 @@ +Author: Ole Streicher <olebole@debian.org> +Description: Fix uninitialized value for haspm in RASortStars() + This fixes a crash with 'imstar -s'. +--- a/libwcs/sortstar.c ++++ b/libwcs/sortstar.c +@@ -417,6 +417,8 @@ + hasnum = 1; + if (spra != NULL && spdec != NULL) + haspm = 1; ++ else ++ haspm = 0; + if (sx != NULL && sy != NULL) + hasxy = 1; + else diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-compiler_warnings.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-compiler_warnings.patch new file mode 100644 index 0000000..57bb8cb --- /dev/null +++ b/sci-astronomy/wcstools/files/wcstools-3.9.2-compiler_warnings.patch @@ -0,0 +1,13 @@ +Author: Ole Streicher <debian@liska.ath.cx> +Description: Fix some compiler warnings. +--- a/imcat.c ++++ b/imcat.c +@@ -1778,7 +1778,7 @@ + if (refcat == UCAC2 || refcat == UCAC3 || refcat == UCAC4) { + nim = gc[i] / 1000; + nct = gc[i] % 1000; +- sprintf (temp, " ni nc", nim, nct); ++ sprintf (temp, " ni%i nc%i", nim, nct); + strcat (headline, temp); + } + else if (gcset) diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-manpages.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-manpages.patch new file mode 100644 index 0000000..bd9d568 --- /dev/null +++ b/sci-astronomy/wcstools/files/wcstools-3.9.2-manpages.patch @@ -0,0 +1,658 @@ +Author: Ole Streicher <debian@liska.ath.cx> +Description: Fix the names and spelling of manpages to make lintian happy +--- a/man/man1/skycoor.1 ++++ b/man/man1/skycoor.1 +@@ -1,12 +1,12 @@ +-.TH skycoor(1) WCSTools "9 November 2001" ++.TH skycoor 1 WCSTools "9 November 2001" + .SH Name + skycoor \- Convert coordinates + .SH Synopsis +-skycoor [-bdgjv] [-n ndec] ra1 dec1 sys1 ... ran decn sysn ++skycoor [\-bdgjv] [\-n ndec] ra1 dec1 sys1 ... ran decn sysn + .br + or + .br +-skycoor [-vbjg] [-n ndec] @listfile ++skycoor [\-vbjg] [\-n ndec] @listfile + .SH Description + .I skycoor + converts coordinates between the J2000, B1950, and galactic coordinate +--- a/man/man1/sethead.1 ++++ b/man/man1/sethead.1 +@@ -1,8 +1,8 @@ +-.TH sethead(1) WCSTools "6 July 2001" ++.TH sethead 1 WCSTools "6 July 2001" + .SH Name + sethead \- Set FITS or IRAF header keyword values + .SH Synopsis +-sethead [-dknv][r letter] <FITS or IRAF file> kw1=val1 kw2=val2 ... kwn=valuen ++sethead [\-dknv][r letter] <FITS or IRAF file> kw1=val1 kw2=val2 ... kwn=valuen + .SH Description + Set parameters in the header of a FITS or IRAF image. If the keywords do + not already exist, they are added at the end of the header. Values are +--- a/man/man1/keyhead.1 ++++ b/man/man1/keyhead.1 +@@ -1,13 +1,13 @@ +-.TH keyhead(1) WCSTools "6 July 2001" ++.TH keyhead 1 WCSTools "6 July 2001" + .SH Name + keyhead \- Change FITS or IRAF header keyword names + .SH Synopsis +-sethead [-hknv] <FITS or IRAF file> kw1=kw1a kw2=kwd2a ... kwn=kwdna ++keyhead [\-hknv] <FITS or IRAF file> kw1=kw1a kw2=kwd2a ... kwn=kwdna + .SH Description + Change the names of keywords in FITS or IRAF image headers. Each current + image keyword whose entry is to be modified should be followed by an + equal sign and a second keyword, with no intervening spaces. +-If the -r option is used, the value of the second keyword is transfered ++If the \-r option is used, the value of the second keyword is transferred + to that of the first. Otherwise, the name of the first keyword is changed + to the second keyword. + To change keywords in a list of files, substitute @<listfile> for the file +--- a/man/man1/sgsc.1 ++++ b/man/man1/sgsc.1 +@@ -1,15 +1,15 @@ +-.TH sgsc(1) WCS "14 April 1998" ++.TH sgsc 1 WCS "14 April 1998" + .SH Name + sgsc \- Find HST GSC stars in a square on the sky + .SH Synopsis +-sgsc [options] [-b or -j] ra dec ++sgsc [options] [\-b or \-j] ra dec + .SH Description + .I sgsc + is a utility for finding all of the Hubble Space Telescope Guide Star + Catalog objects in a specified region of the sky and listing them with their + sky positions and magnitudes in order of brightness, with the brighter ones + first. +-Output is to standard out, unless the -w flag is set, in ++Output is to standard out, unless the \-w flag is set, in + which case it goes to objectname.gsc or search.gsc. It is somewhat + similar to RGSC, which can search from lists of coordinates but cannot + sort the output. It is a link to scat. +@@ -25,7 +25,7 @@ + Sort by distance from center instead of flux + .TP + .B \-g <class> +-Object class (0=stars 3=galaxies -1=all) ++Object class (0=stars 3=galaxies \-1=all) + .TP + .B \-h + Print heading, else do not +@@ -34,7 +34,7 @@ + Output J2000 (FK5) coordinates around this center + .TP + .B \-m [<bright magnitude>] <faint magnitude> +-Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) ++Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) + .TP + .B \-n <num> + Number of brightest stars to print +--- a/man/man1/setpix.1 ++++ b/man/man1/setpix.1 +@@ -1,8 +1,8 @@ +-.TH setpix(1) WCSTools "6 July 2001" ++.TH setpix 1 WCSTools "6 July 2001" + .SH Name + setpix \- Set FITS or IRAF image values + .SH Synopsis +-setpix [-vn] file.fts [x_range y_range value] [@valuefile] ++setpix [\-vn] file.fts [x_range y_range value] [@valuefile] + .SH Description + Set a specified pixel or range of pixels in a FITS or IRAF image to a + specified value. More than one range of pixels and values may be specified +--- a/man/man1/sky2xy.1 ++++ b/man/man1/sky2xy.1 +@@ -1,12 +1,12 @@ +-.TH sky2xy(1) WCSTools "6 July 2001" ++.TH sky2xy 1 WCSTools "6 July 2001" + .SH Name + sky2xy \- Compute X Y from RA Dec using WCS in FITS and IRAF image files + .SH Synopsis +-sky2xy [-vbjg] file.fts ra1 dec1 ... ran decn ++sky2xy [\-vbjg] file.fts ra1 dec1 ... ran decn + .br + or + .br +-sky2xy [-vbjg] file.fts @listfile ++sky2xy [\-vbjg] file.fts @listfile + .SH Description + .I sky2xy + (pronounced sky-to-X-Y) is a utility for getting the image coordinates of +--- a/man/man1/getcol.1 ++++ b/man/man1/getcol.1 +@@ -1,8 +1,8 @@ +-.TH getcol(1) WCSTools "8 November 2001" ++.TH getcol 1 WCSTools "8 November 2001" + .SH Name + getcol \- Extract specified columns from an ASCII table file + .SH Synopsis +-getcol [-amv][-n num][-r lines][-s num] filename [column number range] ++getcol [\-amv][\-n num][\-r lines][\-s num] filename [column number range] + .SH Description + Extract specified columns from an ASCII table file + +@@ -20,8 +20,8 @@ + .TP + .B field range + Print value of these columns for the number of lines of the table +-specified by the -n argument after the skippiing the number of +-lines specified by the -s argument. A value of 0 causes the ++specified by the \-n argument after the skippiing the number of ++lines specified by the \-s argument. A value of 0 causes the + entire input line to be printed. + .TP + .B \-a +@@ -59,12 +59,12 @@ + .B \-m + Compute the means of all numeric columns selected, printing the mean + on the line following the result (or the line following the sum if +--a is used). Columns with no mean are filled with ___. ++\-a is used). Columns with no mean are filled with ___. + (Added in version 2.6.9) + .TP + .B \-n num + Print selected columns for this many lines. If not specified, all +-lines will be read after the number of lines specified by -s have ++lines will be read after the number of lines specified by \-s have + been skipped. + .TP + .B \-o +--- a/man/man1/imwcs.1 ++++ b/man/man1/imwcs.1 +@@ -1,4 +1,4 @@ +-.TH imwcs(1) WCSTools "30 January 2003" ++.TH imwcs 1 WCSTools "30 January 2003" + .SH Name + imwcs \- Set WCS in FITS and IRAF image files + .SH Synopsis +@@ -47,7 +47,7 @@ + Write FITS output no matter what input + .TP + .B \-g <class> +-Guide Star Catalog class (-1=all,0,3) (default -1) ++Guide Star Catalog class (\-1=all,0,3) (default \-1) + .TP + .B \-h <number> + Change the maximum number of reference stars to match from 25 to +@@ -66,7 +66,7 @@ + Reflect left<->right before rotating and fitting + .TP + .B \-m [<bright magnitude>] <faint magnitude> +-Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) ++Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) + .TP + .B \-n <number> + Number of parameters to fit (1-8, or digit string). The default is 2 (RA+Dec) +@@ -99,7 +99,7 @@ + Offset tolerance in pixels (default 20) + .TP + .B \-u <file> +--u: File of X Y RA Dec assignments for initial WCS ++File of X Y RA Dec assignments for initial WCS + .TP + .B \-v + Verbose listing of processing intermediate results +--- a/man/man1/wcstools.1 ++++ b/man/man1/wcstools.1 +@@ -1,10 +1,10 @@ +-.TH wcstools(1) WCSTools "6 July 2001" ++.TH wcstools 1 WCSTools "6 July 2001" + .SH Name + wcstools \- Programs to access image world coordinate systems and catalogs + .SH Setting an Image World Coordinate System + .TP + imwcs +-Automaticaly find stars in a FITS or IRAF image, match them to HST Guide ++Automatically find stars in a FITS or IRAF image, match them to HST Guide + USNO A or USNO UJ Stars, compute the relation between sky coordinates and + image coordinates, and write in in the image header. [after U of Iowa SETWCS] + .TP +--- a/man/man1/imua2.1 ++++ b/man/man1/imua2.1 +@@ -1,4 +1,4 @@ +-.TH imua2(1) WCS "14 April 1998" ++.TH imua2 1 WCS "14 April 1998" + .SH Name + imua2 \- Find USNO-A2.0 stars in FITS or IRAF image files + .SH Synopsis +@@ -19,7 +19,7 @@ + Output in J2000, optional new image center in J2000 (FK5) RA and Dec + .TP + .B \-m [<bright magnitude>] <faint magnitude> +-Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) ++Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) + .TP + .B \-n <num> + Number of brightest stars to print +@@ -63,7 +63,7 @@ + Output J2000 (FK5) coordinates (optional center) + .TP + .B \-m [<bright magnitude>] <faint magnitude> +-Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) ++Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) + .TP + .B \-n <num> + Number of brightest stars to print +--- a/man/man1/delhead.1 ++++ b/man/man1/delhead.1 +@@ -1,8 +1,8 @@ +-.TH delhead(1) WCSTools "15 July 1999" ++.TH delhead 1 WCSTools "15 July 1999" + .SH Name + delhead \- Set FITS or IRAF header keyword values + .SH Synopsis +-delhead [-nv] <FITS or IRAF file[s]> kw1 kw2 ... kwn ++delhead [\-nv] <FITS or IRAF file[s]> kw1 kw2 ... kwn + .SH Description + Delete keyword entries from the header of FITS or IRAF image[s]. If + a keyword does not already exist, ignore it. To delete keywords in +--- a/man/man1/imusa2.1 ++++ b/man/man1/imusa2.1 +@@ -1,4 +1,4 @@ +-.TH imusa2(1) WCS "14 April 1998" ++.TH imusa2 1 WCS "14 April 1998" + .SH Name + imusa2 \- Find USNO-SA2.0 stars in FITS or IRAF image files + .SH Synopsis +@@ -19,7 +19,7 @@ + Output in J2000, optional new image center in J2000 (FK5) RA and Dec + .TP + .B \-m [<bright magnitude>] <faint magnitude> +-Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) ++Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) + .TP + .B \-n <num> + Number of brightest stars to print +--- a/man/man1/gethead.1 ++++ b/man/man1/gethead.1 +@@ -1,8 +1,8 @@ +-.TH gethead(1) WCSTools "6 July 2001" ++.TH gethead 1 WCSTools "6 July 2001" + .SH Name + gethead \- Print FITS or IRAF header keyword values + .SH Synopsis +-gethead [-hptv] [-d pathname] [-n num] <FITS or IRAF file> kw1 kw2 ... kwn ++gethead [\-hptv] [\-d pathname] [\-n num] <FITS or IRAF file> kw1 kw2 ... kwn + .SH Description + Print values of the specified keywords from the given image header. By + default they are all listed on one line, separated by spaces. The +--- a/man/man1/imcat.1 ++++ b/man/man1/imcat.1 +@@ -1,4 +1,4 @@ +-.TH imcat(1) WCSTools "30 January 2003" ++.TH imcat 1 WCSTools "30 January 2003" + .SH Name + imcat \- List catalog stars in FITS and IRAF image files + .SH Synopsis +@@ -41,13 +41,13 @@ + Add this keyword to output from tab table search + .TP + .B \-m [<bright magnitude>] <faint magnitude> +-Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) ++Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) + .TP + .B \-n <num> + Number of brightest stars to print + .TP + .B \-o <type> +-Set HST Guide Star object class to print (0=stars, 3=nonstars, -1=all, -2=band) ++Set HST Guide Star object class to print (0=stars, 3=nonstars, \-1=all, \-2=band) + .TP + .B \-p <scale> + Initial plate scale in arcsec per pixel (default from file) +@@ -55,9 +55,9 @@ + .B \-q <c|d|o|s|x|v|+> + Write SAOimage region file with this shape, o=circle, s=square, d=diamond, + +=cross, and x=X, with the radius scaled with magnitude unless specified +-with a -r command line entry. v will cause stellar Guide Stars to plot with ++with a \-r command line entry. v will cause stellar Guide Stars to plot with + a + and nonstellar Guide Stars to plot with an x. If character is is preceded +-by p, the size specified by the -r command is assumed to be in pixels, not ++by p, the size specified by the \-r command is assumed to be in pixels, not + arcseconds. A p alone specifies a circle in pixels. + .TP + .B \-r <radius> +@@ -65,7 +65,7 @@ + arcseconds. SAOimage can then read this file, with will have positions and + radii in pixels and plot it over an image. If the radius is specified as + zero, the output radii will scale between 5 and dim/100 over the range of +-magnitudes of sources found in the image area. If the -q option is specified ++magnitudes of sources found in the image area. If the \-q option is specified + with a 'p' in it, this number is assumed to be in pixels instead of arcseconds. + .TP + .B \-s d|m|n|p|r|x|y +--- a/man/man1/scat.1 ++++ b/man/man1/scat.1 +@@ -1,18 +1,18 @@ +-.TH scat(1) WCSTools "30 January 2003" ++.TH scat 1 WCSTools "30 January 2003" + .SH Name + scat \- Find catalog stars in a square or circle on the sky + .SH Synopsis +-scat [options] [-b or -j] ra dec ++scat [options] [\-b or \-j] ra dec + .SH Description + .I scat + is a utility for finding all of the Hubble Space Telescope Guide Star + Catalog (GSC), U.S. Naval Observatory A2.0 (UA2), B1.0 (UB1), SA2.0 (USA2), + or UJ (UJC) Catalogs, or locally catalogued objects in a specified region +-of the sky and listing their sky coordinates to standard output. If the -w ++of the sky and listing their sky coordinates to standard output. If the \-w + flag is set, they are written to a file objectname.catalogname, where objectname +-is given by the argument to -o on the command line, defaulting to "search", +-and catalogname is given by the argument to -c on the command line. The +-catalog defaults to the GSC, if no -c argument is present. scat resembles ++is given by the argument to \-o on the command line, defaulting to "search", ++and catalogname is given by the argument to \-c on the command line. The ++catalog defaults to the GSC, if no \-c argument is present. scat resembles + rgsc(1) and star(1), which can search from lists of coordinates but + cannot sort the output. sgsc, suac, and susac are links to this program.1 + .SH Options +@@ -37,7 +37,7 @@ + Output search center for other programs + .TP + .B \-g <class> +-HST Guide Star Catalog object class (0=stars 3=galaxies -1=all) ++HST Guide Star Catalog object class (0=stars 3=galaxies \-1=all) + .TP + .B \-h + Print search and column heading, else do not +@@ -55,7 +55,7 @@ + Print search center and closest star on one line + .TP + .B \-m [<bright magnitude>] <faint magnitude> +-Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) ++Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) + .TP + .B \-n <num> + Number of brightest stars to print +@@ -67,7 +67,7 @@ + Equinox of output position in fractional years + .TP + .B \-r <radius> +-Halfwidth (-radius if negative) of search area in arcseconds (default 10) ++Halfwidth (\-radius if negative) of search area in arcseconds (default 10) + .TP + .B \-s d|m|n|p|r + Sort by (d)eclination, (m)agnitude, (n)o sort, (p)distance from center, or +@@ -84,10 +84,10 @@ + Verbose listing of processing intermediate results + .TP + .B \-w +-Write output file objectname.catalog or search.catalog if -o is not used. ++Write output file objectname.catalog or search.catalog if \-o is not used. + .TP + .B \-x <type> +-GSC object type (0=stars 3=galaxies -1=all -2=bands) ++GSC object type (0=stars 3=galaxies \-1=all \-2=bands) + .TP + .B \-y <year> + Epoch of output positions in fractional years (for proper motion only) +--- a/man/man1/imsize.1 ++++ b/man/man1/imsize.1 +@@ -1,8 +1,8 @@ +-.TH imsize(1) WCSTools "6 July 2001" ++.TH imsize 1 WCSTools "6 July 2001" + .SH Name + imsize \- Print size of image in WCS and pixels + .SH Synopsis +-imsize [-vcd] [-p scale] [-b ra dec] [-j ra dec] FITS or IRAF file(s) ++imsize [\-vcd] [\-p scale] [\-b ra dec] [\-j ra dec] FITS or IRAF file(s) + .SH Description + .I imsize + is a utility for printing the region covered by an image using the world +--- a/man/man1/imrot.1 ++++ b/man/man1/imrot.1 +@@ -1,4 +1,4 @@ +-.TH imrot(1) WCSTools "6 July 2001" ++.TH imrot 1 WCSTools "6 July 2001" + .SH Name + imrot \- Rotate and/or Reflect FITS and IRAF image files + .SH Synopsis +@@ -26,8 +26,8 @@ + Verbose + .B \-x <num> + Output pixel size in bits (FITS code, default=input) +-Allowed values are 8, 16, 32 for integers, -16 for unsigned integers, and +--32 and -64 for 4- and 8-byte floating point numbers ++Allowed values are 8, 16, 32 for integers, \-16 for unsigned integers, and ++\-32 and \-64 for 4- and 8-byte floating point numbers + + .SH Author + Doug Mink, SAO (dmink@cfa.harvard.edu) +--- a/man/man1/imhead.1 ++++ b/man/man1/imhead.1 +@@ -1,4 +1,4 @@ +-.TH imhead(1) WCSTools "6 July 2001" ++.TH imhead 1 WCSTools "6 July 2001" + .SH Name + imhead \- Print FITS or IRAF image header + .SH Synopsis +--- a/man/man1/susa2.1 ++++ b/man/man1/susa2.1 +@@ -1,13 +1,13 @@ +-.TH susa2(1) WCS "9 June 2000" ++.TH susa2 1 WCS "9 June 2000" + .SH Name +-Find USNO-SA2.0 Catalog stars in a square on the sky ++susa2 \- Find USNO-SA2.0 Catalog stars in a square on the sky + .SH Synopsis +-susac [options] [-b or -j] ra dec ++susac [options] [\-b or \-j] ra dec + .SH Description + .I suac + finds all of the U.S. Naval Observatory SA2.0 Catalog objects in a specified + region of the sky and lists their sky positions and magnitudes in order of +-brightness. Output is to standard out, unless the -w flag is set, in which ++brightness. Output is to standard out, unless the \-w flag is set, in which + case it goes to objectname.uac or search.uac. It is a link to scat. + .SH Options + .B \-a +@@ -21,7 +21,7 @@ + .B \-j <RA> <Dec> + Output J2000 (FK5) coordinates around this center + .B \-m [<bright magnitude>] <faint magnitude> +-Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) ++Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) + .B \-n <num> + Number of brightest stars to print + .B \-o <name> +--- a/man/man1/wcshead.1 ++++ b/man/man1/wcshead.1 +@@ -1,8 +1,8 @@ +-.TH wcshead(1) WCSTools "19 July 2004" ++.TH wcshead 1 WCSTools "19 July 2004" + .SH Name + wcshead \- Print WCS part of FITS or IRAF image header + .SH Synopsis +-wcshead [-hrtvsz] FITS or IRAF file(s) ++wcshead [\-hrtvsz] FITS or IRAF file(s) + .SH Description + .I wcshead + is a utility for printing the world coordinate system information in +--- a/man/man1/delwcs.1 ++++ b/man/man1/delwcs.1 +@@ -1,8 +1,8 @@ +-.TH delwcs(1) WCSTools "6 July 2001" ++.TH delwcs 1 WCSTools "6 July 2001" + .SH Name + delwcs \- Delete WCS in FITS and IRAF image files + .SH Synopsis +-delwcs [-v] FITS or IRAF file(s) ++delwcs [\-v] FITS or IRAF file(s) + .SH Description + Delete WCS keywords "CTYPE1", "CRVAL1", "CDELT1", "CRPIX1", "CROTA1", "CTYPE2", + "CRVAL2", "CDELT2", "CRPIX2", "CROTA2", and "IMWCS" from a fits header. If +--- a/man/man1/imstar.1 ++++ b/man/man1/imstar.1 +@@ -1,4 +1,4 @@ +-.TH imstar(1) WCSTools "6 July 2001" ++.TH imstar 1 WCSTools "6 July 2001" + .SH Name + imstar \- Find stars in FITS and IRAF image files + .SH Synopsis +@@ -7,7 +7,7 @@ + .SH Options + .TP + .B <hh:mm:ss> <dd:mm:ss> [J2000, B1950] +-Coordinates for center (or reference pixel if -x is used). ++Coordinates for center (or reference pixel if \-x is used). + .TP + .B \-a <angle> + Image rotation angle in degrees (default 0). If multiple of 90, rotate +@@ -34,7 +34,7 @@ + .B \-i <num> + Minimum peak value for star in image (<0=-sigma) + Setting this to reject all but 10-15 stars is a good way to speed up the +-star-finding process. If num is less than zero, the minimum peak is -num ++star-finding process. If num is less than zero, the minimum peak is \-num + image pixel standard deviations. Setting this number rejects faint stars + early in the selection process for a significant saving in computing time. + .TP +@@ -45,7 +45,7 @@ + Print each star as it is found for debugging + .TP + .B \-l +-Reflect the image left <-> right before rotating (-a) and searching for stars. ++Reflect the image left <\-> right before rotating (\-a) and searching for stars. + .TP + .B \-m <magnitude> + Magnitude offset +@@ -81,16 +81,16 @@ + .TP + .B \-w + Write output to a file in addition to standard out. +-If DAO format (-o), create the name by adding .dao to the image file name. +-If Starbase format (-t), create the name by adding .tab to the image file name. +-If ASCII format (-f), create the name by adding .stars to the image file name. ++If DAO format (\-o), create the name by adding .dao to the image file name. ++If Starbase format (\-t), create the name by adding .tab to the image file name. ++If ASCII format (\-f), create the name by adding .stars to the image file name. + .TP + .B \-x <X> <Y> + X and Y coordinates of reference pixel (if not in header or image center) + .TP + .B \-z +-Use AIPS classic projection code (for "-SIN", "-TAN", "-ARC", "-NCP", +-"-GLS", "-MER", "-AIT" and "-STG" only) instead of WCSLIB proposed ++Use AIPS classic projection code (for "\-SIN", "\-TAN", "\-ARC", "\-NCP", ++"\-GLS", "\-MER", "\-AIT" and "\-STG" only) instead of WCSLIB proposed + standard projection code. + + .SH Web Page +--- a/man/man1/xy2sky.1 ++++ b/man/man1/xy2sky.1 +@@ -1,12 +1,12 @@ +-.TH xy2sky(1) WCSTools "6 July 2001" ++.TH xy2sky 1 WCSTools "6 July 2001" + .SH Name + xy2sky \- Compute RA Dec from X Y using WCS in FITS and IRAF image files + .SH Synopsis +-xy2sky [-vbjg] [-n ndec] file.fts x1 y1 ... xn yn ++xy2sky [\-vbjg] [\-n ndec] file.fts x1 y1 ... xn yn + .br + or + .br +-xy2sky [-bdjgv] [-n ndec] file.fts @listfile ++xy2sky [\-bdjgv] [\-n ndec] file.fts @listfile + .SH Description + .I xy2sky + (pronounced X-Y-to-sky) is a utility for getting the world coordinates of +@@ -31,7 +31,7 @@ + RA and Dec output in degrees + .TP + .B \-e +-Ouput in ecliptic longitude and latitude in degrees. ++Output in ecliptic longitude and latitude in degrees. + .TP + .B \-f <number> + Set third dimension for 3-D projections such as CSC +@@ -54,7 +54,7 @@ + Number of decimal places in output RA seconds + .TP + .B \-q <year> +-Output equinox if not 2000 (-j) or 1950 (-b) ++Output equinox if not 2000 (\-j) or 1950 (\-b) + .TP + .B \-t + Output as tab-separated table +--- a/man/man1/imgsc.1 ++++ b/man/man1/imgsc.1 +@@ -1,4 +1,4 @@ +-.TH imgsc(1) WCS "14 April 1998" ++.TH imgsc 1 WCS "14 April 1998" + .SH Name + imgsc \- Find HST GSC stars in FITS or IRAF image files + .SH Synopsis +@@ -16,7 +16,7 @@ + Reference catalog (gsc, ujc, or tab table file + .TP + .B \-g <class> +-Guide Star Catalog class (-1=all,0,3 (default -1) ++Guide Star Catalog class (\-1=all,0,3 (default \-1) + .TP + .B \-h + Print heading, else do not +@@ -25,7 +25,7 @@ + Output in J2000, optional new image center in J2000 (FK5) RA and Dec + .TP + .B \-m [<bright magnitude>] <faint magnitude> +-Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) ++Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) + .TP + .B \-n <num> + Number of brightest stars to print +--- a/man/man1/i2f.1 ++++ b/man/man1/i2f.1 +@@ -1,4 +1,4 @@ +-.TH i2f(1) WCSTools "6 July 2001" ++.TH i2f 1 WCSTools "6 July 2001" + .SH Name + i2f \- Write FITS files from IRAF image files + .SH Synopsis +--- a/man/man1/edhead.1 ++++ b/man/man1/edhead.1 +@@ -1,4 +1,4 @@ +-.TH edhead(1) WCSTools "6 July 2001" ++.TH edhead 1 WCSTools "6 July 2001" + .SH Name + edhead \- Edit header of FITS or IRAF image file + .SH Synopsis +--- a/man/man1/sua2.1 ++++ b/man/man1/sua2.1 +@@ -1,13 +1,13 @@ +-.TH sua2(1) WCS "19 November 1999" ++.TH sua2 1 WCS "19 November 1999" + .SH Name +-Find USNO-A2.0 Catalog stars in a square on the sky ++sua2 \- Find USNO-A2.0 Catalog stars in a square on the sky + .SH Synopsis + sua2 [options] ra dec system + .SH Description + .I suac + finds all of the U.S. Naval Observatory A2.0 Catalog objects in a specified + region of the sky and lists their sky positions and magnitudes in order of +-brightness. Output is to standard out, unless the -w flag is set, in which ++brightness. Output is to standard out, unless the \-w flag is set, in which + case it goes to objectname.uac or search.uac. It is a link to scat. + .SH Options + .B \-a +@@ -31,7 +31,7 @@ + .B \-l + Print center and closest star on one line + .B \-m [<bright magnitude>] <faint magnitude> +-Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) ++Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) + .B \-n <num> + Number of brightest stars to print + .B \-o <name> +--- a/man/man1/simpos.1 ++++ b/man/man1/simpos.1 +@@ -1,4 +1,4 @@ +-.TH simpos(1) WCSTools "14 May 2015" ++.TH simpos 1 WCSTools "14 May 2015" + .SH Name + simpos \- Find position of a named object in the sky + .SH Synopsis diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-mayhem.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-mayhem.patch new file mode 100644 index 0000000..694c072 --- /dev/null +++ b/sci-astronomy/wcstools/files/wcstools-3.9.2-mayhem.patch @@ -0,0 +1,69 @@ +Author: Ole Streicher <debian@liska.ath.cx> +Description: Fix several bugs that appear in during the mayhem tests. +Bug: http://bugs.debian.org/715682 +Bug: http://bugs.debian.org/715755 +Bug: http://bugs.debian.org/715905 +Bug: http://bugs.debian.org/715956 +Bug: http://bugs.debian.org/715957 +--- a/getfits.c ++++ b/getfits.c +@@ -108,6 +108,7 @@ + usage ("Right ascension given but no declination"); + else { + strcpy (rastr, *av); ++ ac--; + strcpy (decstr, *++av); + ra0 = str2ra (rastr); + dec0 = str2dec (decstr); +--- a/getpix.c ++++ b/getpix.c +@@ -83,6 +83,7 @@ + char *crange; /* Column range string */ + char *rstr; + char *dstr = NULL; ++ char rastr[32], decstr[32]; + char *cstr; + int systemp; + int i; +--- a/bincat.c ++++ b/bincat.c +@@ -156,7 +156,7 @@ + if (ac < 3) + usage((char)0, "3 arguments needed for center coordinate"); + else { +- strcpy (rastr, *++av); ++ strcpy (rastr, *av); + ac--; + strcpy (decstr, *++av); + setcenter (rastr, decstr); +--- a/cphead.c ++++ b/cphead.c +@@ -137,7 +137,7 @@ + break; + + case 'w': /* Copy entire WCS */ +- nkwd1 = 87; ++ nkwd1 = 236; + if (nkwd + nkwd1 > maxnkwd) { + maxnkwd = nkwd + nkwd1 + 32; + kwdnew = (char **) calloc (maxnkwd, sizeof (void *)); +@@ -148,7 +148,7 @@ + free (kwd); + kwd = kwdnew; + } +- for (ikwd = nkwd; i < nkwd+nkwd1; i++) { ++ for (ikwd = nkwd; ikwd < nkwd+nkwd1+32; ikwd++) { + kwd[ikwd] = (char *) calloc (32, 1); + } + strcpy (kwd[nkwd], "RA"); +--- a/filext.c ++++ b/filext.c +@@ -80,7 +80,7 @@ + ext = ext + 1; + } + } +- printf ("%s\n", ext); ++ printf ("%s\n", (ext)?ext:""); + } + + return (0); diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-spelling.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-spelling.patch new file mode 100644 index 0000000..7c666c1 --- /dev/null +++ b/sci-astronomy/wcstools/files/wcstools-3.9.2-spelling.patch @@ -0,0 +1,69 @@ +Author: Ole Streicher <debian@liska.ath.cx> +Description: Spellfixes to make lintian happy +--- a/libwcs/fitsfile.c ++++ b/libwcs/fitsfile.c +@@ -1583,7 +1583,7 @@ + if (!access (filename, 0)) { + fd = open (filename, O_WRONLY); + if (fd < 3) { +- snprintf (fitserrmsg,79, "FITSWIMAGE: file %s not writeable\n", filename); ++ snprintf (fitserrmsg,79, "FITSWIMAGE: file %s not writable\n", filename); + return (0); + } + } +@@ -1622,7 +1622,7 @@ + if (!access (filename, 0)) { + fd = open (filename, O_WRONLY); + if (fd < 3) { +- snprintf (fitserrmsg,79, "FITSWEXT: file %s not writeable\n", ++ snprintf (fitserrmsg,79, "FITSWEXT: file %s not writable\n", + filename); + return (0); + } +@@ -1884,7 +1884,7 @@ + if (!access (filename, 0)) { + fdout = open (filename, O_WRONLY); + if (fdout < 3) { +- snprintf (fitserrmsg,79, "FITSCIMAGE: file %s not writeable\n", filename); ++ snprintf (fitserrmsg,79, "FITSCIMAGE: file %s not writable\n", filename); + return (0); + } + } +@@ -1970,7 +1970,7 @@ + if (!access (filename, 0)) { + fd = open (filename, O_WRONLY); + if (fd < 3) { +- snprintf (fitserrmsg, 79, "FITSWHEAD: file %s not writeable\n", filename); ++ snprintf (fitserrmsg, 79, "FITSWHEAD: file %s not writable\n", filename); + return (0); + } + } +@@ -2072,7 +2072,7 @@ + if (ext != NULL) + *ext = cext; + if (fd < 3) { +- snprintf (fitserrmsg, 79, "FITSWEXHEAD: file %s not writeable\n", filename); ++ snprintf (fitserrmsg, 79, "FITSWEXHEAD: file %s not writable\n", filename); + return (-1); + } + +--- a/libwcs/imhfile.c ++++ b/libwcs/imhfile.c +@@ -896,7 +896,7 @@ + if (!access (hdrname, 0)) { + fd = open (hdrname, O_WRONLY); + if (fd < 3) { +- fprintf (stderr, "IRAFWIMAGE: file %s not writeable\n", hdrname); ++ fprintf (stderr, "IRAFWIMAGE: file %s not writable\n", hdrname); + return (0); + } + } +@@ -993,7 +993,7 @@ + if (!access (pixname, 0)) { + fd = open (pixname, O_WRONLY); + if (fd < 3) { +- fprintf (stderr, "IRAFWIMAGE: file %s not writeable\n", pixname); ++ fprintf (stderr, "IRAFWIMAGE: file %s not writable\n", pixname); + return (0); + } + } diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-sprintf.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-sprintf.patch new file mode 100644 index 0000000..4ec5993 --- /dev/null +++ b/sci-astronomy/wcstools/files/wcstools-3.9.2-sprintf.patch @@ -0,0 +1,36 @@ +Author: Ole Streicher <olebole@debian.net> +Description: Fix overlappong buffers in sprintf + In sprintf, overlapping buffers lead to undefined behaviour. + This causes different results on Debian and Ubuntu. +--- a/imstar.c ++++ b/imstar.c +@@ -818,7 +818,7 @@ + sprintf (headline, "%7.2f %7.2f %6.2f %d", + sx[i],sy[i],smag[i],sp[i]); + if (iswcs (wcs)) +- sprintf (headline, "%s %s %s", headline, rastr, decstr); ++ sprintf (headline + strlen(headline), " %s %s", rastr, decstr); + if (wfile) + fprintf (fd, "%s\n", headline); + else +@@ -827,14 +827,14 @@ + else { + sprintf (headline, "%3d %s %s %6.2f", i+1,rastr,decstr,smag[i]); + if (wcs->nxpix < 100.0 && wcs->nypix > 100.0) +- sprintf (headline, "%s %5.2f %5.2f %d", +- headline, sx[i],sy[i], sp[i]); ++ sprintf (headline + strlen(headline), " %5.2f %5.2f %d", ++ sx[i],sy[i], sp[i]); + else if (wcs->nxpix < 1000.0 && wcs->nypix < 1000.0) +- sprintf (headline, "%s %6.2f %6.2f %d", +- headline, sx[i],sy[i], sp[i]); ++ sprintf (headline + strlen(headline), " %6.2f %6.2f %d", ++ sx[i],sy[i], sp[i]); + else +- sprintf (headline, "%s %7.2f %7.2f %d", +- headline, sx[i],sy[i], sp[i]); ++ sprintf (headline + strlen(headline), " %7.2f %7.2f %d", ++ sx[i],sy[i], sp[i]); + if (wfile) + fprintf (fd, "%s\n", headline); + else diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-use_abort.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-use_abort.patch new file mode 100644 index 0000000..4ebc206 --- /dev/null +++ b/sci-astronomy/wcstools/files/wcstools-3.9.2-use_abort.patch @@ -0,0 +1,14 @@ +Author: Ole Streicher <debian@liska.ath.cx> +Description: If a unrecoverable error occurred, abort() instead of exit() + to allow the user for tracing the problem. +--- a/libwcs/poly.c ++++ b/libwcs/poly.c +@@ -43,7 +43,7 @@ + void qerror(char *msg1, char *msg2) + { + fprintf(stderr, "\n> %s%s\n\n",msg1,msg2); +- exit(-1); ++ abort(); + } + + diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-wcsinit_crash.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-wcsinit_crash.patch new file mode 100644 index 0000000..f8de3da --- /dev/null +++ b/sci-astronomy/wcstools/files/wcstools-3.9.2-wcsinit_crash.patch @@ -0,0 +1,20 @@ +Author: Ole Streicher <olebole@debian.net> +Description: Increase c*type and ptype field string lengths + This is needed to allow C1TYPE='RA---TAN-SIP' +Bug: https://bugs.launchpad.net/ubuntu/+source/saods9/+bug/1458333 +--- a/libwcs/wcsinit.c ++++ b/libwcs/wcsinit.c +@@ -399,11 +399,11 @@ + } + + /* World coordinate system reference coordinate information */ +- if (hgetsc (hstring, "CTYPE1", &mchar, 16, ctype1)) { ++ if (hgetsc (hstring, "CTYPE1", &mchar, 9, ctype1)) { + + /* Read second coordinate type */ + strcpy (ctype2, ctype1); +- if (!hgetsc (hstring, "CTYPE2", &mchar, 16, ctype2)) ++ if (!hgetsc (hstring, "CTYPE2", &mchar, 9, ctype2)) + twod = 0; + else + twod = 1; diff --git a/sci-astronomy/wcstools/files/wcstools.pc.in b/sci-astronomy/wcstools/files/wcstools.pc.in new file mode 100644 index 0000000..c8eb8b0 --- /dev/null +++ b/sci-astronomy/wcstools/files/wcstools.pc.in @@ -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/metadata.xml b/sci-astronomy/wcstools/metadata.xml new file mode 100644 index 0000000..94f4f60 --- /dev/null +++ b/sci-astronomy/wcstools/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>sci-astronomy@gentoo.org</email> + <name>Gentoo Astronomy Project</name> +</maintainer> +<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. + The Gentoo package is using GNU autotools to produce portable shared + and static libraried. +</longdescription> +</pkgmetadata> diff --git a/sci-astronomy/wcstools/wcstools-3.9.2.ebuild b/sci-astronomy/wcstools/wcstools-3.9.2.ebuild new file mode 100644 index 0000000..38c7d89 --- /dev/null +++ b/sci-astronomy/wcstools/wcstools-3.9.2.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 + +inherit eutils autotools-utils 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 ~amd64-linux ~x86-linux" +IUSE="" + +DOCS=( Readme Programs NEWS ) + +PATCHES=( + "${FILESDIR}"/wcstools-3.9.2-compiler_warnings.patch + "${FILESDIR}"/wcstools-3.9.2-manpages.patch + "${FILESDIR}"/wcstools-3.9.2-mayhem.patch + "${FILESDIR}"/wcstools-3.9.2-RASortStars.patch + "${FILESDIR}"/wcstools-3.9.2-spelling.patch + "${FILESDIR}"/wcstools-3.9.2-sprintf.patch + "${FILESDIR}"/wcstools-3.9.2-use_abort.patch + "${FILESDIR}"/wcstools-3.9.2-wcsinit_crash.patch +) + +src_prepare() { + 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 + autotools-utils_src_prepare +} + +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() { + autotools-utils_src_install + 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" +} |