mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 21:08:35 -07:00
dev-python/astlib: initial import
Package-Manager: portage-2.2.27
This commit is contained in:
1
dev-python/astlib/Manifest
Normal file
1
dev-python/astlib/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST astLib-0.8.0.tar.gz 708939 SHA256 82561909296bc7f461846c984f2c02f0c7e0dcd62a5547573b1352d5328ffa8e SHA512 44e3903c1353fa69841a28e61e52f9cb7165edfffa2eba17cbf6bfd671ed8e8745cf2364b418a3f012bb56088fa7912ef0b00d8c9d96f7b4ce196881b4b05a31 WHIRLPOOL 3dd12e47d03fc712f61f35963ad8f3935657420b1bdff12f59a9c41cfecf755096a22cfb184610127f7869d0bd4e12f7afe48ad95b4d301e054b705a77552c32
|
||||
42
dev-python/astlib/astlib-0.8.0.ebuild
Normal file
42
dev-python/astlib/astlib-0.8.0.ebuild
Normal 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
|
||||
}
|
||||
33
dev-python/astlib/files/astlib-0.8.0-system-wcstools.patch
Normal file
33
dev-python/astlib/files/astlib-0.8.0-system-wcstools.patch
Normal 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 */
|
||||
21
dev-python/astlib/metadata.xml
Normal file
21
dev-python/astlib/metadata.xml
Normal 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>
|
||||
Reference in New Issue
Block a user