summaryrefslogtreecommitdiff
path: root/sci-astronomy
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-20 07:21:06 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-20 07:21:06 +0000
commit2ba9a1319f58c25dfe0d28321e8be53e667f94ac (patch)
tree6d1a6a28589321f72fa6d7f4d313da919de8b248 /sci-astronomy
parent34f30c80d0f2549965255dae1043e028b027869a (diff)
downloadbaldeagleos-repo-2ba9a1319f58c25dfe0d28321e8be53e667f94ac.tar.gz
baldeagleos-repo-2ba9a1319f58c25dfe0d28321e8be53e667f94ac.tar.xz
baldeagleos-repo-2ba9a1319f58c25dfe0d28321e8be53e667f94ac.zip
Adding metadata
Diffstat (limited to 'sci-astronomy')
-rw-r--r--sci-astronomy/pyephem/Manifest1
-rw-r--r--sci-astronomy/pyephem/pyephem-4.1.5.ebuild2
-rw-r--r--sci-astronomy/pyephem/pyephem-4.2.1.ebuild58
3 files changed, 60 insertions, 1 deletions
diff --git a/sci-astronomy/pyephem/Manifest b/sci-astronomy/pyephem/Manifest
index 607ff73daf89..f65728809cf9 100644
--- a/sci-astronomy/pyephem/Manifest
+++ b/sci-astronomy/pyephem/Manifest
@@ -1 +1,2 @@
DIST pyephem-4.1.5.gh.tar.gz 2662791 BLAKE2B a30d3103b0d626e0316e85d1188dc2e93782fd87db6792dd6933fd9efb1b3fd7be7073486ec45c96e068b7bf9e471bf369a5867af87df5b5d50e16fc1f1a0e4c SHA512 f462df23060abacc69698e67526503302306953891c92920f77bc67d977a9691ed0d176d2743fa2c7c95cb3ff558f5e4a77fa6acff82cff243b771ed7ad095c9
+DIST pyephem-4.2.1.gh.tar.gz 2668251 BLAKE2B f81294d50ec81ea4006513982655012a2e891c269be0713555006a6be79b58b7c6c027fd6e9d8ea4737568670c8b40f2a17a9315f21d064736b1ee1cf365e97c SHA512 3de83947475279d03256000eb8d604c04dcad28de4e5bba5268bc0073a96b1ccde16701792fbd923477070258d9bec305d1a68e5233ab6de5b90aa8641e95f47
diff --git a/sci-astronomy/pyephem/pyephem-4.1.5.ebuild b/sci-astronomy/pyephem/pyephem-4.1.5.ebuild
index 4e29ac53447d..ef1d0d790e21 100644
--- a/sci-astronomy/pyephem/pyephem-4.1.5.ebuild
+++ b/sci-astronomy/pyephem/pyephem-4.1.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
diff --git a/sci-astronomy/pyephem/pyephem-4.2.1.ebuild b/sci-astronomy/pyephem/pyephem-4.2.1.ebuild
new file mode 100644
index 000000000000..8242ed1d754d
--- /dev/null
+++ b/sci-astronomy/pyephem/pyephem-4.2.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..14} )
+
+inherit distutils-r1
+
+DESCRIPTION="Astronomical routines for the Python programming language"
+HOMEPAGE="https://rhodesmill.org/pyephem/"
+SRC_URI="https://github.com/brandon-rhodes/pyephem/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc"
+
+BDEPEND="doc? ( dev-python/sphinx )"
+
+EPYTEST_DESELECT=(
+ # Can't find its test files (class not loaded properly in test env?)
+ # bug #855461
+ tests/test_jpl.py::JPLTest::runTest
+)
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ # Don't install rst files by default
+ sed -i -e "s:'doc/\*\.rst',::" setup.py || die
+ distutils-r1_src_prepare
+}
+
+src_compile() {
+ distutils-r1_src_compile
+ if use doc; then
+ PYTHONPATH=. emake -C ephem/doc html
+ fi
+}
+
+python_test() {
+ cd "${T}" || die
+ epytest --pyargs ephem
+}
+
+src_install() {
+ use doc && HTML_DOCS=( ephem/doc/_build/html/. )
+ distutils-r1_src_install
+}
+
+python_install() {
+ distutils-r1_python_install
+
+ rm -r "${D}$(python_get_sitedir)/ephem/tests" || die
+}