diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2014-08-26 21:34:51 +0000 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2014-08-26 21:34:51 +0000 |
commit | b182e78a39a927d898e71ef8389bd60efd8dc560 (patch) | |
tree | 0edf2b812b9b9a69146fb108e60e62b6d316f94e /sci-visualization/yt | |
parent | Remove needless USE=bash-completion. Install completion file using a correct ... (diff) | |
download | gentoo-2-b182e78a39a927d898e71ef8389bd60efd8dc560.tar.gz gentoo-2-b182e78a39a927d898e71ef8389bd60efd8dc560.tar.bz2 gentoo-2-b182e78a39a927d898e71ef8389bd60efd8dc560.zip |
Initial import, ebuild written by me
(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 0x5D21B852895192F9)
Diffstat (limited to 'sci-visualization/yt')
-rw-r--r-- | sci-visualization/yt/ChangeLog | 9 | ||||
-rw-r--r-- | sci-visualization/yt/files/yt-3.0-missing_package.patch | 12 | ||||
-rw-r--r-- | sci-visualization/yt/metadata.xml | 15 | ||||
-rw-r--r-- | sci-visualization/yt/yt-3.0.ebuild | 50 |
4 files changed, 86 insertions, 0 deletions
diff --git a/sci-visualization/yt/ChangeLog b/sci-visualization/yt/ChangeLog new file mode 100644 index 000000000000..073737b61355 --- /dev/null +++ b/sci-visualization/yt/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for sci-visualization/yt +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/yt/ChangeLog,v 1.1 2014/08/26 21:34:51 xarthisius Exp $ + +*yt-3.0 (26 Aug 2014) + + 26 Aug 2014; Kacper Kowalik <xarthisius@gentoo.org> + +files/yt-3.0-missing_package.patch, +metadata.xml, +yt-3.0.ebuild: + Initial import, ebuild written by me diff --git a/sci-visualization/yt/files/yt-3.0-missing_package.patch b/sci-visualization/yt/files/yt-3.0-missing_package.patch new file mode 100644 index 000000000000..164445bb08a4 --- /dev/null +++ b/sci-visualization/yt/files/yt-3.0-missing_package.patch @@ -0,0 +1,12 @@ +diff --git a/yt/analysis_modules/setup.py b/yt/analysis_modules/setup.py +index 423fb52..f06d4e6 100644 +--- a/yt/analysis_modules/setup.py ++++ b/yt/analysis_modules/setup.py +@@ -6,6 +6,7 @@ def configuration(parent_package='', top_path=None): + config.make_config_py() # installs __config__.py + config.add_subpackage("absorption_spectrum") + config.add_subpackage("cosmological_observation") ++ config.add_subpackage("halo_analysis") + config.add_subpackage("halo_finding") + config.add_subpackage("halo_mass_function") + config.add_subpackage("level_sets") diff --git a/sci-visualization/yt/metadata.xml b/sci-visualization/yt/metadata.xml new file mode 100644 index 000000000000..fc0769f7f818 --- /dev/null +++ b/sci-visualization/yt/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci</herd> + <maintainer> + <email>xarthisius@gentoo.org</email> + <name>Kacper Kowalik</name> + </maintainer> + <longdescription>yt is an analysis and visualization system written in Python, + designed for use with Astrophysical Simulation codes. yt can process data in a + myriad of ways and make a variety of visualizations. It is designed to be portable + across simulation codes, and it is developed by developers from a variety of + institutions and backgrounds. + </longdescription> +</pkgmetadata> diff --git a/sci-visualization/yt/yt-3.0.ebuild b/sci-visualization/yt/yt-3.0.ebuild new file mode 100644 index 000000000000..e6599c0d5d32 --- /dev/null +++ b/sci-visualization/yt/yt-3.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/yt/yt-3.0.ebuild,v 1.1 2014/08/26 21:34:51 xarthisius Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 flag-o-matic + +DESCRIPTION="Astrophysical Simulation Analysis and Vizualization package" +HOMEPAGE="http://yt-project.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +CDEPEND="media-libs/freetype:2 + media-libs/libpng:0= + sci-libs/hdf5:=" +RDEPEND="${CDEPEND} + dev-python/ipython[notebook,${PYTHON_USEDEP}] + dev-python/pyx[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/h5py[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/sympy[${PYTHON_USEDEP}]" +DEPEND="${CDEPEND} + >=dev-python/cython-0.19[${PYTHON_USEDEP}] + >=dev-python/setuptools-0.7[${PYTHON_USEDEP}] + test? ( ${RDEPEND} + dev-python/nose[${PYTHON_USEDEP}] + )" + +PATCHES=( "${FILESDIR}"/${P}-missing_package.patch ) + +python_prepare_all() { + append-flags -fno-strict-aliasing + sed -i yt/utilities/setup.py \ + -e "s:/usr:${EPREFIX}/usr:g" || die + distutils-r1_python_prepare_all +} + +python_test() { + pushd "${BUILD_DIR}"/lib > /dev/null + nosetests -sv || die "Tests fail with ${EPYTHON} ${PWD}" + popd > /dev/null +} |