summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2012-11-19 07:38:48 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2012-11-19 07:38:48 +0000
commitd2bdc614dd94f8450d01aa8568c4571cca31141c (patch)
tree509b36eafa946d01cd7cd4030d143b1fdf233ab0 /sci-astronomy
parentInstalling more headers (diff)
downloadhistorical-d2bdc614dd94f8450d01aa8568c4571cca31141c.tar.gz
historical-d2bdc614dd94f8450d01aa8568c4571cca31141c.tar.bz2
historical-d2bdc614dd94f8450d01aa8568c4571cca31141c.zip
Drop inherit of eutils.eclass, introduce new dependencies for tests, simplify doc_compile, run tests, fix doc install path wrt #443876 by Diego Elio Pettenò <flameeyes@gentoo.org>, don't install tests
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64 Manifest-Sign-Key: 0x5D21B852895192F9
Diffstat (limited to 'sci-astronomy')
-rw-r--r--sci-astronomy/pyephem/ChangeLog7
-rw-r--r--sci-astronomy/pyephem/Manifest20
-rw-r--r--sci-astronomy/pyephem/pyephem-3.7.5.1.ebuild36
3 files changed, 50 insertions, 13 deletions
diff --git a/sci-astronomy/pyephem/ChangeLog b/sci-astronomy/pyephem/ChangeLog
index 529bc3b10b90..dc8bdb687f8d 100644
--- a/sci-astronomy/pyephem/ChangeLog
+++ b/sci-astronomy/pyephem/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-astronomy/pyephem
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/ChangeLog,v 1.18 2012/08/05 19:20:35 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/ChangeLog,v 1.19 2012/11/19 07:38:41 xarthisius Exp $
+
+ 19 Nov 2012; Kacper Kowalik <xarthisius@gentoo.org> pyephem-3.7.5.1.ebuild:
+ Drop inherit of eutils.eclass, introduce new dependencies for tests, simplify
+ doc_compile, run tests, fix doc install path wrt #443876 by Diego Elio Pettenò
+ <flameeyes@gentoo.org>, don't install tests
05 Aug 2012; Sébastien Fabbro <bicatali@gentoo.org> -pyephem-3.7.4.1.ebuild,
metadata.xml:
diff --git a/sci-astronomy/pyephem/Manifest b/sci-astronomy/pyephem/Manifest
index deaeaaad91ca..b9ee1a57825f 100644
--- a/sci-astronomy/pyephem/Manifest
+++ b/sci-astronomy/pyephem/Manifest
@@ -2,13 +2,23 @@
Hash: SHA256
DIST pyephem-3.7.5.1.tar.gz 703441 SHA256 f24f8fc23c493fb842b44defc539762351a1d46b85f3d4f5043a002066afb50d SHA512 e26baec13c150350bbb84a28a1572c770642fe9a149a7036b2d6f0a4db8bdefaa7c762c1d24a7bb0607a7ed39684c081a1622ef395fd7590d22d80a3d3e68286 WHIRLPOOL 98cb525e6acc15e479e23bea83b753b1b2859f97338f666e1e2be5f7a0829868abbec8856c3417fd2361f30d488dc038e1e65883b1113e8c022b80e33fd1f75b
-EBUILD pyephem-3.7.5.1.ebuild 988 SHA256 4f0655178af1df4e33b7aeef0740864bf22e8bcce20ed10de3206de1ea4be3ee SHA512 114bb4f8f93c34fb2c2b56df338bee81842fe1424bd0ec37d97ca4f5b50976e72cba7a0d7b5fe1dc93f69933b34bad0dd5b3e4aa45ac10472911b415b0863836 WHIRLPOOL d9869715256b77b8079b403338381795639a70e3adb597899cd6e554a99b5429dc83621268565fe37f82f39e3bb4c5a7a46c50f0bc977abf9a776a44354ae321
-MISC ChangeLog 2982 SHA256 e488467ffc275ed3c2c1485ee1d1191d7e19a58bcfb6c3470cce5529d2ee6edc SHA512 f7e4e0cc51245c68126d63d7a23ff146a26e4d26117db7d85b41098998b88b12e56ea9c825dd46e3f3bc8e82a7d89b157d4cbf85a362fbc20a9a6aace5edee6a WHIRLPOOL 8bf1894d2c912f9a1a693e8697acec2df2964852c68a4e3c22bcd6edb360952649e379200ec9bdba2f49cead0643de46dc911a8f2535978bb90ccc9cebb572f1
+EBUILD pyephem-3.7.5.1.ebuild 1513 SHA256 e2df8e841fb99982055b8118c49b2b783dd8463eb334ce13f8d3852561b2151d SHA512 616250a2e55f2926e56bbe69406fd0c0174f8c6704d387333041c9985e2cb953458ad70f75a2153b2952aa59b7fdf0a41b3f76ff4efdde882f66a33a8557b1ec WHIRLPOOL d8c5d771fa08ea3227977cd8f2a9ec4687d0f8b1502e729f3f1228245cdb14ce5979c27657a7e5b26595e05d8df9e35978e37f82fdc1f283be876f39419c00aa
+MISC ChangeLog 3271 SHA256 20f59f06d87f1ea4836beb5479cc5d72c8144e09db5a7744808d9902f2e4715c SHA512 6b370c39f2947f1aafb6fdd26158f8263a1f80a624080d58442d4e7ebfb9915e3b224de7a731e4bd7de05e63280d1b9bc0e1aa0f95bc5447e769f7b630330b32 WHIRLPOOL f8ad40d1d9d04fcaa025a90454d75fd0d3147bab6f68b42134bcbf48115e4d337adcc8819788ff5932609dee54bbaf0e0d3e760554a418aaa72b26bca222b3fa
MISC metadata.xml 850 SHA256 acc536d33b99c76c5db655ad53ed756a7ad4477bf7621aace9c327e97a7f5c6c SHA512 2251727f191ea45669e7e8e9b52b6874c0ea8abbe3af46e0dab9764faaef31d0450050cf82c9a485b2689906c6497cd9bf2ebf4cf6bbeeed3a7afd1ce90fa9bb WHIRLPOOL f017a0428a31b1047c715fec9a815d7fdca8aba833f1fff5da2e57412554aab05fb5930c14c146d03256f4d29af69210de9ec333ce96ad62016cc8522b42e20b
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAlAex4kACgkQ1ycZbhPLE2D+9wCgoyli53FV2JJvXVFGghTcAdf7
-YBYAn1NwqnzvdEa2ba2/t/oTEge6q7Lt
-=Do7D
+iQIcBAEBCAAGBQJQqeIXAAoJEF0huFKJUZL5/LMP/RLXKCLqH9bsIPMKi9D/qnSj
+LUTWIz/Bq9nmt2B0Nkbunt2//UZrPyESylfeb58RypslcR1x9HurgVAwbINAwetW
+ua+jxCIukmBoB9yDA6s6ae6WIyBxmPX4bcWg+srEJ8YC8ekNhUT37EB6pk3Xtfoa
+yy9aiEmpLVxU9nygy5OHO5w+c+pkP8dheRN0a6B/Y6yGRd1a1mGm0pL66ZhbaX7p
+IDmQKKiRqWBUup60UqjwqhWFpGtwkxP4ezOC4mSXWbovxp800Z1sKB3PFlUDBrax
++rpJm8ilmaphSkjZzqUEttmhQuzYlKF6SUp8g1TIVyAP8TzqCS//CiBhYRRt66DH
+ykTOsTKrWCi4zI13MHC6ruXIB+ePdEhvvMl9GoZWxFgeBD7bbulfxSihl+tAg6e0
+hw8bdb/vRNK9xihxvD5N/ONC3nj/4okkbzjZZfiT+RHHQscC33mmkydi2zeShCdR
+zenw9IkOeV4Zq9DIdSfK7uuDQnJMtboQxewgbFX6a785cgxqz2bukMCL7QPLR/S7
+OEHKITUXby5cfUL+9photfvXNv4Ro2+o4DJ8zunKmflEZKM3JaBJiHFKe8UQ4bJ/
+FQKEvDKw/G27UHQTMqXknRjfx12vOA2KnNb/qtnOrpFL2/gi+QdWWP4lPJB7rUI4
+LvxXCmeZtxswntV/dFMz
+=N8EC
-----END PGP SIGNATURE-----
diff --git a/sci-astronomy/pyephem/pyephem-3.7.5.1.ebuild b/sci-astronomy/pyephem/pyephem-3.7.5.1.ebuild
index ab874da60ef9..09c1da6e07de 100644
--- a/sci-astronomy/pyephem/pyephem-3.7.5.1.ebuild
+++ b/sci-astronomy/pyephem/pyephem-3.7.5.1.ebuild
@@ -1,24 +1,29 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/pyephem-3.7.5.1.ebuild,v 1.3 2012/08/05 19:18:28 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/pyephem-3.7.5.1.ebuild,v 1.4 2012/11/19 07:38:41 xarthisius Exp $
EAPI=4
+
PYTHON_DEPEND="2:2.5"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.4 3.* *-jython 2.7-pypy-*"
-inherit distutils eutils
+inherit distutils
DESCRIPTION="Astronomical routines for the python programming language"
-LICENSE="LGPL-3"
HOMEPAGE="http://rhodesmill.org/pyephem/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
IUSE="doc"
+
+DEPEND="doc? ( dev-python/sphinx )
+ test? ( || ( dev-lang/python:2.7 dev-python/unittest2 ) )"
RDEPEND=""
-DEPEND="doc? ( dev-python/sphinx )"
+
+PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
src_prepare() {
# don't install rst files
@@ -29,12 +34,29 @@ src_prepare() {
src_compile() {
distutils_src_compile
if use doc; then
- cd src/ephem/doc
- PYTHONPATH=../../.. emake html
+ PYTHONPATH=. emake -C src/ephem/doc html
fi
}
+src_test() {
+ testing() {
+ if [[ ${PYTHON_ABI} == "2.7" ]]; then
+ PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib*)" \
+ "$(PYTHON)" -m unittest discover -s src/ephem
+ else
+ PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib*)" \
+ unit2-${PYTHON_ABI} discover -s src/ephem
+ fi
+ }
+ python_execute_function testing
+}
+
src_install() {
distutils_src_install
- use doc && dohtml -r src/ephem/doc/.build/html/*
+ use doc && dohtml -r src/ephem/doc/_build/html/*
+
+ delete_tests() {
+ rm -rf "${ED}$(python_get_sitedir)/ephem/tests"
+ }
+ python_execute_function -q delete_tests
}