1
0
mirror of synced 2024-12-22 21:00:20 +01:00

sci-biology/samri: prefix support and labbookdb USE flag

Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Horea Christian <chr@chymera.eu>
This commit is contained in:
Horea Christian 2019-11-12 20:37:57 +01:00
parent 420229ec30
commit 233eb6a867
No known key found for this signature in database
GPG Key ID: EAA9223EE3BB378A
3 changed files with 30 additions and 12 deletions

View File

@ -0,0 +1,2 @@
12 Nov 2019; <chymera@gentoo.org> metadata.xml, samri-0.4.ebuild:
sci-biology/samri:

View File

@ -1,13 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<maintainer type="person">
<email>chr@chymera.eu</email>
<name>Horea Christian</name>
</maintainer>
<longdescription lang="en">
SAMRI (Small Animal Magnetic Resonance Imaging) — pronounced "Sam-rye" — provides fMRI preprocessing, metadata parsing, and data analysis functions and workflows. SAMRI integrates functionalities from a number of other packages (listed under the dependencies section below) to create higher-level tools. The resulting interfaces aim to maximize reproducibility, simplify batch processing, and minimize the number of function calls required to generate figures and statistical summaries from the raw data.
SAMRI (Small Animal Magnetic Resonance Imaging) — pronounced "Sam-rye" — provides
fMRI preprocessing, metadata parsing, and data analysis functions and workflows.
SAMRI integrates functionalities from a number of other packages to create
higher-level tools. The resulting interfaces aim to maximize reproducibility,
simplify batch processing, and minimize the number of function calls required to
generate figures and statistical summaries from the raw data.
</longdescription>
<use>
<flag name="labbookdb">Pipe data from LabbookDB databases.</flag>
</use>
<upstream>
<remote-id type="github">IBT-FMI/SAMRI</remote-id>
</upstream>

View File

@ -13,7 +13,7 @@ SRC_URI="https://github.com/IBT-FMI/SAMRI/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
IUSE="test"
IUSE="labbookdb test"
KEYWORDS="~amd64 ~x86"
DEPEND="
@ -35,6 +35,7 @@ RDEPEND="
>=sci-biology/fsl-5.0.9
sci-biology/bru2nii
sci-biology/mouse-brain-atlases
labbookdb? ( sci-libs/labbookdb[${PYTHON_USEDEP}] )
sci-libs/nibabel[${PYTHON_USEDEP}]
>=sci-libs/nipy-0.4.1[${PYTHON_USEDEP}]
>=sci-libs/nipype-1.0.0[${PYTHON_USEDEP}]
@ -47,3 +48,10 @@ RDEPEND="
"
S="${WORKDIR}/SAMRI-${PV}"
src_prepare() {
distutils-r1_src_prepare
sed -i -e "s:/usr:@GENTOO_PORTAGE_EPREFIX@/usr:g" `grep -rlI \'/usr/ samri`
sed -i -e "s:/usr:@GENTOO_PORTAGE_EPREFIX@/usr:g" `grep -rlI /usr/ test_scripts.sh`
eprefixify $(grep -rl GENTOO_PORTAGE_EPREFIX samri/* test_scripts.sh)
}