Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/qutip/
Date: Sun, 30 Jul 2017 14:41:56
Message-Id: 1501425700.4727e6ac4b06ea977eb4916cef847559aee30d40.soap@gentoo
1 commit: 4727e6ac4b06ea977eb4916cef847559aee30d40
2 Author: Hendrik v. Raven <hendrik <AT> consetetur <DOT> de>
3 AuthorDate: Wed Jul 12 11:57:40 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 30 14:41:40 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4727e6ac
7
8 sci-physics/qutip: new ebuild
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11 Closes: https://github.com/gentoo/gentoo/pull/5095
12
13 sci-physics/qutip/Manifest | 1 +
14 sci-physics/qutip/metadata.xml | 22 ++++++++++++++++
15 sci-physics/qutip/qutip-4.2.0.ebuild | 50 ++++++++++++++++++++++++++++++++++++
16 3 files changed, 73 insertions(+)
17
18 diff --git a/sci-physics/qutip/Manifest b/sci-physics/qutip/Manifest
19 new file mode 100644
20 index 00000000000..e2753f5f426
21 --- /dev/null
22 +++ b/sci-physics/qutip/Manifest
23 @@ -0,0 +1 @@
24 +DIST qutip-4.2.0.tar.gz 424805 SHA256 3c7fed0e9b04c0f69dab1555babed1b847d388c0cef9f26fbdc2f4db611d61e7 SHA512 888e569b30a1085162ecfa768967526f5ce34b19e1a1b0f76f1331eb3978159ba321e126a1bc57e0936c5819218f07a336a57c80193b33af1009d1cd87fa95de WHIRLPOOL 8c735c618bb21d51009bf5373d3e1e8d89d3186edcbea1be729daf13bf1fcc7d151bfad176ddf960f7563e1e0fa7e35f095f2c8e9e8c3839ac94ceb408f80e88
25
26 diff --git a/sci-physics/qutip/metadata.xml b/sci-physics/qutip/metadata.xml
27 new file mode 100644
28 index 00000000000..fb7fc53aee2
29 --- /dev/null
30 +++ b/sci-physics/qutip/metadata.xml
31 @@ -0,0 +1,22 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <maintainer type="person">
36 + <email>hendrik@××××××××××.de</email>
37 + <name>Hendrik v. Raven (lorem_ipsum)</name>
38 + </maintainer>
39 + <maintainer type="project">
40 + <email>sci@g.o</email>
41 + <name>Gentoo Science Project</name>
42 + </maintainer>
43 + <maintainer type="project">
44 + <email>proxy-maint@g.o</email>
45 + <name>Proxy Maintainers</name>
46 + </maintainer>
47 + <longdescription lang="en">
48 + 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.
49 + </longdescription>
50 + <upstream>
51 + <remote-id type="github">qutip/qutip</remote-id>
52 + </upstream>
53 +</pkgmetadata>
54
55 diff --git a/sci-physics/qutip/qutip-4.2.0.ebuild b/sci-physics/qutip/qutip-4.2.0.ebuild
56 new file mode 100644
57 index 00000000000..e5514134e27
58 --- /dev/null
59 +++ b/sci-physics/qutip/qutip-4.2.0.ebuild
60 @@ -0,0 +1,50 @@
61 +# Copyright 1999-2017 Gentoo Foundation
62 +# Distributed under the terms of the GNU General Public License v2
63 +
64 +EAPI=6
65 +
66 +PYTHON_COMPAT=( python2_7 python3_{5,6} )
67 +
68 +inherit distutils-r1 toolchain-funcs
69 +
70 +DESCRIPTION="Simulating dynamics of open quantum systems in Python."
71 +HOMEPAGE="http://qutip.org"
72 +SRC_URI="https://github.com/qutip/qutip/archive/v$PV.tar.gz -> $P.tar.gz"
73 +
74 +LICENSE="BSD"
75 +SLOT="0"
76 +KEYWORDS="~amd64 ~x86"
77 +IUSE="openmp test"
78 +
79 +RDEPEND="dev-python/cython[${PYTHON_USEDEP}]
80 + dev-python/numpy[${PYTHON_USEDEP}]
81 + dev-python/matplotlib[${PYTHON_USEDEP}]
82 + sci-libs/scipy[${PYTHON_USEDEP}]
83 +"
84 +DEPEND="${RDEPEND}
85 + test? ( dev-python/nose[${PYTHON_USEDEP}] )
86 +"
87 +
88 +pkg_pretend() {
89 + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
90 +}
91 +
92 +pkg_setup() {
93 + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
94 +}
95 +
96 +python_prepare_all() {
97 + sed -i setup.py \
98 + -e 's/_compiler_flags = .*$/_compiler_flags = []/' || die
99 +
100 + distutils-r1_python_prepare_all
101 +}
102 +
103 +python_configure_all() {
104 + use openmp && mydistutilsargs=( --with-openmp )
105 +}
106 +
107 +python_test() {
108 + cd "${BUILD_DIR}"/lib* || die
109 + ${EPYTHON} -c "import qutip.testing as qt ; qt.run()" || die
110 +}