Gentoo Archives: gentoo-commits

From: Horea Christian <horea.christ@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/mouse-brain-atlases/
Date: Tue, 17 Jul 2018 21:16:09
Message-Id: 1531862152.a2a1d0c499be645540253335cca367bc7b9319b3.chymera@gentoo
1 commit: a2a1d0c499be645540253335cca367bc7b9319b3
2 Author: Horea Christian <horea.christ <AT> yandex <DOT> com>
3 AuthorDate: Tue Jul 17 21:15:52 2018 +0000
4 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
5 CommitDate: Tue Jul 17 21:15:52 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=a2a1d0c4
7
8 sci-biology/mouse-brain-atlases: version bump
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 sci-biology/mouse-brain-atlases/metadata.xml | 3 ++
13 .../mouse-brain-atlases-0.1.20180717.ebuild | 44 ++++++++++++++++++++++
14 2 files changed, 47 insertions(+)
15
16 diff --git a/sci-biology/mouse-brain-atlases/metadata.xml b/sci-biology/mouse-brain-atlases/metadata.xml
17 index 4562cfeb1..a8c20f15c 100644
18 --- a/sci-biology/mouse-brain-atlases/metadata.xml
19 +++ b/sci-biology/mouse-brain-atlases/metadata.xml
20 @@ -13,4 +13,7 @@
21 Digital mouse brain atlases in NIfTI format for use in magnetic
22 resonance mouse brain imaging.
23 </longdescription>
24 + <use>
25 + <flag name="hires">Also install high-resolution atlases.</flag>
26 + </use>
27 </pkgmetadata>
28
29 diff --git a/sci-biology/mouse-brain-atlases/mouse-brain-atlases-0.1.20180717.ebuild b/sci-biology/mouse-brain-atlases/mouse-brain-atlases-0.1.20180717.ebuild
30 new file mode 100644
31 index 000000000..48cfab4bb
32 --- /dev/null
33 +++ b/sci-biology/mouse-brain-atlases/mouse-brain-atlases-0.1.20180717.ebuild
34 @@ -0,0 +1,44 @@
35 +# Copyright 1999-2018 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +inherit check-reqs
41 +
42 +DESCRIPTION="A collection of mouse brain atlases in NIfTI format"
43 +HOMEPAGE="http://imaging.org.au/AMBMC/Model"
44 +SRC_URI="
45 + http://chymera.eu/distfiles/${P}.tar.xz
46 + hires? ( http://chymera.eu/distfiles/${PN}HD-${PV}.tar.xz )
47 + "
48 +
49 +LICENSE="fairuse"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
52 +IUSE="hires"
53 +
54 +RDEPEND=""
55 +DEPEND=""
56 +
57 +pkg_pretend() {
58 + if use hires; then
59 + CHECKREQS_DISK_BUILD="4G"
60 + CHECKREQS_DISK_USR="4G"
61 + CHECKREQS_DISK_VAR="8G"
62 + else
63 + CHECKREQS_DISK_BUILD="500M"
64 + fi
65 + check-reqs_pkg_pretend
66 +}
67 +
68 +# We disable this phase to not check requirements twice.
69 +pkg_setup() { :; }
70 +
71 +src_install() {
72 + insinto "/usr/share/${PN}"
73 + doins *
74 + if use hires; then
75 + cd "../${PN}HD-${PV}"
76 + doins *
77 + fi
78 +}