summaryrefslogtreecommitdiff
path: root/dev-python/astroplan
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/astroplan')
-rw-r--r--dev-python/astroplan/Manifest7
-rw-r--r--dev-python/astroplan/astroplan-0.2.1.ebuild56
-rw-r--r--dev-python/astroplan/astroplan-0.2.ebuild56
-rw-r--r--dev-python/astroplan/files/astroplan-0.2-ephem-import.patch11
-rw-r--r--dev-python/astroplan/metadata.xml16
5 files changed, 146 insertions, 0 deletions
diff --git a/dev-python/astroplan/Manifest b/dev-python/astroplan/Manifest
new file mode 100644
index 000000000000..b120428348e2
--- /dev/null
+++ b/dev-python/astroplan/Manifest
@@ -0,0 +1,7 @@
+AUX astroplan-0.2-ephem-import.patch 505 SHA256 61f9e8a3b25d18cc39eab86de9ec85ae6cd668a442d85dfebd840b3d41895440 SHA512 9ea80ff153f9da458d377eb99fefa5f0dfdf448af196150e47bd19d3c5071f975b7746c6fe91c0042e92b3349a44d7c0843025d8069084bd779ebdb7160f0d74 WHIRLPOOL 187fa28f5234569132f8d792c2fc741099cdec1160f29eb6ddfaf006165cffcda76102d79a3dcecc0b8c0b950281d150a01f88831d3ef839cf886adff01e3c0d
+DIST astroplan-0.2.1.tar.gz 270482 SHA256 eec6c517f46a881e9b24e53afca34b5313e11728739b8f2d32053775bb62befb SHA512 baa585ce2b651753b45c6bda78a93b22340b380197338ce3d27d36509c82c29053da237f1f1daf5c12ba08e0da27f7c3cc98daebedb703c944a3e225444f3aff WHIRLPOOL a58611d7b4099b24209dbeea84078794f594a3ee5d088d41ce93ce74c1904c3a4396ea030b0c013973249d53df2d67068f652cf28275d359ba63fb022fbb51e8
+DIST astroplan-0.2.tar.gz 264623 SHA256 427d6a890ea7bc4df0b8d0a4b607d060e6e2b230fa1224a648217790d8c1cba7 SHA512 ab98402d2b0daf64aea4a10934c8e33097b92d3b7de9a2346fa3e318e672c85966c050f560bb3fc4c247e2fdd4c94a4b158d6a0dff6af9c83d6411613c663bd9 WHIRLPOOL 6ab4ca9daf2daa8a6a16b06b7287473f149cf3261b2ef35a8f29a24f67e7c0d32edeef59c03fd1fe77f3050670a4c9488b4defe6e417f4925581ca300ca6a8f1
+EBUILD astroplan-0.2.1.ebuild 1475 SHA256 12c92290f0761a948f7b5f17ee16975fdccc278a28e968b13bcb3e6ea491d1c7 SHA512 3ca8b8adab62180568c7a45bdc18b9bc38c0286384cc6bfbd214e2a6b31fb30c0b96456eb2272a1878fef74009fa81ef9684d9c690dae7c8577e46489ef29598 WHIRLPOOL 3f67e88ff823ee316ee17fb3f9479ad12bd2e589479deeb48f0a901d0f665bc52e98b6fdaada61ef513b699bcdb89bea048223a4bc144a850010d9a15ebbe83c
+EBUILD astroplan-0.2.ebuild 1466 SHA256 b81deda1d11c693d018a5bdaa9e356ce052193f61bd6e7564f2b150d2b6d9db0 SHA512 09e98ddf77eb2d54edf399ebe711d0fcc87b85b19be63a162b467336e623b9a7e1880c25d3a73632fd512fb8da3c8edd308f057351e2750c2b5108a4f137c8f5 WHIRLPOOL 5466fbc56231b032f718ce577da1325bb1ae925ed6a9df29e46886b0e68cce810bf9db8786ace91f9d047d6f5e3488ff795208d8ed003b3e85d815da428d6068
+MISC ChangeLog 358 SHA256 780369f4f848a0447f102a2b2e0ccd59e0295c5292a622b2c7bb36735b130f51 SHA512 11b4d98b0ef2df1f88692d9330009d15cdef91b6a8eee27f146e1663ee0964879702d696f6595ccac1b814a7b544c5963ad7a6a290e3d6a947ba48aa222b3fe3 WHIRLPOOL 8640c3aa50c97a01ac597f704ba09407d78ed93200e2d2dc1868ba95e991ae25baeace5f31a23a800305b5085c9544d444bebd96f6b84d3f570a036f9660b7fc
+MISC metadata.xml 580 SHA256 edd6856050bd434d4305069934f9cf8a1788b9820def83c19cf6ff11bd94684c SHA512 16cb9da0545ab48966ee589d6f6ed9dbf011efbecf5eeddd3cbca35d1369ea35fe7dee7cf89ea735ca83058b1e2ab8232d2f404cba35d100798fdcc0ab46a083 WHIRLPOOL 72fc6e5c5c9d5d81e4e084a74b9986c643375e12202fce6d9040f12124bff056bcbd56e4188389c65eef7cb1ed0d4683758799f1a0514bec200168bcd245b12a
diff --git a/dev-python/astroplan/astroplan-0.2.1.ebuild b/dev-python/astroplan/astroplan-0.2.1.ebuild
new file mode 100644
index 000000000000..9ed8a4959bf3
--- /dev/null
+++ b/dev-python/astroplan/astroplan-0.2.1.ebuild
@@ -0,0 +1,56 @@
+# 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="Observation planning package for astronomers"
+HOMEPAGE="https://astroplan.readthedocs.org/"
+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}]
+ dev-python/pytz[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/astropy-helpers[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? (
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] )
+ test? ( dev-python/pytest-mpl[${PYTHON_USEDEP}] )"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.2-ephem-import.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() {
+ echo 'backend: Agg' > "${WORKDIR}"/matplotlibrc || die
+ MATPLOTLIBRC="${WORKDIR}" 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/astroplan/astroplan-0.2.ebuild b/dev-python/astroplan/astroplan-0.2.ebuild
new file mode 100644
index 000000000000..83166f96c41b
--- /dev/null
+++ b/dev-python/astroplan/astroplan-0.2.ebuild
@@ -0,0 +1,56 @@
+# 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="Observation planning package for astronomers"
+HOMEPAGE="https://astroplan.readthedocs.org/"
+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}]
+ dev-python/pytz[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/astropy-helpers[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? (
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] )
+ test? ( dev-python/pytest-mpl[${PYTHON_USEDEP}] )"
+
+PATCHES=( "${FILESDIR}"/${P}-ephem-import.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() {
+ echo 'backend: Agg' > "${WORKDIR}"/matplotlibrc || die
+ MATPLOTLIBRC="${WORKDIR}" 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/astroplan/files/astroplan-0.2-ephem-import.patch b/dev-python/astroplan/files/astroplan-0.2-ephem-import.patch
new file mode 100644
index 000000000000..59328290c07f
--- /dev/null
+++ b/dev-python/astroplan/files/astroplan-0.2-ephem-import.patch
@@ -0,0 +1,11 @@
+--- a/astroplan/conftest.py.orig 2016-11-30 23:17:49.057492656 +0000
++++ b/astroplan/conftest.py 2016-11-30 23:18:11.076451659 +0000
+@@ -38,7 +38,7 @@
+ try:
+ PYTEST_HEADER_MODULES['Astropy'] = 'astropy'
+ PYTEST_HEADER_MODULES['pytz'] = 'pytz'
+- PYTEST_HEADER_MODULES['pyephem'] = 'pyephem'
++ PYTEST_HEADER_MODULES['pyephem'] = 'ephem'
+ PYTEST_HEADER_MODULES['matplotlib'] = 'matplotlib'
+ PYTEST_HEADER_MODULES['nose'] = 'nose'
+ PYTEST_HEADER_MODULES['pytest-mpl'] = 'pytest_mpl'
diff --git a/dev-python/astroplan/metadata.xml b/dev-python/astroplan/metadata.xml
new file mode 100644
index 000000000000..b320e5789d60
--- /dev/null
+++ b/dev-python/astroplan/metadata.xml
@@ -0,0 +1,16 @@
+<?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">
+ Astroplan is an observation planning package for astronomers that can help
+ you plan for everything but the clouds.
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">astroplan</remote-id>
+ <remote-id type="github">astropy/astroplan</remote-id>
+ </upstream>
+</pkgmetadata>