commit:     370287cde5b161dcd518894f9b0ad320a7cb2938
Author:     Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Mon Mar  7 23:20:06 2016 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Wed Mar  9 18:47:01 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=370287cd

dev-python/astlib: initial import

Package-Manager: portage-2.2.27

 dev-python/astlib/Manifest                         |  1 +
 dev-python/astlib/astlib-0.8.0.ebuild              | 42 ++++++++++++++++++++++
 .../files/astlib-0.8.0-system-wcstools.patch       | 33 +++++++++++++++++
 dev-python/astlib/metadata.xml                     | 21 +++++++++++
 4 files changed, 97 insertions(+)

diff --git a/dev-python/astlib/Manifest b/dev-python/astlib/Manifest
new file mode 100644
index 0000000..aae3a9f
--- /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 0000000..6b79038
--- /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 0000000..5b8746f
--- /dev/null
+++ b/dev-python/astlib/files/astlib-0.8.0-system-wcstools.patch
@@ -0,0 +1,33 @@
+Author: Ole Streicher <oleb...@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 0000000..acde5ae
--- /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-astron...@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>

Reply via email to