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-templates/
Date: Thu, 15 Apr 2021 10:35:04
Message-Id: 1618482883.a25b2dd80983737af238574b4fc35de156c6a05a.chymera@gentoo
1 commit: a25b2dd80983737af238574b4fc35de156c6a05a
2 Author: Horea Christian <chr <AT> chymera <DOT> eu>
3 AuthorDate: Thu Apr 15 10:34:43 2021 +0000
4 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
5 CommitDate: Thu Apr 15 10:34:43 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=a25b2dd8
7
8 sci-biology/mouse-brain-templates: new package
9
10 Package-Manager: Portage-3.0.17, Repoman-3.0.2
11 Signed-off-by: Horea Christian <chr <AT> chymera.eu>
12
13 sci-biology/mouse-brain-templates/metadata.xml | 15 ++++++++
14 .../mouse-brain-templates-0.5.3.ebuild | 44 ++++++++++++++++++++++
15 2 files changed, 59 insertions(+)
16
17 diff --git a/sci-biology/mouse-brain-templates/metadata.xml b/sci-biology/mouse-brain-templates/metadata.xml
18 new file mode 100644
19 index 000000000..16fcf156a
20 --- /dev/null
21 +++ b/sci-biology/mouse-brain-templates/metadata.xml
22 @@ -0,0 +1,15 @@
23 +<?xml version="1.0" encoding="UTF-8"?>
24 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
25 +<pkgmetadata>
26 + <maintainer type="person">
27 + <email>gentoo@×××××××.eu</email>
28 + <name>Horea Christian</name>
29 + </maintainer>
30 + <maintainer type="project">
31 + <email>sci@g.o</email>
32 + <name>Gentoo Science Project</name>
33 + </maintainer>
34 + <use>
35 + <flag name="hires">Also install high-resolution atlases.</flag>
36 + </use>
37 +</pkgmetadata>
38
39 diff --git a/sci-biology/mouse-brain-templates/mouse-brain-templates-0.5.3.ebuild b/sci-biology/mouse-brain-templates/mouse-brain-templates-0.5.3.ebuild
40 new file mode 100644
41 index 000000000..1ba2221aa
42 --- /dev/null
43 +++ b/sci-biology/mouse-brain-templates/mouse-brain-templates-0.5.3.ebuild
44 @@ -0,0 +1,44 @@
45 +# Copyright 1999-2021 Gentoo Authors
46 +# Distributed under the terms of the GNU General Public License v2
47 +
48 +EAPI=7
49 +
50 +inherit check-reqs
51 +
52 +DESCRIPTION="A collection of mouse brain templates in NIfTI format"
53 +HOMEPAGE="https://github.com/IBT-FMI/mouse-brain-atlases"
54 +SRC_URI="
55 + http://chymera.eu/distfiles/${P}.tar.xz
56 + hires? ( http://chymera.eu/distfiles/${PN}HD-${PV}.tar.xz )
57 + "
58 +
59 +LICENSE="fairuse"
60 +SLOT="0"
61 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
62 +IUSE="hires"
63 +
64 +RDEPEND=""
65 +DEPEND=""
66 +
67 +pkg_pretend() {
68 + if use hires; then
69 + CHECKREQS_DISK_BUILD="4G"
70 + CHECKREQS_DISK_USR="4G"
71 + CHECKREQS_DISK_VAR="8G"
72 + else
73 + CHECKREQS_DISK_BUILD="500M"
74 + fi
75 + check-reqs_pkg_pretend
76 +}
77 +
78 +# We disable this phase to not check requirements twice.
79 +pkg_setup() { :; }
80 +
81 +src_install() {
82 + insinto "/usr/share/${PN}"
83 + doins *
84 + if use hires; then
85 + cd "../${PN}HD-${PV}"
86 + doins *
87 + fi
88 +}