diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-physics/qutip |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-physics/qutip')
-rw-r--r-- | sci-physics/qutip/Manifest | 3 | ||||
-rw-r--r-- | sci-physics/qutip/metadata.xml | 22 | ||||
-rw-r--r-- | sci-physics/qutip/qutip-4.2.0.ebuild | 50 |
3 files changed, 75 insertions, 0 deletions
diff --git a/sci-physics/qutip/Manifest b/sci-physics/qutip/Manifest new file mode 100644 index 000000000000..aa945704f4bb --- /dev/null +++ b/sci-physics/qutip/Manifest @@ -0,0 +1,3 @@ +DIST qutip-4.2.0.tar.gz 424805 SHA256 3c7fed0e9b04c0f69dab1555babed1b847d388c0cef9f26fbdc2f4db611d61e7 SHA512 888e569b30a1085162ecfa768967526f5ce34b19e1a1b0f76f1331eb3978159ba321e126a1bc57e0936c5819218f07a336a57c80193b33af1009d1cd87fa95de WHIRLPOOL 8c735c618bb21d51009bf5373d3e1e8d89d3186edcbea1be729daf13bf1fcc7d151bfad176ddf960f7563e1e0fa7e35f095f2c8e9e8c3839ac94ceb408f80e88 +EBUILD qutip-4.2.0.ebuild 1151 SHA256 f51950816dda3b4148e9dcec846c3ace17613b1b91b84445d30357267c1f9887 SHA512 0c3f399b1b684e7805b94f387ce87c275a037de82bd101edeeb0099b326f3ddbe797cf2bc1912a971cd68c0b6cc5d788841d8096889ed3d96f4f192a77d62296 WHIRLPOOL 679000448c54392e44883451eed150a6bb7fe605e04d2672476c93b87ff4332830d79c4a53d4f73170fb64c6e316defcf4be2bd2950d40193d829791b8336d6f +MISC metadata.xml 1166 SHA256 eca450cc7908a8c2e722bcc4aec64ed00eda808a8ff33624a1b94ee152d90d45 SHA512 eedcc69cefe905b4d0f39a106f5b444c9924ba60e2ecea1bdbca8551a946b1008a5e9ec83ef285f201fefd20b4a7bab76f4280f0f6827a3422257c6500e4c4af WHIRLPOOL 273cf85211356350364ab888fdc35f457b8d16fe345b7aa3d4b164e7370f3619f1b24a17c9e2264b028e4e1d03ca5ccb17665fad641f3aa6eaca2bb2819f2cbd diff --git a/sci-physics/qutip/metadata.xml b/sci-physics/qutip/metadata.xml new file mode 100644 index 000000000000..fb7fc53aee2b --- /dev/null +++ b/sci-physics/qutip/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>hendrik@consetetur.de</email> + <name>Hendrik v. Raven (lorem_ipsum)</name> + </maintainer> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription lang="en"> + QuTiP is open-source software for simulating the dynamics of open quantum systems. The QuTiP library depends on the excellent Numpy, Scipy, and Cython numerical packages. In addition, graphical output is provided by Matplotlib. QuTiP aims to provide user-friendly and efficient numerical simulations of a wide variety of Hamiltonians, including those with arbitrary time-dependence, commonly found in a wide range of physics applications such as quantum optics, trapped ions, superconducting circuits, and quantum nanomechanical resonators. + </longdescription> + <upstream> + <remote-id type="github">qutip/qutip</remote-id> + </upstream> +</pkgmetadata> diff --git a/sci-physics/qutip/qutip-4.2.0.ebuild b/sci-physics/qutip/qutip-4.2.0.ebuild new file mode 100644 index 000000000000..e5514134e279 --- /dev/null +++ b/sci-physics/qutip/qutip-4.2.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{5,6} ) + +inherit distutils-r1 toolchain-funcs + +DESCRIPTION="Simulating dynamics of open quantum systems in Python." +HOMEPAGE="http://qutip.org" +SRC_URI="https://github.com/qutip/qutip/archive/v$PV.tar.gz -> $P.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="openmp test" + +RDEPEND="dev-python/cython[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + test? ( dev-python/nose[${PYTHON_USEDEP}] ) +" + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +python_prepare_all() { + sed -i setup.py \ + -e 's/_compiler_flags = .*$/_compiler_flags = []/' || die + + distutils-r1_python_prepare_all +} + +python_configure_all() { + use openmp && mydistutilsargs=( --with-openmp ) +} + +python_test() { + cd "${BUILD_DIR}"/lib* || die + ${EPYTHON} -c "import qutip.testing as qt ; qt.run()" || die +} |