summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2021-02-21 15:01:59 +0100
committerSam James <sam@gentoo.org>2021-02-22 22:18:40 +0000
commit13464329b256ae8337f3c1a30a6c1ca6adbab786 (patch)
treec0d1291259a73f47f2f85b4d93cf1d2bfe7059ca /sci-physics/qmeq
parentwww-apps/novnc: Sync live ebuild (diff)
downloadgentoo-13464329b256ae8337f3c1a30a6c1ca6adbab786.tar.gz
gentoo-13464329b256ae8337f3c1a30a6c1ca6adbab786.tar.bz2
gentoo-13464329b256ae8337f3c1a30a6c1ca6adbab786.zip
sci-physics/qmeq: Port to python 3.{8,9}
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-physics/qmeq')
-rw-r--r--sci-physics/qmeq/qmeq-1.0_p202004.ebuild39
1 files changed, 14 insertions, 25 deletions
diff --git a/sci-physics/qmeq/qmeq-1.0_p202004.ebuild b/sci-physics/qmeq/qmeq-1.0_p202004.ebuild
index 17bc19178ab1..a1827cc843ed 100644
--- a/sci-physics/qmeq/qmeq-1.0_p202004.ebuild
+++ b/sci-physics/qmeq/qmeq-1.0_p202004.ebuild
@@ -1,51 +1,40 @@
-# Copyright 2018-2020 Gentoo Authors
+# Copyright 2018-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_7 )
-
+PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1
Pcommit="d3949bf812e1648892959a169a7ff849cd7b69d5"
+MY_PV="$(ver_cut 1-2)"
DESCRIPTION="Quantum master equation package for Quantum dot transport calculations"
HOMEPAGE="https://github.com/gedaskir/qmeq"
SRC_URI="
https://github.com/gedaskir/qmeq/archive/${Pcommit}.tar.gz -> ${PN}-${PV}.tgz
- examples? ( https://github.com/gedaskir/${PN}-examples/archive/1.0.tar.gz -> ${PN}-examples-1.0.tgz )
-"
+ examples? ( https://github.com/gedaskir/${PN}-examples/archive/1.0.tar.gz -> ${PN}-examples-1.0.tgz )"
-KEYWORDS="~amd64"
-IUSE="examples"
LICENSE="BSD-2"
SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples"
-COMMON_DEPEND="
- dev-python/numpy[${PYTHON_USEDEP}]
- dev-python/scipy[${PYTHON_USEDEP}]
-"
-RDEPEND="
- ${COMMON_DEPEND}
- examples? ( dev-python/jupyter[${PYTHON_USEDEP}] )
-"
DEPEND="
- ${COMMON_DEPEND}
- dev-python/setuptools[${PYTHON_USEDEP}]
- dev-python/cython[${PYTHON_USEDEP}]
-"
-
-#PATCHES=( "${FILESDIR}/qmeq-1.0-py3.patch" )
-
-#mydistutilsargs=( --cython )
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/scipy[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}
+ examples? ( dev-python/jupyter[${PYTHON_USEDEP}] )"
+BDEPEND="${DEPEND}
+ dev-python/cython[${PYTHON_USEDEP}]"
src_unpack() {
default
- mv -v "${PN}-${Pcommit}" "${PN}-${PV}" || die
+ mv -v "${PN}-${Pcommit}" "${P}" || die
}
src_install() {
distutils-r1_src_install
docompress -x "/usr/share/doc/${PF}"
- use examples && dodoc -r "${WORKDIR}/${PN}-examples-${PV}"/*
+ use examples && dodoc -r "${WORKDIR}/${PN}-examples-${MY_PV}"/.
}