summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <bicatali@gentoo.org>2016-03-07 23:20:06 +0000
committerSébastien Fabbro <bicatali@gentoo.org>2016-03-09 18:47:01 +0000
commit370287cde5b161dcd518894f9b0ad320a7cb2938 (patch)
treeb2bed2eda36342530599bf7303838b067bec3900 /dev-python/astlib
parentdev-db/oracle-instantclient-12.1.0.2: really installs now, with EAPI 6 (diff)
downloadgentoo-370287cde5b161dcd518894f9b0ad320a7cb2938.tar.gz
gentoo-370287cde5b161dcd518894f9b0ad320a7cb2938.tar.bz2
gentoo-370287cde5b161dcd518894f9b0ad320a7cb2938.zip
dev-python/astlib: initial import
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-python/astlib')
-rw-r--r--dev-python/astlib/Manifest1
-rw-r--r--dev-python/astlib/astlib-0.8.0.ebuild42
-rw-r--r--dev-python/astlib/files/astlib-0.8.0-system-wcstools.patch33
-rw-r--r--dev-python/astlib/metadata.xml21
4 files changed, 97 insertions, 0 deletions
diff --git a/dev-python/astlib/Manifest b/dev-python/astlib/Manifest
new file mode 100644
index 000000000000..aae3a9f5fccb
--- /dev/null
+++ b/dev-python/astlib/Manifest
@@ -0,0 +1 @@
+DIST astLib-0.8.0.tar.gz 708939 SHA256 82561909296bc7f461846c984f2c02f0c7e0dcd62a5547573b1352d5328ffa8e SHA512 44e3903c1353fa69841a28e61e52f9cb7165edfffa2eba17cbf6bfd671ed8e8745cf2364b418a3f012bb56088fa7912ef0b00d8c9d96f7b4ce196881b4b05a31 WHIRLPOOL 3dd12e47d03fc712f61f35963ad8f3935657420b1bdff12f59a9c41cfecf755096a22cfb184610127f7869d0bd4e12f7afe48ad95b4d301e054b705a77552c32
diff --git a/dev-python/astlib/astlib-0.8.0.ebuild b/dev-python/astlib/astlib-0.8.0.ebuild
new file mode 100644
index 000000000000..6b790386953b
--- /dev/null
+++ b/dev-python/astlib/astlib-0.8.0.ebuild
@@ -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
+}
diff --git a/dev-python/astlib/files/astlib-0.8.0-system-wcstools.patch b/dev-python/astlib/files/astlib-0.8.0-system-wcstools.patch
new file mode 100644
index 000000000000..5b8746fe07d1
--- /dev/null
+++ b/dev-python/astlib/files/astlib-0.8.0-system-wcstools.patch
@@ -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 */
diff --git a/dev-python/astlib/metadata.xml b/dev-python/astlib/metadata.xml
new file mode 100644
index 000000000000..acde5aed73f9
--- /dev/null
+++ b/dev-python/astlib/metadata.xml
@@ -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>