dev-python/astlib: initial import

Package-Manager: portage-2.2.27
This commit is contained in:
Sébastien Fabbro
2016-03-07 23:20:06 +00:00
parent 8cac1c5152
commit 370287cde5
4 changed files with 97 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST astLib-0.8.0.tar.gz 708939 SHA256 82561909296bc7f461846c984f2c02f0c7e0dcd62a5547573b1352d5328ffa8e SHA512 44e3903c1353fa69841a28e61e52f9cb7165edfffa2eba17cbf6bfd671ed8e8745cf2364b418a3f012bb56088fa7912ef0b00d8c9d96f7b4ce196881b4b05a31 WHIRLPOOL 3dd12e47d03fc712f61f35963ad8f3935657420b1bdff12f59a9c41cfecf755096a22cfb184610127f7869d0bd4e12f7afe48ad95b4d301e054b705a77552c32

View File

@@ -0,0 +1,42 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
inherit distutils-r1
MYPN=astLib
MYP=${MYPN}-${PV}
DESCRIPTION="Python astronomy modules for image and coordinate manipulation"
HOMEPAGE="http://astlib.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.gz"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
LICENSE="GPL-2 LGPL-2.1"
IUSE="doc examples"
PATCHES=( "${FILESDIR}/${P}-system-wcstools.patch" )
DEPEND="sci-astronomy/wcstools"
RDEPEND="${DEPEND}
dev-python/astropy[${PYTHON_USEDEP}]
dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
sci-libs/scipy[${PYTHON_USEDEP}]"
S="${WORKDIR}/${MYP}"
python_install_all() {
dodoc CHANGE_LOG RELEASE_NOTES
insinto /usr/share/doc/${PF}/html
use doc && doins -r docs/${MYPN}/*
insinto /usr/share/doc/${PF}
use examples && doins -r examples
distutils-r1_python_install_all
}

View File

@@ -0,0 +1,33 @@
Author: Ole Streicher <olebole@debian.org>
Description: Use system provided libwcstools instead of local copy
Also, build the swig wrapper from its source file.
--- a/setup.py
+++ b/setup.py
@@ -84,12 +84,11 @@
PyWCSTools is distributed (and developed) as part of astLib.""",
packages=['astLib', 'PyWCSTools'],
package_data={'astLib': ['data/*']},
- cmdclass={"build_ext": build_PyWCSTools_ext},
scripts=exampleScripts,
ext_modules=[
- Extension('PyWCSTools._wcscon', [sourceDir+"wcscon_wrap.c"],
- extra_objects=oFiles),
- Extension('PyWCSTools._wcs', [sourceDir+"wcs_wrap.c"],
- extra_objects=oFiles)
+ Extension('PyWCSTools._wcscon', [sourceDir+"wcscon.i"],
+ swig_opts=['-outdir', 'PyWCSTools/'], libraries=['wcstools']),
+ Extension('PyWCSTools._wcs', [sourceDir+"wcs.i"],
+ swig_opts=['-outdir', 'PyWCSTools/'], libraries=['wcstools'])
]
)
--- a/PyWCSTools/wcssubs-3.8.7/wcs.i
+++ b/PyWCSTools/wcssubs-3.8.7/wcs.i
@@ -14,7 +14,7 @@
/* %feature("autodoc", "1") */
%{
-#include "wcs.h"
+#include <wcs/wcs.h>
%}
/* WORKING */

View File

@@ -0,0 +1,21 @@
<?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">
astLib is a set of Python modules that provides some tools for
research astronomers. It can be used for simple plots, statistics,
common calculations, coordinate conversions, and manipulating FITS
images with World Coordinate System (WCS) information through
PyWCSTools - a simple wrapping of WCSTools by Doug Mink. PyWCSTools
is distributed (and developed) as part of astLib.
In Gentoo, PyWCSTools is using the stock library instead of the
bundled one.
</longdescription>
<upstream>
<remote-id type="sourceforge">astlib</remote-id>
</upstream>
</pkgmetadata>