summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/pydl/Manifest1
-rw-r--r--dev-python/pydl/files/pydl-ignore_entry_points.patch14
-rw-r--r--dev-python/pydl/pydl-0.5.3.ebuild54
3 files changed, 69 insertions, 0 deletions
diff --git a/dev-python/pydl/Manifest b/dev-python/pydl/Manifest
index 237e241f756d..4c299da3a2ea 100644
--- a/dev-python/pydl/Manifest
+++ b/dev-python/pydl/Manifest
@@ -1 +1,2 @@
DIST pydl-0.5.2.tar.gz 687455 SHA256 d6a7442b67785e4f239d1fe8a2be490b5db4b536d4365572adbb6222fddb4dcd SHA512 17608441b5a78dda2155646757e6c573030d2d2dd5bb643852cede14aca64c5a8efd66007fe63f084bdb7ef8d131df51b2f28d7e87a673cb100983f89a0899e7 WHIRLPOOL 6310c8cca95e054e70e0619e3f0150997f15efca85c788c177ce47bc1a3cd14297d7279bef338e8e5e5087530fc120158061df54ff3ccce635c1c05ae54f48f4
+DIST pydl-0.5.3.tar.gz 687705 SHA256 ad9c84b28c25f86411f836d5a1c9267d9e288dc4cffaa7b10843dbbe8e86b33f SHA512 6a18fabdbcfe84e296289c41453eaf549ab7a56f9fcc11720359cf284ba99075e5ec33539ce32118c6982ba1b3a72b54fa307f7fec21adb5b317bda0a9de84d2 WHIRLPOOL cac67d0e8ff19abe721b3c4865ce1faa813a76996b98481715fa33ea1da04174d4932badf0179cf87ae31e738744a76c36d33ac60cb4e6dcf7c408fc39e6e79d
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/pydl-0.5.3.ebuild b/dev-python/pydl/pydl-0.5.3.ebuild
new file mode 100644
index 000000000000..10d305a3fcbc
--- /dev/null
+++ b/dev-python/pydl/pydl-0.5.3.ebuild
@@ -0,0 +1,54 @@
+# 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 virtualx xdg-utils
+
+DESCRIPTION="Library of IDL astronomy routines converted to Python"
+HOMEPAGE="https://pypi.python.org/pypi/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
+}