diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2014-03-10 17:54:49 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2014-03-10 17:54:49 +0000 |
commit | 3449c023704e62153d9f13dfb4fbf7b7d392f040 (patch) | |
tree | a45bbb1d976255c08aeafc076c8742769fa4c37b /dev-python/pyfits | |
parent | Version bump (diff) | |
download | gentoo-2-3449c023704e62153d9f13dfb4fbf7b7d392f040.tar.gz gentoo-2-3449c023704e62153d9f13dfb4fbf7b7d392f040.tar.bz2 gentoo-2-3449c023704e62153d9f13dfb4fbf7b7d392f040.zip |
Version bump
(Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
Diffstat (limited to 'dev-python/pyfits')
-rw-r--r-- | dev-python/pyfits/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/pyfits/files/pyfits-3.2.1-unbundle-cfitsio.patch | 98 | ||||
-rw-r--r-- | dev-python/pyfits/pyfits-3.2.1.ebuild | 65 |
3 files changed, 170 insertions, 1 deletions
diff --git a/dev-python/pyfits/ChangeLog b/dev-python/pyfits/ChangeLog index 4703236bc0f4..afb63a69ad28 100644 --- a/dev-python/pyfits/ChangeLog +++ b/dev-python/pyfits/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/pyfits # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyfits/ChangeLog,v 1.46 2014/03/03 20:27:38 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyfits/ChangeLog,v 1.47 2014/03/10 17:54:49 bicatali Exp $ + +*pyfits-3.2.1 (10 Mar 2014) + + 10 Mar 2014; Sébastien Fabbro <bicatali@gentoo.org> + +files/pyfits-3.2.1-unbundle-cfitsio.patch, +pyfits-3.2.1.ebuild: + Version bump 03 Mar 2014; Sébastien Fabbro <bicatali@gentoo.org> pyfits-3.2.ebuild: renaming of binary for all python implementations 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/pyfits-3.2.1.ebuild b/dev-python/pyfits/pyfits-3.2.1.ebuild new file mode 100644 index 000000000000..12a1cad27585 --- /dev/null +++ b/dev-python/pyfits/pyfits-3.2.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyfits/pyfits-3.2.1.ebuild,v 1.1 2014/03/10 17:54:49 bicatali Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) +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}] + !<dev-python/astropy-0.3 + sci-libs/cfitsio:0=" +DEPEND="${RDEPEND} + >=dev-python/d2to1-0.2.5[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/stsci-distutils-0.3[${PYTHON_USEDEP}] + doc? ( + dev-python/matplotlib + dev-python/numpydoc + dev-python/sphinxcontrib-programoutput + dev-python/stsci-sphinxext + ) + 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 + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + cd "${BUILD_DIR}"/lib* || die + nosetests || die +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/build/html ) + distutils-r1_python_install_all + dodoc FAQ.txt CHANGES.txt + rename_binary() { + local binary + for binary in "${ED}"/usr/bin/* "${D}$(python_get_scriptdir)"/* + do + mv ${binary}{,-${PN}} || die "failed renaming" + done + } + python_foreach_impl rename_binary +} |