diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pyfits |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pyfits')
-rw-r--r-- | dev-python/pyfits/Manifest | 11 | ||||
-rw-r--r-- | dev-python/pyfits/files/01-system-cfitsio.patch | 176 | ||||
-rw-r--r-- | dev-python/pyfits/files/02-numpy-deprecation-warning.patch | 24 | ||||
-rw-r--r-- | dev-python/pyfits/files/03-fix-for-cfitsio-3380.patch | 43 | ||||
-rw-r--r-- | dev-python/pyfits/files/pyfits-3.2.1-unbundle-cfitsio.patch | 98 | ||||
-rw-r--r-- | dev-python/pyfits/metadata.xml | 20 | ||||
-rw-r--r-- | dev-python/pyfits/pyfits-3.3-r1.ebuild | 71 | ||||
-rw-r--r-- | dev-python/pyfits/pyfits-3.4-r1.ebuild | 71 |
8 files changed, 514 insertions, 0 deletions
diff --git a/dev-python/pyfits/Manifest b/dev-python/pyfits/Manifest new file mode 100644 index 000000000000..8468290c1dc4 --- /dev/null +++ b/dev-python/pyfits/Manifest @@ -0,0 +1,11 @@ +AUX 01-system-cfitsio.patch 5038 SHA256 4247b506861a6cb801287cf8eab89ed835e4eba375023cded79febf2f77ffc30 SHA512 25369aaf360742b432cd9ad4b4d83c3875dad3eb89daf70483f4dd6a187777a0493f94f365fea171f4adf493d2d5bfcb2223bb362a3fc8aface750c3d29af5b5 WHIRLPOOL 11af1fbee5165f671f8a4cddf67eb4bcf0d21ada2b73381bb3851b76b52150b3d37540ae6c8133d45e0bdf0628bcc6e468d08c14aa708ea6eca978ece4cae756 +AUX 02-numpy-deprecation-warning.patch 902 SHA256 f4437cc094b32707a8ba54a7a318665840d1b61761f2c3dbc7343389e9eef983 SHA512 14123cd3ac5401fe29af59b4d03bc6b8cf2c3f17695cc4d34664298f0031748bc27ff52897e57032bd887743c9acda0c22af16b0a7362898d2d48984fe9c6a2a WHIRLPOOL e14a16165a80bd62ed44329be4eda1193172301e6dd1880dddadfb28631c5e75c90ff5776d5232c6df96c8b5f7405fc9cff1a9954d0cf403a4dcbcfb711e1c7c +AUX 03-fix-for-cfitsio-3380.patch 1496 SHA256 b149f07548d32e2fe25dcfcf5c53ee471fd3394d11678defda27858ccb322c2a SHA512 f3a842f0c9701233e49b22ba6fa8f672fa6374e025614e9c071ea3a54d01033c0f930fc7649cfd42abe65482927b70246762b9f59992790bccf17bc0ce3e0fdc WHIRLPOOL 55339cf032a204ff8d0cadfa2cdc7d44c4b4b16c7185a2017214b4d5570b6f686bb0ac4277267b656974c932b919410bf9b75cd3ce85b3ccd42c184c3f00cd8a +AUX pyfits-3.2.1-unbundle-cfitsio.patch 2676 SHA256 eca480bee2d736d79ca98992386d499d2d9ee980b998cbd516d2565c673834d4 SHA512 bea17130b7cb3f593ba8e24a699f4a2d58990ee4aace00117beb68498a56c662f90031a8843cb9b388e3dd757bf1efaf2596ba3a69bcc958e0a344e53d3c0675 WHIRLPOOL dcd0ca12b3df48a365b0d4471ef265bdee85b19a1bd0b69d05992144080ea7717cb74c9424656966337114156011220553488cd1788d08252ad94cff4e2ca09c +DIST pyfits-3.3.tar.gz 1646403 SHA256 becb6dcc7e443138b9d239db7a0e8ad939e6e047c2c9ca86e84d0672da425fa1 SHA512 561fe61050e61745054e0e4712c4413e129293b062d2020219b61d648d7093ce6952e1f26da955a1bf570f76ba7eddeb1805c99f679300b072ef6bacc2e4c90a WHIRLPOOL 9b4b5dd236713359a9441e4179486e4b56ec11b7fc25c3abb59d30a6267fe87496601778731ba7ff92c55243621aa58ca493821b83224fde41a79f18c21e485b +DIST pyfits-3.4.tar.gz 1692414 SHA256 ce0319cf6ef40846c5915202e4c8bd8d293ad85af4b14aa5a60fb285b7538c4b SHA512 b569f871f26dcd9cb2fbe9d823d55c525e8101b0fcf83fff4bc3f3ec4bc7f680953a29634518ea19383f533f5e23b3703fffdb4e0d577b1023b4323254ef3a7e WHIRLPOOL a121ca9b4d7b4457d24e905e8506402043679800eddc5c5813b68612bae1ee80940eb723f03504c9136fc5c2bac1a419aa52f87394689ae1099bb5002e77417e +EBUILD pyfits-3.3-r1.ebuild 1872 SHA256 45f8d98303b90b2a19df869c723849b331418e57cd3b687bd9079b8433527f12 SHA512 22a8ddf7853578355b5b9985e9356a2ea138185d1b92df4b75c5200e0982ade63fa467f112b126585469fa1a24a862c575a6e1760731104175895e0d22fbf754 WHIRLPOOL e9d919075ee24707f06c1ef89986fe52fb64ea773b0847063838ef1c6d3d31f99e754994258f297ccac788b01e34a22bb7889b06eb499a84197b2eaa6dc552b0 +EBUILD pyfits-3.4-r1.ebuild 1952 SHA256 f2e55d8850fca01b00df49ec01a0f713c230f4b1bcb60dc38fbf9fd53bf34a39 SHA512 27845de2c8c478753a227012cae273de9ff48c782c899a4cff33554f83925a61513321e3ac4f1a51b27a65e7966204f6222842bc80d1bc054db937b6f06e87fe WHIRLPOOL d59c9d9f4e0b75315c21f1cc521cb4d93a50e38b8bd3080c59e7ff24d9db1504aa9586c89117644503e9f1e2ae65797f28faa4380876bfaeaf652b442193534d +MISC ChangeLog 4296 SHA256 89ce92770228d0e14b050363999152a43c79f604a2cf1e53eaa12d60b5f399fa SHA512 e6f6f94b8905dc02e9da7f600897f783eb8e05dba6ac0ee15e9a101de37c10a40f6b7c8a350b97b93114744feb2c9b255478407c08a01651192090a8a8e80195 WHIRLPOOL d72ff27b5191a366ad0812aed4ee823c4a94a950b339511351827084a3e4344276c6665d1d4f25bccdf81caaba276f66d61b8b7359f41d251007cb0435a3e57a +MISC ChangeLog-2015 7921 SHA256 b0e4d957b0c12457d5a19b722ad7ac0e258602f3cecf394a8c00fe60e4f4c640 SHA512 8b7ab9da6f24cedc37d3c732e9a63b8362aec24ea7568c643cbfdc6603a71c1fa2711fec707ef821cdd997ffbf0b3c18533fdb6c7daa9cc54314fdf9c0e59bec WHIRLPOOL 0a0d197572621fd841ae1bd3261ca728d780b2c3fd8602853e070772bc54eb5746e497fa7bc54521c45e62d4094b8dd5449c0710c38a3f792157aa97801eb648 +MISC metadata.xml 642 SHA256 d6b05d6a13e35af3b6151662e39c6a24d5422bd2ee2e15d6c854ce314799b06f SHA512 fd07a54d6f8273f7e16358da22be2f8484f74bacdeb78c35980046256800701b7fc53e7261074fb84651384f2e821ef3fbe62ba3674ca5fc6cd2fc176335da7c WHIRLPOOL 0d1fdd30fe3477040ee6872fce2b38f1e0ba8ce146ba558f499ed2d4bbc9a55b9e5abcd347618d30a5f1235f7079246d2be95f75803f2a8b187296b45946e101 diff --git a/dev-python/pyfits/files/01-system-cfitsio.patch b/dev-python/pyfits/files/01-system-cfitsio.patch new file mode 100644 index 000000000000..f2ce935c7ea8 --- /dev/null +++ b/dev-python/pyfits/files/01-system-cfitsio.patch @@ -0,0 +1,176 @@ +From 70fe4dac3f68c3eed369d42e6a49e7865db8b250 Mon Sep 17 00:00:00 2001 +From: SVN-Git Migration <python-modules-team@lists.alioth.debian.org> +Date: Thu, 8 Oct 2015 10:31:01 -0700 +Subject: 01-system-cfitsio.diff + +Patch-Name: 01-system-cfitsio.diff +--- + setup.cfg | 145 +++++++++++++++++++++++++++++++------------------------------- + 1 file changed, 73 insertions(+), 72 deletions(-) + +diff --git a/setup.cfg b/setup.cfg +index 3a05c62..3a64f33 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -40,81 +40,81 @@ scripts = + + [extension=pyfits.compression] + sources = +- cextern/cfitsio/adler32.c +- cextern/cfitsio/buffers.c +- cextern/cfitsio/cfileio.c +- cextern/cfitsio/checksum.c +- cextern/cfitsio/crc32.c +- cextern/cfitsio/deflate.c +- cextern/cfitsio/drvrfile.c +- cextern/cfitsio/drvrgsiftp.c +- cextern/cfitsio/drvrmem.c +- cextern/cfitsio/drvrnet.c +- cextern/cfitsio/drvrsmem.c +- cextern/cfitsio/editcol.c +- cextern/cfitsio/edithdu.c +- cextern/cfitsio/eval_f.c +- cextern/cfitsio/eval_l.c +- cextern/cfitsio/eval_y.c +- cextern/cfitsio/fitscore.c +- cextern/cfitsio/fits_hcompress.c +- cextern/cfitsio/fits_hdecompress.c +- cextern/cfitsio/getcolb.c +- cextern/cfitsio/getcol.c +- cextern/cfitsio/getcold.c +- cextern/cfitsio/getcole.c +- cextern/cfitsio/getcoli.c +- cextern/cfitsio/getcolj.c +- cextern/cfitsio/getcolk.c +- cextern/cfitsio/getcoll.c +- cextern/cfitsio/getcolsb.c +- cextern/cfitsio/getcols.c +- cextern/cfitsio/getcolui.c +- cextern/cfitsio/getcoluj.c +- cextern/cfitsio/getcoluk.c +- cextern/cfitsio/getkey.c +- cextern/cfitsio/group.c +- cextern/cfitsio/grparser.c +- cextern/cfitsio/histo.c +- cextern/cfitsio/imcompress.c +- cextern/cfitsio/infback.c +- cextern/cfitsio/inffast.c +- cextern/cfitsio/inflate.c +- cextern/cfitsio/inftrees.c +- cextern/cfitsio/iraffits.c +- cextern/cfitsio/modkey.c +- cextern/cfitsio/pliocomp.c +- cextern/cfitsio/putcolb.c +- cextern/cfitsio/putcol.c +- cextern/cfitsio/putcold.c +- cextern/cfitsio/putcole.c +- cextern/cfitsio/putcoli.c +- cextern/cfitsio/putcolj.c +- cextern/cfitsio/putcolk.c +- cextern/cfitsio/putcoll.c +- cextern/cfitsio/putcolsb.c +- cextern/cfitsio/putcols.c +- cextern/cfitsio/putcolu.c +- cextern/cfitsio/putcolui.c +- cextern/cfitsio/putcoluj.c +- cextern/cfitsio/putcoluk.c +- cextern/cfitsio/putkey.c +- cextern/cfitsio/quantize.c +- cextern/cfitsio/region.c +- cextern/cfitsio/ricecomp.c +- cextern/cfitsio/scalnull.c +- cextern/cfitsio/swapproc.c +- cextern/cfitsio/trees.c +- cextern/cfitsio/uncompr.c +- cextern/cfitsio/wcssub.c +- cextern/cfitsio/wcsutil.c +- cextern/cfitsio/zcompress.c +- cextern/cfitsio/zuncompress.c +- cextern/cfitsio/zutil.c ++# cextern/cfitsio/adler32.c ++# cextern/cfitsio/buffers.c ++# cextern/cfitsio/cfileio.c ++# cextern/cfitsio/checksum.c ++# cextern/cfitsio/crc32.c ++# cextern/cfitsio/deflate.c ++# cextern/cfitsio/drvrfile.c ++# cextern/cfitsio/drvrgsiftp.c ++# cextern/cfitsio/drvrmem.c ++# cextern/cfitsio/drvrnet.c ++# cextern/cfitsio/drvrsmem.c ++# cextern/cfitsio/editcol.c ++# cextern/cfitsio/edithdu.c ++# cextern/cfitsio/eval_f.c ++# cextern/cfitsio/eval_l.c ++# cextern/cfitsio/eval_y.c ++# cextern/cfitsio/fitscore.c ++# cextern/cfitsio/fits_hcompress.c ++# cextern/cfitsio/fits_hdecompress.c ++# cextern/cfitsio/getcolb.c ++# cextern/cfitsio/getcol.c ++# cextern/cfitsio/getcold.c ++# cextern/cfitsio/getcole.c ++# cextern/cfitsio/getcoli.c ++# cextern/cfitsio/getcolj.c ++# cextern/cfitsio/getcolk.c ++# cextern/cfitsio/getcoll.c ++# cextern/cfitsio/getcolsb.c ++# cextern/cfitsio/getcols.c ++# cextern/cfitsio/getcolui.c ++# cextern/cfitsio/getcoluj.c ++# cextern/cfitsio/getcoluk.c ++# cextern/cfitsio/getkey.c ++# cextern/cfitsio/group.c ++# cextern/cfitsio/grparser.c ++# cextern/cfitsio/histo.c ++# cextern/cfitsio/imcompress.c ++# cextern/cfitsio/infback.c ++# cextern/cfitsio/inffast.c ++# cextern/cfitsio/inflate.c ++# cextern/cfitsio/inftrees.c ++# cextern/cfitsio/iraffits.c ++# cextern/cfitsio/modkey.c ++# cextern/cfitsio/pliocomp.c ++# cextern/cfitsio/putcolb.c ++# cextern/cfitsio/putcol.c ++# cextern/cfitsio/putcold.c ++# cextern/cfitsio/putcole.c ++# cextern/cfitsio/putcoli.c ++# cextern/cfitsio/putcolj.c ++# cextern/cfitsio/putcolk.c ++# cextern/cfitsio/putcoll.c ++# cextern/cfitsio/putcolsb.c ++# cextern/cfitsio/putcols.c ++# cextern/cfitsio/putcolu.c ++# cextern/cfitsio/putcolui.c ++# cextern/cfitsio/putcoluj.c ++# cextern/cfitsio/putcoluk.c ++# cextern/cfitsio/putkey.c ++# cextern/cfitsio/quantize.c ++# cextern/cfitsio/region.c ++# cextern/cfitsio/ricecomp.c ++# cextern/cfitsio/scalnull.c ++# cextern/cfitsio/swapproc.c ++# cextern/cfitsio/trees.c ++# cextern/cfitsio/uncompr.c ++# cextern/cfitsio/wcssub.c ++# cextern/cfitsio/wcsutil.c ++# cextern/cfitsio/zcompress.c ++# cextern/cfitsio/zuncompress.c ++# cextern/cfitsio/zutil.c + src/compressionmodule.c + include_dirs = + numpy +- cextern/cfitsio ++# cextern/cfitsio + extra_compile_args = + -Wno-declaration-after-statement + -Wno-unused-variable +@@ -125,6 +125,7 @@ extra_compile_args = + -Wno-unused + -Wno-comments + -Wno-switch ++libraries = cfitsio + optional = True + fail_message = + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! diff --git a/dev-python/pyfits/files/02-numpy-deprecation-warning.patch b/dev-python/pyfits/files/02-numpy-deprecation-warning.patch new file mode 100644 index 000000000000..026e6b829d4d --- /dev/null +++ b/dev-python/pyfits/files/02-numpy-deprecation-warning.patch @@ -0,0 +1,24 @@ +From 90cac05f8a5436a8dd3714ad29e2d81eb8b4d39b Mon Sep 17 00:00:00 2001 +From: Aurelien Jarno <aurelien@aurel32.net> +Date: Tue, 2 Feb 2016 22:41:09 +0100 +Subject: Avoid DeprecationWarning from Numpy. + +Patch-Name: 02-numpy-deprecation-warning.diff +--- + pyfits/tests/test_division.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/pyfits/tests/test_division.py b/pyfits/tests/test_division.py +index da4df72..aa93264 100644 +--- a/pyfits/tests/test_division.py ++++ b/pyfits/tests/test_division.py +@@ -18,7 +18,8 @@ class TestDivisionFunctions(PyfitsTestCase): + a1 = np.rec.array( + s, + dtype=np.dtype([('c1', '>i4'), ('c2', '|S3'), +- ('c3', '>f4'), ('c4', '|i1')])) ++ ('c3', '>f4'), ('c4', '|i1')]), ++ shape=len(s) // 12) + + def test_card_with_continue(self): + h = fits.PrimaryHDU() diff --git a/dev-python/pyfits/files/03-fix-for-cfitsio-3380.patch b/dev-python/pyfits/files/03-fix-for-cfitsio-3380.patch new file mode 100644 index 000000000000..d0fac84d1e22 --- /dev/null +++ b/dev-python/pyfits/files/03-fix-for-cfitsio-3380.patch @@ -0,0 +1,43 @@ +Author: Ole Streicher <olebole@debian.org> +Description: Update image tests for cfitsio 3.380 + Make TFORMx check more flexible. The maximal column length in cfitsio + changed between version 3370 and 3380. This patch checks their syntax, + without a specific length. + . + HCOMPRESSed images are allowed to deviate from the original by about + 1/quantize_level of the RMS in each tile. This patch changes the absolute + identity test +Bug: https://github.com/astropy/astropy/issues/4646 +Bug: https://github.com/astropy/astropy/issues/4647 +Bug-Debian: https://bugs.debian.org/816595 +--- a/pyfits/tests/test_image.py ++++ b/pyfits/tests/test_image.py +@@ -2,6 +2,7 @@ + + import math + import os ++import re + import time + import warnings + +@@ -1014,7 +1015,7 @@ + hdu.writeto(self.temp('test.fits')) + + with fits.open(self.temp('test.fits')) as hdul: +- assert (hdul['SCI'].data == cube).all() ++ assert np.abs(hdul['SCI'].data - cube).max() < 1./15. + + def test_subtractive_dither_seed(self): + """ +@@ -1269,8 +1270,8 @@ + + with fits.open(self.temp('test.fits'), + disable_image_compression=True) as h: +- assert h[1].header['TFORM1'] == '1PB(30)' +- assert h[1].header['TFORM2'] == '1PB(359)' ++ assert re.match(r'^1PB\(\d+\)$', h[1].header['TFORM1']) ++ assert re.match(r'^1PB\(\d+\)$', h[1].header['TFORM2']) + + def test_compression_update_header(self): + """Regression test for + diff --git a/dev-python/pyfits/files/pyfits-3.2.1-unbundle-cfitsio.patch b/dev-python/pyfits/files/pyfits-3.2.1-unbundle-cfitsio.patch new file mode 100644 index 000000000000..a5d7e6217486 --- /dev/null +++ b/dev-python/pyfits/files/pyfits-3.2.1-unbundle-cfitsio.patch @@ -0,0 +1,98 @@ +--- setup.cfg.orig 2014-03-10 10:50:38.200531959 -0700 ++++ setup.cfg 2014-03-10 10:52:19.288232002 -0700 +@@ -36,92 +36,12 @@ + + [extension=pyfits.compression] + sources = +- cextern/cfitsio/adler32.c +- cextern/cfitsio/buffers.c +- cextern/cfitsio/cfileio.c +- cextern/cfitsio/checksum.c +- cextern/cfitsio/crc32.c +- cextern/cfitsio/deflate.c +- cextern/cfitsio/drvrfile.c +- cextern/cfitsio/drvrgsiftp.c +- cextern/cfitsio/drvrmem.c +- cextern/cfitsio/drvrnet.c +- cextern/cfitsio/drvrsmem.c +- cextern/cfitsio/editcol.c +- cextern/cfitsio/edithdu.c +- cextern/cfitsio/eval_f.c +- cextern/cfitsio/eval_l.c +- cextern/cfitsio/eval_y.c +- cextern/cfitsio/fitscore.c +- cextern/cfitsio/fits_hcompress.c +- cextern/cfitsio/fits_hdecompress.c +- cextern/cfitsio/getcolb.c +- cextern/cfitsio/getcol.c +- cextern/cfitsio/getcold.c +- cextern/cfitsio/getcole.c +- cextern/cfitsio/getcoli.c +- cextern/cfitsio/getcolj.c +- cextern/cfitsio/getcolk.c +- cextern/cfitsio/getcoll.c +- cextern/cfitsio/getcolsb.c +- cextern/cfitsio/getcols.c +- cextern/cfitsio/getcolui.c +- cextern/cfitsio/getcoluj.c +- cextern/cfitsio/getcoluk.c +- cextern/cfitsio/getkey.c +- cextern/cfitsio/group.c +- cextern/cfitsio/grparser.c +- cextern/cfitsio/histo.c +- cextern/cfitsio/imcompress.c +- cextern/cfitsio/infback.c +- cextern/cfitsio/inffast.c +- cextern/cfitsio/inflate.c +- cextern/cfitsio/inftrees.c +- cextern/cfitsio/iraffits.c +- cextern/cfitsio/modkey.c +- cextern/cfitsio/pliocomp.c +- cextern/cfitsio/putcolb.c +- cextern/cfitsio/putcol.c +- cextern/cfitsio/putcold.c +- cextern/cfitsio/putcole.c +- cextern/cfitsio/putcoli.c +- cextern/cfitsio/putcolj.c +- cextern/cfitsio/putcolk.c +- cextern/cfitsio/putcoll.c +- cextern/cfitsio/putcolsb.c +- cextern/cfitsio/putcols.c +- cextern/cfitsio/putcolu.c +- cextern/cfitsio/putcolui.c +- cextern/cfitsio/putcoluj.c +- cextern/cfitsio/putcoluk.c +- cextern/cfitsio/putkey.c +- cextern/cfitsio/quantize.c +- cextern/cfitsio/region.c +- cextern/cfitsio/ricecomp.c +- cextern/cfitsio/scalnull.c +- cextern/cfitsio/swapproc.c +- cextern/cfitsio/trees.c +- cextern/cfitsio/uncompr.c +- cextern/cfitsio/wcssub.c +- cextern/cfitsio/wcsutil.c +- cextern/cfitsio/zcompress.c +- cextern/cfitsio/zuncompress.c +- cextern/cfitsio/zutil.c + src/compressionmodule.c + include_dirs = + numpy +- cextern/cfitsio +-extra_compile_args = +- -Wno-declaration-after-statement +- -Wno-unused-variable +- -Wno-parentheses +- -Wno-uninitialized +- -Wno-format +- -Wno-strict-prototypes +- -Wno-unused +- -Wno-comments +- -Wno-switch +-optional = True ++libraries = ++ cfitsio ++optional = False + fail_message = + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + Failed to build PyFITS tile compression support. PyFITS will still diff --git a/dev-python/pyfits/metadata.xml b/dev-python/pyfits/metadata.xml new file mode 100644 index 000000000000..4e1c8e2ff441 --- /dev/null +++ b/dev-python/pyfits/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> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription lang="en"> + PyFITS provides an interface to FITS formatted files under the + Python scripting language and PyRAF, the Python-based interface to + IRAF. +</longdescription> + <upstream> + <remote-id type="pypi">pyfits</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pyfits/pyfits-3.3-r1.ebuild b/dev-python/pyfits/pyfits-3.3-r1.ebuild new file mode 100644 index 000000000000..89e2e58b9adc --- /dev/null +++ b/dev-python/pyfits/pyfits-3.3-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5} ) + +inherit distutils-r1 eutils multilib + +DESCRIPTION="Provides an interface to FITS formatted files under python" +HOMEPAGE="http://www.stsci.edu/resources/software_hardware/pyfits" +SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="doc test" + +RDEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + sci-libs/cfitsio:0=" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/d2to1-0.2.5[${PYTHON_USEDEP}] + >=dev-python/stsci-distutils-0.3[${PYTHON_USEDEP}] + doc? ( + dev-python/matplotlib[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/numpydoc[${PYTHON_USEDEP}]' 'python*') + dev-python/sphinxcontrib-programoutput[${PYTHON_USEDEP}] + dev-python/stsci-sphinxext[${PYTHON_USEDEP}] + ) + test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +PATCHES=( "${FILESDIR}"/${PN}-3.2.1-unbundle-cfitsio.patch ) + +python_prepare_all() { + sed -i \ + -e "s/\(hook_package_dir = \)lib/\1$(get_libdir)/g" \ + "${S}"/setup.cfg || die + + # https://github.com/spacetelescope/PyFITS/issues/95 + sed \ + -e "s/except UserWarning, w/except UserWarning as w/" \ + -i lib/pyfits/scripts/fitscheck.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + cd "${BUILD_DIR}"/lib* || die + nosetests --verbose || die +} + +python_install() { + distutils-r1_python_install + local binary + for binary in "${ED}"/usr/bin/* "${D}$(python_get_scriptdir)"/*; do + einfo "Renaming ${binary} to ${binary}-${PN}" + mv ${binary}{,-${PN}} || die "failed renaming" + done +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/build/html/. ) + DOCS=( FAQ.txt CHANGES.txt ) + distutils-r1_python_install_all +} diff --git a/dev-python/pyfits/pyfits-3.4-r1.ebuild b/dev-python/pyfits/pyfits-3.4-r1.ebuild new file mode 100644 index 000000000000..e19f2090613d --- /dev/null +++ b/dev-python/pyfits/pyfits-3.4-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5} ) + +inherit distutils-r1 eutils multilib + +DESCRIPTION="Provides an interface to FITS formatted files under python" +HOMEPAGE="http://www.stsci.edu/resources/software_hardware/pyfits" +SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="doc test" + +RDEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + sci-libs/cfitsio:0=" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/d2to1-0.2.5[${PYTHON_USEDEP}] + >=dev-python/stsci-distutils-0.3[${PYTHON_USEDEP}] + doc? ( + dev-python/matplotlib[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/numpydoc[${PYTHON_USEDEP}]' 'python*') + dev-python/sphinxcontrib-programoutput[${PYTHON_USEDEP}] + dev-python/stsci-sphinxext[${PYTHON_USEDEP}] + ) + test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +PATCHES=( "${FILESDIR}"/01-system-cfitsio.patch + "${FILESDIR}"/02-numpy-deprecation-warning.patch + "${FILESDIR}"/03-fix-for-cfitsio-3380.patch ) + +python_prepare_all() { + sed -e "s/\(hook_package_dir = \)lib/\1$(get_libdir)/g" \ + -i "${S}"/setup.cfg || die + + # https://github.com/spacetelescope/PyFITS/issues/95 + sed -e "s/except UserWarning, w/except UserWarning as w/" \ + -i pyfits/scripts/fitscheck.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + cd "${BUILD_DIR}"/lib* || die + nosetests --verbose || die +} + +python_install() { + distutils-r1_python_install + local binary + for binary in "${ED}"/usr/bin/* "${D}$(python_get_scriptdir)"/*; do + einfo "Renaming ${binary} to ${binary}-${PN}" + mv ${binary}{,-${PN}} || die "failed renaming" + done +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/build/html/. ) + DOCS=( FAQ.txt CHANGES.txt ) + distutils-r1_python_install_all +} |