public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas K. Hüttel" <dilfridge@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/qmeq/
Date: Wed,  7 Nov 2018 18:10:56 +0000 (UTC)	[thread overview]
Message-ID: <1541614240.3746b4d37e83c7041d02437a940e3b743d59dfa6.dilfridge@gentoo> (raw)

commit:     3746b4d37e83c7041d02437a940e3b743d59dfa6
Author:     Andreas K. Huettel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Wed Nov  7 18:10:16 2018 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Wed Nov  7 18:10:40 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3746b4d3

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 <AT> gentoo.org>

 sci-physics/qmeq/Manifest        |  1 +
 sci-physics/qmeq/qmeq-1.0.ebuild | 22 ++++++++++++++++++----
 2 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/sci-physics/qmeq/Manifest b/sci-physics/qmeq/Manifest
index d4c5db05f3c..6c1d89c683a 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 db03248cf2e..b08ced5452a 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}"/*
+}


             reply	other threads:[~2018-11-07 18:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-07 18:10 Andreas K. Hüttel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-04-08 13:45 [gentoo-commits] repo/gentoo:master commit in: sci-physics/qmeq/ Andreas K. Hüttel
2023-04-02 22:08 Andreas K. Hüttel
2022-10-16 12:03 Andreas K. Hüttel
2021-01-20 10:16 David Seifert
2020-09-20  9:46 Andreas K. Hüttel
2020-09-20  8:04 Andreas K. Hüttel
2020-09-05  6:08 Michał Górny
2020-09-02  9:12 Michał Górny
2020-05-06 21:15 Andreas K. Hüttel
2019-12-04 17:15 Michał Górny
2018-11-03 22:20 Andreas Hüttel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1541614240.3746b4d37e83c7041d02437a940e3b743d59dfa6.dilfridge@gentoo \
    --to=dilfridge@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox