diff options
author | Horea Christian <chr@chymera.eu> | 2021-04-15 06:34:43 -0400 |
---|---|---|
committer | Horea Christian <chr@chymera.eu> | 2021-04-15 06:34:43 -0400 |
commit | a25b2dd80983737af238574b4fc35de156c6a05a (patch) | |
tree | edd2a5c6c1395b7533b5a0813b0847cb25edc28c /sci-biology/mouse-brain-templates | |
parent | sci-biology/nilearn: dependency constraint (diff) | |
download | sci-a25b2dd80983737af238574b4fc35de156c6a05a.tar.gz sci-a25b2dd80983737af238574b4fc35de156c6a05a.tar.bz2 sci-a25b2dd80983737af238574b4fc35de156c6a05a.zip |
sci-biology/mouse-brain-templates: new package
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Horea Christian <chr@chymera.eu>
Diffstat (limited to 'sci-biology/mouse-brain-templates')
-rw-r--r-- | sci-biology/mouse-brain-templates/Manifest | 2 | ||||
-rw-r--r-- | sci-biology/mouse-brain-templates/metadata.xml | 15 | ||||
-rw-r--r-- | sci-biology/mouse-brain-templates/mouse-brain-templates-0.5.3.ebuild | 44 |
3 files changed, 61 insertions, 0 deletions
diff --git a/sci-biology/mouse-brain-templates/Manifest b/sci-biology/mouse-brain-templates/Manifest new file mode 100644 index 000000000..efee14737 --- /dev/null +++ b/sci-biology/mouse-brain-templates/Manifest @@ -0,0 +1,2 @@ +DIST mouse-brain-templates-0.5.3.tar.xz 592329680 BLAKE2B 22d73f87fa1d44990d5514653233ac05e3cbf845cd3c677910f13bfb2c87952d4a76823e73e2553f9fba372237a6c4759bcf2f26dbb50934f31bd4b1ce57548e SHA512 1dc20fc6db723e18b54c9b401ed7f677fadc2d9c27b8da7e43b4a02330f01a6553ee88c86883821387742518a6d51891c3f3136521a4502d7daa29ed3fc04576 +DIST mouse-brain-templatesHD-0.5.3.tar.xz 914229640 BLAKE2B 833f9cd74d70d8db29a443afc1bd6a37dff094d10f43502186aaa31d2df4750bdf67a1f2935571d1f694993631ea71955033a89181b2cc8b13db30cb81e246e0 SHA512 6c836dc65a99b3c20ab1a648deb9be7f6a6827cf263b178f0939d33c06fe8dfc4f20e2c487b3d78182ae0ae7332550f19d496190ff260b1b213f25a71d3745dd diff --git a/sci-biology/mouse-brain-templates/metadata.xml b/sci-biology/mouse-brain-templates/metadata.xml new file mode 100644 index 000000000..16fcf156a --- /dev/null +++ b/sci-biology/mouse-brain-templates/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>gentoo@chymera.eu</email> + <name>Horea Christian</name> + </maintainer> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <use> + <flag name="hires">Also install high-resolution atlases.</flag> + </use> +</pkgmetadata> 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 new file mode 100644 index 000000000..1ba2221aa --- /dev/null +++ b/sci-biology/mouse-brain-templates/mouse-brain-templates-0.5.3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit check-reqs + +DESCRIPTION="A collection of mouse brain templates in NIfTI format" +HOMEPAGE="https://github.com/IBT-FMI/mouse-brain-atlases" +SRC_URI=" + http://chymera.eu/distfiles/${P}.tar.xz + hires? ( http://chymera.eu/distfiles/${PN}HD-${PV}.tar.xz ) + " + +LICENSE="fairuse" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="hires" + +RDEPEND="" +DEPEND="" + +pkg_pretend() { + if use hires; then + CHECKREQS_DISK_BUILD="4G" + CHECKREQS_DISK_USR="4G" + CHECKREQS_DISK_VAR="8G" + else + CHECKREQS_DISK_BUILD="500M" + fi + check-reqs_pkg_pretend +} + +# We disable this phase to not check requirements twice. +pkg_setup() { :; } + +src_install() { + insinto "/usr/share/${PN}" + doins * + if use hires; then + cd "../${PN}HD-${PV}" + doins * + fi +} |