diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/astlib |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/astlib')
-rw-r--r-- | dev-python/astlib/Manifest | 5 | ||||
-rw-r--r-- | dev-python/astlib/astlib-0.8.0.ebuild | 41 | ||||
-rw-r--r-- | dev-python/astlib/files/astlib-0.8.0-system-wcstools.patch | 33 | ||||
-rw-r--r-- | dev-python/astlib/metadata.xml | 21 |
4 files changed, 100 insertions, 0 deletions
diff --git a/dev-python/astlib/Manifest b/dev-python/astlib/Manifest new file mode 100644 index 000000000000..2978036c4213 --- /dev/null +++ b/dev-python/astlib/Manifest @@ -0,0 +1,5 @@ +AUX astlib-0.8.0-system-wcstools.patch 1129 SHA256 12752b04257ff260747be1ef2b2ff68eeba9c92c0f99f61d8202a5f5390a8c02 SHA512 8e6684cc1899aa5f5c995ea128643cbf07adb114901a07c30c45a8718f8f031aff2f67c91bca802caa2049463f41f1e064cd000a51a00f79c82a921d05f7cee8 WHIRLPOOL ba61f0c8e294f8c6691b400e5783cc5577fa8591a4a022bb637be682b22ce9d850a7e3533d20d317850bc2e2d7a966c9f971e3246a0589335afe9655b4ee0a14 +DIST astLib-0.8.0.tar.gz 708939 SHA256 82561909296bc7f461846c984f2c02f0c7e0dcd62a5547573b1352d5328ffa8e SHA512 44e3903c1353fa69841a28e61e52f9cb7165edfffa2eba17cbf6bfd671ed8e8745cf2364b418a3f012bb56088fa7912ef0b00d8c9d96f7b4ce196881b4b05a31 WHIRLPOOL 3dd12e47d03fc712f61f35963ad8f3935657420b1bdff12f59a9c41cfecf755096a22cfb184610127f7869d0bd4e12f7afe48ad95b4d301e054b705a77552c32 +EBUILD astlib-0.8.0.ebuild 988 SHA256 1d347e7a57a3f0c16b436fa05342be81f5174ee5130db8a9a1b7d0ddae2b25c3 SHA512 f8d928e2bddbfb13dd86063b54270d4f9aafbe5f38f1b4c3a2d3c58010e651249de355c3a33e5969d3717312dd3e8705a9c944ed2290d43457e636192aaff24d WHIRLPOOL 2fb127195a25e99a31530f0e5641fd025854876bcfb76eec381f8e576f1687283d229d3e597cabbea57d7eec0d854caea167938a4c95299994a51c4105a79ed2 +MISC ChangeLog 356 SHA256 554f30c43b86fa43c19b2329fa9dd4ef9f31dfacbab3a509e7ce6771692fe0bf SHA512 601a91340ea568b167d87390a7967225b3c4ca37ce0f539b16af2ab261314f935796c58c9835e88fcdc21565cc03d75362bb3c6129a00d606b8e4859e3f2e8f1 WHIRLPOOL 17f5920a0d51ea305dcc2f935c99d533166ddaa9e26378de6d39f7a758bea48e04afa2dca4e1a4c114ffc285de19f5ad45f4d2d4a90cd9af0a8e23dca5dcdd88 +MISC metadata.xml 870 SHA256 dd84fba55f1dd47256d1f1a62fef38f2387089e3ea58331f9e45249affb066cd SHA512 015e4d3a47a6ca0bcf94d9926d13f46c2787967c0aa3c8c0ca89b7bf52f70841cd5c81f800b96426c03343126c33698b0ed2064d59094405a4d7ae108b4477dd WHIRLPOOL 8daf76c7b2ad09c721c5c7101aea707ccbfcb39a74ba5ca41e811ac304c51c94a35b8448e0a0d627ffa974b6a2430058142ee1dbcffdcb12f1ac68649d5e2474 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..0ce207391bf0 --- /dev/null +++ b/dev-python/astlib/astlib-0.8.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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> |