summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Huettel <dilfridge@gentoo.org>2018-11-07 19:10:16 +0100
committerAndreas K. Huettel <dilfridge@gentoo.org>2018-11-07 19:10:40 +0100
commit3746b4d37e83c7041d02437a940e3b743d59dfa6 (patch)
tree212d4f2cd5d3d8fc6af02e6021bd4807ac5a6916 /sci-physics/qmeq
parentprofiles: adjust thunderbird use.mask of app-misc/tracker (diff)
downloadgentoo-3746b4d37e83c7041d02437a940e3b743d59dfa6.tar.gz
gentoo-3746b4d37e83c7041d02437a940e3b743d59dfa6.tar.bz2
gentoo-3746b4d37e83c7041d02437a940e3b743d59dfa6.zip
sci-physics/qmeq: Add support for installing examples
Package-Manager: Portage-2.3.51, Repoman-2.3.12 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'sci-physics/qmeq')
-rw-r--r--sci-physics/qmeq/Manifest1
-rw-r--r--sci-physics/qmeq/qmeq-1.0.ebuild22
2 files changed, 19 insertions, 4 deletions
diff --git a/sci-physics/qmeq/Manifest b/sci-physics/qmeq/Manifest
index d4c5db05f3c2..6c1d89c683aa 100644
--- a/sci-physics/qmeq/Manifest
+++ b/sci-physics/qmeq/Manifest
@@ -1 +1,2 @@
DIST qmeq-1.0.tar.gz 590715 BLAKE2B 7f091be0651236f2dcb45825df541813e27b43b2b8ec9184a342c962363921e29462726ba23530d0b956bba45793ed2036cec6287696e5fa58f91204d9267933 SHA512 3589fe927740cac5130a5b936e7fb8f73ce20f280878a326cdf91fe6340e8853f5e055c7e07170433c0977130cbb31644b0d9f84d23cd467aaa82557c8541e6f
+DIST qmeq-examples-1.0.tgz 289316 BLAKE2B add7520b579023c8da91aff294dd5a8fd29ba3520c3b496f2a98c8159dab4ad6bcdd1d12070357d868a10bbf224511ab27da069b94951d2c8632064344d2e143 SHA512 4a7b78a200ab4fa407401ea89740cdbcfb82376d97e8146e20a1cdab154269a6b9ce8217fb7ce78af73677b544ab535c5eadd386655dbff9c4ebde6c8eda9e38
diff --git a/sci-physics/qmeq/qmeq-1.0.ebuild b/sci-physics/qmeq/qmeq-1.0.ebuild
index db03248cf2e3..b08ced5452ae 100644
--- a/sci-physics/qmeq/qmeq-1.0.ebuild
+++ b/sci-physics/qmeq/qmeq-1.0.ebuild
@@ -9,18 +9,32 @@ inherit distutils-r1
DESCRIPTION="Quantum master equation package for Quantum dot transport calculations"
HOMEPAGE="https://github.com/gedaskir/qmeq"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+SRC_URI="
+ mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
+ examples? ( https://github.com/gedaskir/${PN}-examples/archive/${PV}.tar.gz -> ${PN}-examples-${PV}.tgz )
+"
KEYWORDS="~amd64"
-IUSE=""
+IUSE="examples"
LICENSE="BSD-2"
SLOT="0"
-RDEPEND="
+COMMON_DEPEND="
dev-python/numpy[${PYTHON_USEDEP}]
sci-libs/scipy[${PYTHON_USEDEP}]
"
-DEPEND="${RDEPEND}
+RDEPEND="
+ ${COMMON_DEPEND}
+ examples? ( dev-python/jupyter[${PYTHON_USEDEP}] )
+"
+DEPEND="
+ ${COMMON_DEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/cython[${PYTHON_USEDEP}]
"
+
+src_install() {
+ distutils-r1_src_install
+ docompress -x "/usr/share/doc/${PF}"
+ use examples && dodoc -r "${WORKDIR}/${PN}-examples-${PV}"/*
+}