diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/pydl | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/pydl')
-rw-r--r-- | dev-python/pydl/Manifest | 6 | ||||
-rw-r--r-- | dev-python/pydl/files/pydl-ignore_entry_points.patch | 14 | ||||
-rw-r--r-- | dev-python/pydl/metadata.xml | 18 | ||||
-rw-r--r-- | dev-python/pydl/pydl-0.5.3.ebuild | 53 | ||||
-rw-r--r-- | dev-python/pydl/pydl-0.5.4.ebuild | 53 |
5 files changed, 144 insertions, 0 deletions
diff --git a/dev-python/pydl/Manifest b/dev-python/pydl/Manifest new file mode 100644 index 000000000000..5b1ef20eae6d --- /dev/null +++ b/dev-python/pydl/Manifest @@ -0,0 +1,6 @@ +AUX pydl-ignore_entry_points.patch 552 BLAKE2B 755300f18bb7c18b2c0b2a92e27062775829b063da91eeab8e293308892ed8c1706bd908825443c18be331d26a9b1e59e2f9c9ccd7b83ea387771dca4c50c4fc SHA512 519d3dfef8c09f4d38cc4c4280c3a48c31201badd8c927d905f052f3245eca17e3c479d98b10d3304f93b78049d02758402252910934113d35290fda6e78790e +DIST pydl-0.5.3.tar.gz 687705 BLAKE2B 3aa7e3c6bac5fabc0326cfdcc3cead4b12395d496a1aae95c6f60906f11635fcbdee085f3a5412b45c499c49daa88e454b78b70217a3ceab7effe64a7ec8e96b SHA512 6a18fabdbcfe84e296289c41453eaf549ab7a56f9fcc11720359cf284ba99075e5ec33539ce32118c6982ba1b3a72b54fa307f7fec21adb5b317bda0a9de84d2 +DIST pydl-0.5.4.tar.gz 697024 BLAKE2B c8a078b6dbe5ea26cca5fa26909b869730b753a7ef842a1610182296b53a6f28ac3e7b41ebda94d42217d324e88cce498928976477552a1aab070cb32a61338e SHA512 9a9d086cf42b8cc4364b0079b2af17b1b25090865cc99badef78380b99cf6e2ff0de514ff17e60536c62f85a0bf613a52530a10ab4eb45984a0c45969d332682 +EBUILD pydl-0.5.3.ebuild 1338 BLAKE2B 43f0550f872942843c2ddf49d95aaf0f139795d7baf64e22f6e43e1fdcb10b1bb0f971a49969334e29e40a1cca1e22ff480dbae586187d0282d432130b75e19e SHA512 6d8b7e55f6bfb8f960ebbaa325be3264fd6ede9eddc13f1fd78aff3f10f1bc9821edfa6ab9c8456e75c299f9c66cf3fc824133768ffd40df444170a0e53849ce +EBUILD pydl-0.5.4.ebuild 1342 BLAKE2B 173daa5efec63b2f9dd8fd484def402006681b982a16e9144b661005a11cc57995863e99da1037da5820239a2c6494662d63f335fa3666f51d956e1f1a5ad3c7 SHA512 af5ecee2f6b2c180569a45583046a4010d184bae4e8006b7d72e1685054c9fd1e39b7ec337e530f3b9621d8a80afb5cc427275e63d2f861bc0c32ae4ac41b839 +MISC metadata.xml 702 BLAKE2B b209982ccd9b39018e6c4abcfcc0687d179499383f12326ee5e4d311f7bb849416f4236b30622be6dfbb3ac7f1a33b9a8d0feaa26c50ebeefff0756d07a834c3 SHA512 8cbcc10035c042dc6e50952605e1049a07a39db7ecf4ae47752b95004260ace7650d00d5727bb5a64836817af28428d7336afbcff0dfc4bb75f39b654a2cf4f9 diff --git a/dev-python/pydl/files/pydl-ignore_entry_points.patch b/dev-python/pydl/files/pydl-ignore_entry_points.patch new file mode 100644 index 000000000000..26b3abac6538 --- /dev/null +++ b/dev-python/pydl/files/pydl-ignore_entry_points.patch @@ -0,0 +1,14 @@ +Author: Vincent Prat <vinceprat@free.fr> +Description: Ignore entry points to avoid creating executables +--- a/setup.cfg ++++ b/setup.cfg +@@ -31,6 +31,6 @@ + github_project = weaverba137/pydl + + [entry_points] +-get_juldate = pydl.goddard.astro:get_juldate_main +-hogg_iau_name = pydl.pydlutils.misc:hogg_iau_name_main +-compute_templates = pydl.pydlspec2d.spec1d:template_input_main ++#get_juldate = pydl.goddard.astro:get_juldate_main ++#hogg_iau_name = pydl.pydlutils.misc:hogg_iau_name_main ++#compute_templates = pydl.pydlspec2d.spec1d:template_input_main diff --git a/dev-python/pydl/metadata.xml b/dev-python/pydl/metadata.xml new file mode 100644 index 000000000000..9c578b94db55 --- /dev/null +++ b/dev-python/pydl/metadata.xml @@ -0,0 +1,18 @@ +<?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"> + PyDL consists of Python replacements for functions that are part of the IDL + built-in library or part of astronomical IDL libraries. + The emphasis is on reproducing results of the astronomical library + functions. + Only the bare minimum of IDL built-in functions are implemented to support this. + </longdescription> + <upstream> + <remote-id type="pypi">pydl</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pydl/pydl-0.5.3.ebuild b/dev-python/pydl/pydl-0.5.3.ebuild new file mode 100644 index 000000000000..995181116729 --- /dev/null +++ b/dev-python/pydl/pydl-0.5.3.ebuild @@ -0,0 +1,53 @@ +# 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 virtualx xdg-utils + +DESCRIPTION="Library of IDL astronomy routines converted to Python" +HOMEPAGE="https://pypi.org/project/pydl/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="doc test" + +RDEPEND=" + dev-python/astropy[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/astropy-helpers[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +PATCHES=( ${FILESDIR}/${PN}-ignore_entry_points.patch ) + +python_prepare_all() { + # use system astropy-helpers instead of bundled one + sed -i -e '/auto_use/s/True/False/' setup.cfg || die + xdg_environment_reset + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + python_setup + VARTEXFONTS="${T}"/fonts \ + MPLCONFIGDIR="${BUILD_DIR}" \ + PYTHONPATH="${BUILD_DIR}"/lib \ + esetup.py build_sphinx --no-intersphinx + fi +} + +python_test() { + virtx esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/pydl/pydl-0.5.4.ebuild b/dev-python/pydl/pydl-0.5.4.ebuild new file mode 100644 index 000000000000..2d4fc1194004 --- /dev/null +++ b/dev-python/pydl/pydl-0.5.4.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit distutils-r1 virtualx xdg-utils + +DESCRIPTION="Library of IDL astronomy routines converted to Python" +HOMEPAGE="https://pypi.org/project/pydl/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="doc test" + +RDEPEND=" + dev-python/astropy[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/astropy-helpers[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +PATCHES=( ${FILESDIR}/${PN}-ignore_entry_points.patch ) + +python_prepare_all() { + # use system astropy-helpers instead of bundled one + sed -i -e '/auto_use/s/True/False/' setup.cfg || die + xdg_environment_reset + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + python_setup + VARTEXFONTS="${T}"/fonts \ + MPLCONFIGDIR="${BUILD_DIR}" \ + PYTHONPATH="${BUILD_DIR}"/lib \ + esetup.py build_sphinx --no-intersphinx + fi +} + +python_test() { + virtx esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} |