diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2012-06-19 16:01:30 +0000 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2012-06-19 16:01:30 +0000 |
commit | ea522c2849a4ed00171b72a5058ccec6478e8555 (patch) | |
tree | fdadc328285bc8795fd43c03fe54a826b548616f /dev-python/astropy | |
parent | dev-tcltk/tcllib: Dropped old, bump to EAPI=4, add missing dep on dev-lang/tcl (diff) | |
download | historical-ea522c2849a4ed00171b72a5058ccec6478e8555.tar.gz historical-ea522c2849a4ed00171b72a5058ccec6478e8555.tar.bz2 historical-ea522c2849a4ed00171b72a5058ccec6478e8555.zip |
Initial import, ebuild written by me
Package-Manager: portage-2.2.0_alpha110/cvs/Linux x86_64
Diffstat (limited to 'dev-python/astropy')
-rw-r--r-- | dev-python/astropy/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/astropy/Manifest | 25 | ||||
-rw-r--r-- | dev-python/astropy/astropy-0.1.ebuild | 48 | ||||
-rw-r--r-- | dev-python/astropy/files/astropy-0.1-expat.patch | 33 | ||||
-rw-r--r-- | dev-python/astropy/metadata.xml | 5 |
5 files changed, 121 insertions, 0 deletions
diff --git a/dev-python/astropy/ChangeLog b/dev-python/astropy/ChangeLog new file mode 100644 index 000000000000..08dcc3d4cb46 --- /dev/null +++ b/dev-python/astropy/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-python/astropy +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/astropy/ChangeLog,v 1.1 2012/06/19 16:01:30 xarthisius Exp $ + +*astropy-0.1 (19 Jun 2012) + + 19 Jun 2012; Kacper Kowalik <xarthisius@gentoo.org> +astropy-0.1.ebuild, + +files/astropy-0.1-expat.patch, +metadata.xml: + Initial import, ebuild written by me + diff --git a/dev-python/astropy/Manifest b/dev-python/astropy/Manifest new file mode 100644 index 000000000000..cabaa10cad36 --- /dev/null +++ b/dev-python/astropy/Manifest @@ -0,0 +1,25 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX astropy-0.1-expat.patch 1108 RMD160 354afe0606a1637764a166d385b56fa826560a4b SHA1 ac7adaa80af462436a9df31ea5bab4a8739f1b7d SHA256 9e929cfaa1ebd2d0f82d185dd7f72924f21f655105ccd843f620143654bf4ab0 +DIST astropy-0.1.tar.gz 3109566 RMD160 9dc3fc390d3eb15a6e5997e0f6703bef046a2cdd SHA1 89e483a021f94a3e9807a737f8bb3aee93af5a60 SHA256 205f4576b6267a362d96f7b9e913e1f21efd3d7c58b9d58ebc0d2ed69382c540 +EBUILD astropy-0.1.ebuild 1221 RMD160 2463590dd5d37e09a1dd43ca35a746784b2a4171 SHA1 14877c2cbe9d66a20e06b8a84f897c8f6b39b962 SHA256 78293e030cf3e82469582c5cc766a6009726489cc26228a98959e0d2bf607833 +MISC ChangeLog 405 RMD160 62900f3ebac0a92d82b33ea5f51e4e740ce9e339 SHA1 5f687d8756e8a874106287aa45258ccc06287849 SHA256 fee77ebd1070cd1834203147b4ae1f8b279f3edc27916174d6f023e481e3f35f +MISC metadata.xml 167 RMD160 07c803e02e26a79507a9fb624b5de3fc80d4db71 SHA1 3b4fb3d3b1202d6d0c8e8c76f91534c336c20065 SHA256 322f949bfa0080707ab4e572051c24f006249c363f57de6c9b70f75ae0476ed5 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQIcBAEBCAAGBQJP4KJjAAoJEF0huFKJUZL5R88P/0v0ydH9Nf039wcs8b1ZsOaY +/Zgo1df4y6a97cFh4YxxJ5PRPKi67XZ1lYnzNni6oxFuAQ2zFKI6FrxTMU0aP4FN +pu6GFIhc2e9ZF457ojFq7/X/+WZZJx80M1UVJW+3qXyqDqEumo++Xb8Pl/4YPkM4 +TzEWlhY/XIHgmzqaYJhd6oD/ma1drPL9iBXApPnKvbugjeyY0lx0w08DzNaEzwhR +HLDRY+3md7Q7G808GM4ZFAy1j2eOzbDJojeIqV5lbBw3P9qufdY9uSKXkijFj3xi +icZ94YwaD793t43WoDLy3/GI+dYP1a0dMCD5tqWLT3U4sdKRhJ1ysq0u8il51Lji +g96KJVE5p5EX0BY6hOD9RXCSZRcB5JzEwaH+Oi8fAGXfp+oExKakVfZS7EMJ2Id4 +jKtFMsqZoCRf90KVV7Dkl3d+LgOzoxJwvWBtKI/aEuSTu27ecuSHkwbh/BBs9MD2 +0to9Fb63DIGJlsGaxzS0Zcf6+ITdlF/aJcw7ptH+gfHZONHcASRsX839CKblhhbN +JUAN95j7vS+RqNgrnC2xaLcKWNoEvEB46/S8grtrcXXQ/xDx7BA43nZlHNymQRM9 +g4z171bRs6mA58aCYmjs+AtMEXp07wzf6GLKyvanpa4nAW1FZCCKiDDxjr87AA8l +QX9qdYI4PVwheLTfyRYs +=KCQ4 +-----END PGP SIGNATURE----- diff --git a/dev-python/astropy/astropy-0.1.ebuild b/dev-python/astropy/astropy-0.1.ebuild new file mode 100644 index 000000000000..516dd39558a9 --- /dev/null +++ b/dev-python/astropy/astropy-0.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/astropy/astropy-0.1.ebuild,v 1.1 2012/06/19 16:01:30 xarthisius Exp $ + +EAPI=4 + +SUPPORT_PYTHON_ABIS="1" +DISTUTILS_SRC_TEST=setup.py + +inherit eutils distutils + +DESCRIPTION="Collection of common tools needed for performing astronomy and astrophysics" +HOMEPAGE="http://astropy.org/ https://github.com/astropy/astropy" +SRC_URI="http://github.com/downloads/${PN}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc test" + +RDEPEND="dev-libs/expat + dev-python/numpy" +DEPEND="${RDEPEND} + dev-python/configobj + doc? ( dev-python/sphinx ) + test? ( dev-python/pytest )" + +src_prepare() { + # Remove most of the bundled deps + rm -rf cextern ${PN}/extern + export ASTROPY_USE_SYSTEM_PYTEST=1 + epatch "${FILESDIR}"/${P}-expat.patch + sed -e 's/from ..extern.configobj //g' \ + -i astropy/config/configuration.py || die + distutils_src_prepare +} + +src_compile() { + distutils_src_compile + if use doc; then + PYTHONPATH=$(ls -d "${S}"/build-$(PYTHON -f --ABI)/lib*) emake html -C docs + fi +} + +src_install() { + distutils_src_install + use doc && dohtml -r docs/_build/html/ +} diff --git a/dev-python/astropy/files/astropy-0.1-expat.patch b/dev-python/astropy/files/astropy-0.1-expat.patch new file mode 100644 index 000000000000..5bc1b294cfe2 --- /dev/null +++ b/dev-python/astropy/files/astropy-0.1-expat.patch @@ -0,0 +1,33 @@ +--- astropy/utils/xml/setup_package.py.orig 2012-06-18 07:48:04.000000000 +0200 ++++ astropy/utils/xml/setup_package.py 2012-06-19 12:43:29.685002916 +0200 +@@ -4,7 +4,6 @@ + + + def get_extensions(build_type='release'): +- EXPAT_DIR = 'cextern/expat/lib' + XML_DIR = 'astropy/utils/xml/src' + + defines = [("HAVE_EXPAT_CONFIG_H", 1)] +@@ -21,18 +20,14 @@ + # place of ours. + extra_link_args = [ + '-Wl,--version-script={0}'.format( +- join(XML_DIR, 'iterparse.map')) +- ] ++ join(XML_DIR, 'iterparse.map')), ++ '-lexpat'] + else: + extra_link_args = [] + + return [Extension( + "astropy.utils.xml._iterparser", +- [join(XML_DIR, "iterparse.c"), +- join(EXPAT_DIR, "xmlparse.c"), +- join(EXPAT_DIR, "xmlrole.c"), +- join(EXPAT_DIR, "xmltok.c"), +- join(EXPAT_DIR, "xmltok_impl.c")], ++ [join(XML_DIR, "iterparse.c")], + define_macros=defines, +- include_dirs=[XML_DIR, EXPAT_DIR], ++ include_dirs=[XML_DIR], + extra_link_args=extra_link_args)] diff --git a/dev-python/astropy/metadata.xml b/dev-python/astropy/metadata.xml new file mode 100644 index 000000000000..b2d57e57a6f2 --- /dev/null +++ b/dev-python/astropy/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci-astronomy</herd> +</pkgmetadata> |